|
@@ -7,13 +7,16 @@
|
|
"build:js": "browserify -p tsify src/app.ts -t [ babelify --presets [ es2015 ] --extensions .ts ] -p [ browserify-header --file header.js ] -o dist/app.js",
|
|
"build:js": "browserify -p tsify src/app.ts -t [ babelify --presets [ es2015 ] --extensions .ts ] -p [ browserify-header --file header.js ] -o dist/app.js",
|
|
"build:css": "node-sass -o public/css/ --output-style compressed src/sass/",
|
|
"build:css": "node-sass -o public/css/ --output-style compressed src/sass/",
|
|
"build:css:watch": "node-sass -w -r --source-map true --source-map-embed true -o public/css/ --output-style compressed src/sass/",
|
|
"build:css:watch": "node-sass -w -r --source-map true --source-map-embed true -o public/css/ --output-style compressed src/sass/",
|
|
- "build:tests": "npm run build:unittests && npm run build:uitests",
|
|
|
|
|
|
+ "build:tests": "echo -e 'NOTE: Use either \"npm build:unittests\" or \"npm build:uitests\"\n' && exit 1",
|
|
"build:unittests": "browserify -p tsify tests/ts/main.ts -t [ babelify --presets [ es2015 ] --extensions .ts ] -o dist/ts-tests.js",
|
|
"build:unittests": "browserify -p tsify tests/ts/main.ts -t [ babelify --presets [ es2015 ] --extensions .ts ] -o dist/ts-tests.js",
|
|
"build:uitests": "npm run build:css && browserify -p tsify tests/ui/main.ts -t [ babelify --presets [ es2015 ] --extensions .ts ] -o dist/ui-tests.js",
|
|
"build:uitests": "npm run build:css && browserify -p tsify tests/ui/main.ts -t [ babelify --presets [ es2015 ] --extensions .ts ] -o dist/ui-tests.js",
|
|
"dist": "npm run build && echo \"\" && node dist/build-package.js",
|
|
"dist": "npm run build && echo \"\" && node dist/build-package.js",
|
|
"serve:live": "echo 'NOTE: serve:live command has been renamed to devserver'",
|
|
"serve:live": "echo 'NOTE: serve:live command has been renamed to devserver'",
|
|
"devserver": "npm run build:css && concurrently --kill-others --names \"css,server\" -p name \"npm run build:css:watch\" \"budo src/app.ts:dist/app.js -d public -d . -d src --live -- -d -p tsify -t [ babelify --presets [ es2015 ] --extensions .ts ]\"",
|
|
"devserver": "npm run build:css && concurrently --kill-others --names \"css,server\" -p name \"npm run build:css:watch\" \"budo src/app.ts:dist/app.js -d public -d . -d src --live -- -d -p tsify -t [ babelify --presets [ es2015 ] --extensions .ts ]\"",
|
|
- "test": "npm run build:tests && karma start --single-run --log-level=debug --colors",
|
|
|
|
|
|
+ "testserver": "budo -d public -d . -d src -p 7777",
|
|
|
|
+ "test": "echo -e 'NOTE: Use either \"npm test:unittests\" or \"npm test:uitests\"\n' && exit 1",
|
|
|
|
+ "test:unittests": "npm run build:unittests && karma start --single-run --log-level=debug --colors",
|
|
|
|
+ "test:uitests": "npm run build:uitests && bash tests/ui/run.sh",
|
|
"lint": "tslint -c tslint.json --project tsconfig.json --exclude \"**/src/config.ts\"",
|
|
"lint": "tslint -c tslint.json --project tsconfig.json --exclude \"**/src/config.ts\"",
|
|
"clean": "rm -rf js/ build/ dist/app*"
|
|
"clean": "rm -rf js/ build/ dist/app*"
|
|
},
|
|
},
|
|
@@ -79,6 +82,7 @@
|
|
"karma-chrome-launcher": "^2.2.0",
|
|
"karma-chrome-launcher": "^2.2.0",
|
|
"karma-firefox-launcher": "^1.1.0",
|
|
"karma-firefox-launcher": "^1.1.0",
|
|
"karma-jasmine": "^1.1.2",
|
|
"karma-jasmine": "^1.1.2",
|
|
|
|
+ "testcafe": "^0.23.2",
|
|
"tslint": "~5.10"
|
|
"tslint": "~5.10"
|
|
}
|
|
}
|
|
}
|
|
}
|