Rename 'serve' action to 'start' for better npm compatibility

This commit is contained in:
David Evans 2018-04-15 12:53:11 +01:00
parent a5f32d34d8
commit 899aabbc0e
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ is easy to do:
```shell ```shell
npm install; npm install;
npm run serve; npm start;
``` ```
The tests and linter will now be available at The tests and linter will now be available at

View File

@ -16,7 +16,7 @@
], ],
"main": "lib/sequence-diagram", "main": "lib/sequence-diagram",
"scripts": { "scripts": {
"serve": "node_modules/.bin/http-server", "start": "node_modules/.bin/http-server",
"minify": "node node_modules/.bin/r.js -o scripts/build.js && node_modules/.bin/uglifyjs --compress --mangle --warn --output lib/sequence-diagram.min.js -- lib/sequence-diagram.js" "minify": "node node_modules/.bin/r.js -o scripts/build.js && node_modules/.bin/uglifyjs --compress --mangle --warn --output lib/sequence-diagram.min.js -- lib/sequence-diagram.js"
}, },
"devDependencies": { "devDependencies": {