Skip to content

Commit c2d4c80

Browse files
committed
rollup
1 parent 3d88b98 commit c2d4c80

12 files changed

+2212
-122
lines changed

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist/

README.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -46,20 +46,20 @@ npx @masx200/webdav-cli --help
4646
usage: webdav-cli [options]
4747
4848
options:
49-
--path Path to folder [process.cwd()]
50-
--host Host to use [0.0.0.0]
51-
--port Port to use [1900]
52-
--digest Enable digest authentication [basic]
53-
--username Username for basic/digest authentication [random]
54-
--password Password for basic/digest authentication [random]
55-
56-
--disableAuthentication The server file becomes read-only without Authentication.[false]
57-
--ssl Enable https [false]
49+
--path,-pa Path to folder [process.cwd()]
50+
--host,-ho Host to use [0.0.0.0]
51+
--port,-po Port to use [1900]
52+
--digest,-dg Enable digest authentication [basic]
53+
--username,-u Username for basic/digest authentication [random]
54+
--password,-ps Password for basic/digest authentication [random]
55+
56+
--disableAuthentication,-da The server file becomes read-only without Authentication.[false]
57+
--ssl,-s Enable https [false]
5858
--sslKey Path to ssl key file [self-signed]
5959
--sslCert Path to ssl cert file [self-signed]
60-
--help Print this list and exit
61-
--version Print the version and exit.
62-
--rights Comma separated values without spaces [all]
60+
--help,-h Print this list and exit
61+
62+
--rights,-r Comma separated values without spaces [all]
6363
6464
'all', 'canCreate', 'canDelete', 'canMove', 'canRename',
6565
'canAppend', 'canWrite', 'canRead', 'canSource',

dist/showhelp.js

+11-11
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ export function showhelp() {
55
"usage: webdav-cli [options]",
66
"",
77
"options:",
8-
" --path Path to folder [process.cwd()]",
9-
" --host Host to use [0.0.0.0]",
10-
" --port Port to use [1900]",
11-
" --digest Enable digest authentication [basic]",
12-
" --username Username for basic/digest authentication [random]",
13-
" --password Password for basic/digest authentication [random]",
14-
" --disableAuthentication The server file becomes read-only without Authentication.[false]",
15-
" --ssl Enable https [false]",
8+
" --path,-pa Path to folder [process.cwd()]",
9+
" --host,-ho Host to use [0.0.0.0]",
10+
" --port,-po Port to use [1900]",
11+
" --digest,-dg Enable digest authentication [basic]",
12+
" --username,-u Username for basic/digest authentication [random]",
13+
" --password,-ps Password for basic/digest authentication [random]",
14+
" --disableAuthentication,-da The server file becomes read-only without Authentication.[false]",
15+
" --ssl,-s Enable https [false]",
1616
" --sslKey Path to ssl key file [self-signed]",
1717
" --sslCert Path to ssl cert file [self-signed]",
18-
" --help Print this list and exit",
19-
" --version Print the version and exit.",
20-
" --rights Comma separated values without spaces [all]",
18+
" --help,-h Print this list and exit",
19+
// " --version,-v Print the version and exit.",
20+
" --rights,-r Comma separated values without spaces [all]",
2121
`
2222
'all', 'canCreate', 'canDelete', 'canMove', 'canRename',
2323
'canAppend', 'canWrite', 'canRead', 'canSource',

dist/webdav-cli.cli.d.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
#!/usr/bin/env node
21
export {};

dist/webdav-cli.cli.js

+182-39
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/webdav-cli.cli.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+12-7
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"registry": "https://registry.npmjs.com"
66
},
77
"name": "@masx200/webdav-cli",
8-
"version": "2.2.4",
8+
"version": "2.3.0",
99
"description": "A simple zero-configuration command-line webdav server",
1010
"license": "MIT",
1111
"keywords": [
@@ -14,16 +14,14 @@
1414
"webdav",
1515
"server"
1616
],
17-
"bin": {
18-
"webdav-cli": "dist/webdav-cli.cli.js"
19-
},
17+
"bin": "dist/webdav-cli.cli.js",
2018
"preferGlobal": true,
2119
"main": "dist/index.js",
2220
"types": "dist/index.d.ts",
2321
"scripts": {
2422
"start": "node ./dist/webdav-cli.cli.js --username root --password root --host 0.0.0.0",
25-
"build": " tsc -p tsconfig.build.json",
26-
"format": "prettier --write \"**/*.ts\" **/*.js *.json *.md"
23+
"build": " rollup -c rollup.config.js",
24+
"format": "npx prettier --write \"**/*.ts\" **/*.js *.json *.md"
2725
},
2826
"devDependencies": {
2927
"@types/etag": "^1.8.0",
@@ -49,9 +47,13 @@
4947
"@koa/cors": "^3.1.0",
5048
"@masx200/koa-range": "^1.0.4",
5149
"@masx200/koa-stream-etag": "^5.0.3",
52-
"@masx200/serve-cli": "^1.1.6",
50+
"@masx200/serve-cli": "^1.2.0",
51+
"@rollup/plugin-commonjs": "^20.0.0",
52+
"@rollup/plugin-json": "^4.1.0",
53+
"@rollup/plugin-node-resolve": "^13.0.4",
5354
"etag": "^1.8.1",
5455
"fresh": "^0.5.2",
56+
"graceful-fs": "^4.2.6",
5557
"http-auth": "^4.1.5",
5658
"koa": "^2.13.1",
5759
"koa-compress": "^5.0.1",
@@ -61,6 +63,9 @@
6163
"koa-static": "^5.0.0",
6264
"koa2-serve-index": "^2.0.1",
6365
"minimist": "^1.2.5",
66+
"rollup": "^2.56.0",
67+
"rollup-plugin-terser": "^7.0.2",
68+
"rollup-plugin-ts": "^1.4.0",
6469
"webdav-server": "^2.6.2"
6570
},
6671
"directories": {

0 commit comments

Comments
 (0)