mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
add watching change files and recompile
This commit is contained in:
@@ -8,18 +8,22 @@
|
||||
"start": "npm run build && npm run server",
|
||||
"server": "http-server -c-1 -o -p 8875 .",
|
||||
"build": "npm run tslint && typings install && rm -rf dist && tsc && npm run copytemplates && license-check",
|
||||
"build:w": "npm run tslint && typings install && rm -rf dist && npm run watch-task",
|
||||
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copytemplates:w\" \"license-check\"",
|
||||
"tslint": "npm run tslint-src && npm run tslint-root",
|
||||
"tslint-src": "tslint -c tslint.json src/**/*.ts, src/**/*.spec.ts ",
|
||||
"tslint-root": "tslint -c tslint.json *.ts",
|
||||
"copytemplates": "npm run copy-html && npm run copy-css && npm run copy-i18n",
|
||||
"copy-html": "copyfiles './src/**/*.html' dist",
|
||||
"copy-css": "copyfiles './src/**/*.css' dist",
|
||||
"copy-i18n": "copyfiles './i18n/**/*.json' dist",
|
||||
"licensecheck": "license-check",
|
||||
"copytemplates": "npm run copy-html-css && npm run copy-i18n",
|
||||
"copytemplates:w": "concurrently \"npm run copy-html-css:w\" \"npm run copy-i18n:w\"",
|
||||
"copy-html-css": "cpx './src/**/*.{html,css}' dist/src",
|
||||
"copy-html-css:w": "cpx './src/**/*.{html,css}' dist/src -w",
|
||||
"copy-i18n": "copyfiles './i18n/**/*.json' dist/i18n",
|
||||
"copy-i18n:w": "cpx './i18n/**/*.json' dist/i18n -w",
|
||||
"tsc": "tsc",
|
||||
"tsc:w": "tsc -w",
|
||||
"pretest": "npm run build",
|
||||
"test": "karma start karma.conf.js --reporters mocha,coverage --single-run",
|
||||
"test-browser": "karma start karma.conf.js --reporters kjhtml ",
|
||||
"test-browser": "concurrently \"karma start karma.conf.js --reporters kjhtml\" \"npm run watch-task\"",
|
||||
"posttest": "node_modules/.bin/remap-istanbul -i coverage/report/coverage-final.json -o coverage/report -t html",
|
||||
"coverage": "npm run test && http-server -c-1 -o -p 9875 ./coverage/report",
|
||||
"prepublish": "npm run build"
|
||||
@@ -60,8 +64,9 @@
|
||||
"angular2": "2.0.0-beta.15"
|
||||
},
|
||||
"devDependencies": {
|
||||
"copyfiles": "^0.2.1",
|
||||
"concurrently": "^2.1.0",
|
||||
"coveralls": "^2.11.9",
|
||||
"cpx": "^1.3.1",
|
||||
"http-server": "0.8.5",
|
||||
"jasmine-ajax": "^3.2.0",
|
||||
"jasmine-core": "2.4.1",
|
||||
|
Reference in New Issue
Block a user