Skip to content

Commit

Permalink
rollup
Browse files Browse the repository at this point in the history
  • Loading branch information
masx200 committed Aug 5, 2021
1 parent 3d88b98 commit c2d4c80
Show file tree
Hide file tree
Showing 12 changed files with 2,212 additions and 122 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist/
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,20 @@ npx @masx200/webdav-cli --help
usage: webdav-cli [options]
options:
--path Path to folder [process.cwd()]
--host Host to use [0.0.0.0]
--port Port to use [1900]
--digest Enable digest authentication [basic]
--username Username for basic/digest authentication [random]
--password Password for basic/digest authentication [random]
--disableAuthentication The server file becomes read-only without Authentication.[false]
--ssl Enable https [false]
--path,-pa Path to folder [process.cwd()]
--host,-ho Host to use [0.0.0.0]
--port,-po Port to use [1900]
--digest,-dg Enable digest authentication [basic]
--username,-u Username for basic/digest authentication [random]
--password,-ps Password for basic/digest authentication [random]
--disableAuthentication,-da The server file becomes read-only without Authentication.[false]
--ssl,-s Enable https [false]
--sslKey Path to ssl key file [self-signed]
--sslCert Path to ssl cert file [self-signed]
--help Print this list and exit
--version Print the version and exit.
--rights Comma separated values without spaces [all]
--help,-h Print this list and exit
--rights,-r Comma separated values without spaces [all]
'all', 'canCreate', 'canDelete', 'canMove', 'canRename',
'canAppend', 'canWrite', 'canRead', 'canSource',
Expand Down
22 changes: 11 additions & 11 deletions dist/showhelp.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ export function showhelp() {
"usage: webdav-cli [options]",
"",
"options:",
" --path Path to folder [process.cwd()]",
" --host Host to use [0.0.0.0]",
" --port Port to use [1900]",
" --digest Enable digest authentication [basic]",
" --username Username for basic/digest authentication [random]",
" --password Password for basic/digest authentication [random]",
" --disableAuthentication The server file becomes read-only without Authentication.[false]",
" --ssl Enable https [false]",
" --path,-pa Path to folder [process.cwd()]",
" --host,-ho Host to use [0.0.0.0]",
" --port,-po Port to use [1900]",
" --digest,-dg Enable digest authentication [basic]",
" --username,-u Username for basic/digest authentication [random]",
" --password,-ps Password for basic/digest authentication [random]",
" --disableAuthentication,-da The server file becomes read-only without Authentication.[false]",
" --ssl,-s Enable https [false]",
" --sslKey Path to ssl key file [self-signed]",
" --sslCert Path to ssl cert file [self-signed]",
" --help Print this list and exit",
" --version Print the version and exit.",
" --rights Comma separated values without spaces [all]",
" --help,-h Print this list and exit",
// " --version,-v Print the version and exit.",
" --rights,-r Comma separated values without spaces [all]",
`
'all', 'canCreate', 'canDelete', 'canMove', 'canRename',
'canAppend', 'canWrite', 'canRead', 'canSource',
Expand Down
1 change: 0 additions & 1 deletion dist/webdav-cli.cli.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
#!/usr/bin/env node
export {};
221 changes: 182 additions & 39 deletions dist/webdav-cli.cli.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/webdav-cli.cli.js.map

Large diffs are not rendered by default.

19 changes: 12 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"registry": "https://registry.npmjs.com"
},
"name": "@masx200/webdav-cli",
"version": "2.2.4",
"version": "2.3.0",
"description": "A simple zero-configuration command-line webdav server",
"license": "MIT",
"keywords": [
Expand All @@ -14,16 +14,14 @@
"webdav",
"server"
],
"bin": {
"webdav-cli": "dist/webdav-cli.cli.js"
},
"bin": "dist/webdav-cli.cli.js",
"preferGlobal": true,
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"start": "node ./dist/webdav-cli.cli.js --username root --password root --host 0.0.0.0",
"build": " tsc -p tsconfig.build.json",
"format": "prettier --write \"**/*.ts\" **/*.js *.json *.md"
"build": " rollup -c rollup.config.js",
"format": "npx prettier --write \"**/*.ts\" **/*.js *.json *.md"
},
"devDependencies": {
"@types/etag": "^1.8.0",
Expand All @@ -49,9 +47,13 @@
"@koa/cors": "^3.1.0",
"@masx200/koa-range": "^1.0.4",
"@masx200/koa-stream-etag": "^5.0.3",
"@masx200/serve-cli": "^1.1.6",
"@masx200/serve-cli": "^1.2.0",
"@rollup/plugin-commonjs": "^20.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.0.4",
"etag": "^1.8.1",
"fresh": "^0.5.2",
"graceful-fs": "^4.2.6",
"http-auth": "^4.1.5",
"koa": "^2.13.1",
"koa-compress": "^5.0.1",
Expand All @@ -61,6 +63,9 @@
"koa-static": "^5.0.0",
"koa2-serve-index": "^2.0.1",
"minimist": "^1.2.5",
"rollup": "^2.56.0",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-ts": "^1.4.0",
"webdav-server": "^2.6.2"
},
"directories": {
Expand Down
Loading

0 comments on commit c2d4c80

Please sign in to comment.