add watching change files and recompile

This commit is contained in:
Eugenio Romano
2016-06-06 15:36:41 +01:00
parent 503217a9c9
commit 6d507ef527
6 changed files with 518 additions and 490 deletions

View File

@@ -5,19 +5,24 @@
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"typings": "typings install", "typings": "typings install",
"server": "wsrv -o -p 9875",
"build": "npm run tslint && typings install && rm -rf dist && tsc && npm run copytemplates && license-check", "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": "npm run tslint-src && npm run tslint-root",
"tslint-src": "tslint -c tslint.json src/**/*.ts, src/**/*.spec.ts ", "tslint-src": "tslint -c tslint.json src/**/*.ts, src/**/*.spec.ts ",
"tslint-root": "tslint -c tslint.json *.ts", "tslint-root": "tslint -c tslint.json *.ts",
"copytemplates": "npm run copy-html && npm run copy-css && npm run copy-i18n", "copytemplates": "npm run copy-html-css && npm run copy-i18n",
"copy-html": "copyfiles './src/**/*.html' dist", "copytemplates:w": "concurrently \"npm run copy-html-css:w\" \"npm run copy-i18n:w\"",
"copy-css": "copyfiles './src/**/*.css' dist", "copy-html-css": "cpx './src/**/*.{html,css}' dist/src",
"copy-i18n": "copyfiles './i18n/**/*.json' dist", "copy-html-css:w": "cpx './src/**/*.{html,css}' dist/src -w",
"licensecheck": "license-check", "copy-i18n": "copyfiles './i18n/**/*.json' dist/i18n",
"copy-i18n:w": "cpx './i18n/**/*.json' dist/i18n -w",
"tsc": "tsc", "tsc": "tsc",
"tsc:w": "tsc -w",
"pretest": "npm run build", "pretest": "npm run build",
"test": "karma start karma.conf.js --reporters mocha,coverage --single-run", "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", "posttest": "node_modules/.bin/remap-istanbul -i coverage/report/coverage-final.json -o coverage/report -t html",
"coverage": "npm run test && wsrv -o -p 9875 ./coverage/report", "coverage": "npm run test && wsrv -o -p 9875 ./coverage/report",
"prepublish": "npm run build" "prepublish": "npm run build"
@@ -56,8 +61,9 @@
"material-design-lite": "^1.1.3" "material-design-lite": "^1.1.3"
}, },
"devDependencies": { "devDependencies": {
"copyfiles": "^0.2.1", "concurrently": "^2.1.0",
"coveralls": "^2.11.9", "coveralls": "^2.11.9",
"cpx": "^1.3.1",
"jasmine-core": "2.4.1", "jasmine-core": "2.4.1",
"karma": "~0.13.22", "karma": "~0.13.22",
"karma-chrome-launcher": "~1.0.1", "karma-chrome-launcher": "~1.0.1",

View File

@@ -5,21 +5,24 @@
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"typings": "typings install", "typings": "typings install",
"start": "npm run build && npm run server",
"server": "http-server -c-1 -o -p 8875 .", "server": "http-server -c-1 -o -p 8875 .",
"build": "npm run tslint && typings install && rm -rf dist && tsc && npm run copytemplates && license-check", "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": "npm run tslint-src && npm run tslint-root",
"tslint-src": "tslint -c tslint.json src/**/*.ts, src/**/*.spec.ts ", "tslint-src": "tslint -c tslint.json src/**/*.ts, src/**/*.spec.ts ",
"tslint-root": "tslint -c tslint.json *.ts", "tslint-root": "tslint -c tslint.json *.ts",
"copytemplates": "npm run copy-html && npm run copy-css && npm run copy-i18n", "copytemplates": "npm run copy-html-css && npm run copy-i18n",
"copy-html": "copyfiles './src/**/*.html' dist", "copytemplates:w": "concurrently \"npm run copy-html-css:w\" \"npm run copy-i18n:w\"",
"copy-css": "copyfiles './src/**/*.css' dist", "copy-html-css": "cpx './src/**/*.{html,css}' dist/src",
"copy-i18n": "copyfiles './i18n/**/*.json' dist", "copy-html-css:w": "cpx './src/**/*.{html,css}' dist/src -w",
"licensecheck": "license-check", "copy-i18n": "copyfiles './i18n/**/*.json' dist/i18n",
"copy-i18n:w": "cpx './i18n/**/*.json' dist/i18n -w",
"tsc": "tsc", "tsc": "tsc",
"tsc:w": "tsc -w",
"pretest": "npm run build", "pretest": "npm run build",
"test": "karma start karma.conf.js --reporters mocha,coverage --single-run", "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", "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", "coverage": "npm run test && http-server -c-1 -o -p 9875 ./coverage/report",
"prepublish": "npm run build" "prepublish": "npm run build"
@@ -60,8 +63,9 @@
"alfresco-js-api": "^0.1.0" "alfresco-js-api": "^0.1.0"
}, },
"devDependencies": { "devDependencies": {
"copyfiles": "^0.2.1", "concurrently": "^2.1.0",
"coveralls": "^2.11.9", "coveralls": "^2.11.9",
"cpx": "^1.3.1",
"http-server": "0.8.5", "http-server": "0.8.5",
"jasmine-core": "2.4.1", "jasmine-core": "2.4.1",
"karma": "~0.13.22", "karma": "~0.13.22",

View File

@@ -5,21 +5,24 @@
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"typings": "typings install", "typings": "typings install",
"start": "npm run build && npm run server",
"server": "http-server -c-1 -o -p 8875 .", "server": "http-server -c-1 -o -p 8875 .",
"build": "npm run tslint && typings install && rm -rf dist && tsc && npm run copytemplates && license-check", "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": "npm run tslint-src && npm run tslint-root",
"tslint-src": "tslint -c tslint.json src/**/*.ts, src/**/*.spec.ts ", "tslint-src": "tslint -c tslint.json src/**/*.ts, src/**/*.spec.ts ",
"tslint-root": "tslint -c tslint.json *.ts", "tslint-root": "tslint -c tslint.json *.ts",
"copytemplates": "npm run copy-html && npm run copy-css && npm run copy-i18n", "copytemplates": "npm run copy-html-css && npm run copy-i18n",
"copy-html": "copyfiles './src/**/*.html' dist", "copytemplates:w": "concurrently \"npm run copy-html-css:w\" \"npm run copy-i18n:w\"",
"copy-css": "copyfiles './src/**/*.css' dist", "copy-html-css": "cpx './src/**/*.{html,css}' dist/src",
"copy-i18n": "copyfiles './i18n/**/*.json' dist", "copy-html-css:w": "cpx './src/**/*.{html,css}' dist/src -w",
"licensecheck": "license-check", "copy-i18n": "copyfiles './i18n/**/*.json' dist/i18n",
"copy-i18n:w": "cpx './i18n/**/*.json' dist/i18n -w",
"tsc": "tsc", "tsc": "tsc",
"tsc:w": "tsc -w",
"pretest": "npm run build", "pretest": "npm run build",
"test": "karma start karma.conf.js --reporters mocha,coverage --single-run", "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", "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", "coverage": "npm run test && http-server -c-1 -o -p 9875 ./coverage/report",
"prepublish": "npm run build" "prepublish": "npm run build"
@@ -47,7 +50,7 @@
}, },
{ {
"name": "Eugenio Romano", "name": "Eugenio Romano",
"email": "eugenio.romano83@gmail.com" "email": "eugenio.romano@alfresco.com"
} }
], ],
"keywords": [ "keywords": [
@@ -71,8 +74,9 @@
"angular2": "2.0.0-beta.15" "angular2": "2.0.0-beta.15"
}, },
"devDependencies": { "devDependencies": {
"copyfiles": "^0.2.1", "concurrently": "^2.1.0",
"coveralls": "^2.11.9", "coveralls": "^2.11.9",
"cpx": "^1.3.1",
"http-server": "0.8.5", "http-server": "0.8.5",
"jasmine-core": "2.4.1", "jasmine-core": "2.4.1",
"karma": "~0.13.22", "karma": "~0.13.22",

View File

@@ -5,20 +5,24 @@
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"typings": "typings install", "typings": "typings install",
"start": "npm run build && npm run server",
"server": "http-server -c-1 -o -p 8875 .", "server": "http-server -c-1 -o -p 8875 .",
"build": "npm run tslint && typings install && rm -rf dist && tsc && npm run copytemplates && license-check", "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": "npm run tslint-src && npm run tslint-root",
"tslint-src": "tslint -c tslint.json src/**/*.ts, src/**/*.spec.ts ", "tslint-src": "tslint -c tslint.json src/**/*.ts, src/**/*.spec.ts ",
"tslint-root": "tslint -c tslint.json *.ts", "tslint-root": "tslint -c tslint.json *.ts",
"copytemplates": "npm run copy-html && npm run copy-css", "copytemplates": "npm run copy-html-css && npm run copy-i18n",
"copy-html": "copyfiles './src/**/*.html' dist", "copytemplates:w": "concurrently \"npm run copy-html-css:w\" \"npm run copy-i18n:w\"",
"copy-css": "copyfiles './src/**/*.css' dist", "copy-html-css": "cpx './src/**/*.{html,css}' dist/src",
"licensecheck": "license-check", "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": "tsc",
"tsc:w": "tsc -w",
"pretest": "npm run build", "pretest": "npm run build",
"test": "karma start karma.conf.js --reporters mocha,coverage --single-run", "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", "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", "coverage": "npm run test && http-server -c-1 -o -p 9875 ./coverage/report",
"prepublish": "npm run build" "prepublish": "npm run build"
@@ -58,8 +62,9 @@
"angular2": "2.0.0-beta.15" "angular2": "2.0.0-beta.15"
}, },
"devDependencies": { "devDependencies": {
"copyfiles": "^0.2.1", "concurrently": "^2.1.0",
"coveralls": "^2.11.9", "coveralls": "^2.11.9",
"cpx": "^1.3.1",
"http-server": "0.8.5", "http-server": "0.8.5",
"jasmine-core": "2.4.1", "jasmine-core": "2.4.1",
"karma": "~0.13.22", "karma": "~0.13.22",

View File

@@ -1,25 +1,28 @@
{ {
"name": "ng2-alfresco-upload", "name": "ng2-alfresco-upload",
"description": "Alfresco Angular2 Upload Component", "description": "Alfresco Angular2 Upload Component",
"version": "0.1.33", "version": "0.1.32",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"typings": "typings install", "typings": "typings install",
"start": "npm run build && npm run server",
"server": "http-server -c-1 -o -p 8875 .", "server": "http-server -c-1 -o -p 8875 .",
"build": "npm run tslint && typings install && rm -rf dist && tsc && npm run copytemplates && license-check", "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": "npm run tslint-src && npm run tslint-root",
"tslint-src": "tslint -c tslint.json src/**/*.ts, src/**/*.spec.ts ", "tslint-src": "tslint -c tslint.json src/**/*.ts, src/**/*.spec.ts ",
"tslint-root": "tslint -c tslint.json *.ts", "tslint-root": "tslint -c tslint.json *.ts",
"copytemplates": "npm run copy-html && npm run copy-css && npm run copy-i18n", "copytemplates": "npm run copy-html-css && npm run copy-i18n",
"copy-html": "copyfiles './src/**/*.html' dist", "copytemplates:w": "concurrently \"npm run copy-html-css:w\" \"npm run copy-i18n:w\"",
"copy-css": "copyfiles './src/**/*.css' dist", "copy-html-css": "cpx './src/**/*.{html,css}' dist/src",
"copy-i18n": "copyfiles './i18n/**/*.json' dist", "copy-html-css:w": "cpx './src/**/*.{html,css}' dist/src -w",
"licensecheck": "license-check", "copy-i18n": "copyfiles './i18n/**/*.json' dist/i18n",
"copy-i18n:w": "cpx './i18n/**/*.json' dist/i18n -w",
"tsc": "tsc", "tsc": "tsc",
"tsc:w": "tsc -w",
"pretest": "npm run build", "pretest": "npm run build",
"test": "karma start karma.conf.js --reporters mocha,coverage --single-run", "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", "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", "coverage": "npm run test && http-server -c-1 -o -p 9875 ./coverage/report",
"prepublish": "npm run build" "prepublish": "npm run build"
@@ -39,7 +42,7 @@
}, },
{ {
"name": "Eugenio Romano", "name": "Eugenio Romano",
"email": "eugenio.romano83@gmail.com" "email": "eugenio.romano@alfresco.com"
} }
], ],
"keywords": [ "keywords": [
@@ -64,8 +67,9 @@
"angular2": "2.0.0-beta.15" "angular2": "2.0.0-beta.15"
}, },
"devDependencies": { "devDependencies": {
"copyfiles": "^0.2.1", "concurrently": "^2.1.0",
"coveralls": "^2.11.9", "coveralls": "^2.11.9",
"cpx": "^1.3.1",
"http-server": "0.8.5", "http-server": "0.8.5",
"jasmine-ajax": "^3.2.0", "jasmine-ajax": "^3.2.0",
"jasmine-core": "2.4.1", "jasmine-core": "2.4.1",

View File

@@ -8,18 +8,22 @@
"start": "npm run build && npm run server", "start": "npm run build && npm run server",
"server": "http-server -c-1 -o -p 8875 .", "server": "http-server -c-1 -o -p 8875 .",
"build": "npm run tslint && typings install && rm -rf dist && tsc && npm run copytemplates && license-check", "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": "npm run tslint-src && npm run tslint-root",
"tslint-src": "tslint -c tslint.json src/**/*.ts, src/**/*.spec.ts ", "tslint-src": "tslint -c tslint.json src/**/*.ts, src/**/*.spec.ts ",
"tslint-root": "tslint -c tslint.json *.ts", "tslint-root": "tslint -c tslint.json *.ts",
"copytemplates": "npm run copy-html && npm run copy-css && npm run copy-i18n", "copytemplates": "npm run copy-html-css && npm run copy-i18n",
"copy-html": "copyfiles './src/**/*.html' dist", "copytemplates:w": "concurrently \"npm run copy-html-css:w\" \"npm run copy-i18n:w\"",
"copy-css": "copyfiles './src/**/*.css' dist", "copy-html-css": "cpx './src/**/*.{html,css}' dist/src",
"copy-i18n": "copyfiles './i18n/**/*.json' dist", "copy-html-css:w": "cpx './src/**/*.{html,css}' dist/src -w",
"licensecheck": "license-check", "copy-i18n": "copyfiles './i18n/**/*.json' dist/i18n",
"copy-i18n:w": "cpx './i18n/**/*.json' dist/i18n -w",
"tsc": "tsc", "tsc": "tsc",
"tsc:w": "tsc -w",
"pretest": "npm run build", "pretest": "npm run build",
"test": "karma start karma.conf.js --reporters mocha,coverage --single-run", "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", "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", "coverage": "npm run test && http-server -c-1 -o -p 9875 ./coverage/report",
"prepublish": "npm run build" "prepublish": "npm run build"
@@ -60,8 +64,9 @@
"angular2": "2.0.0-beta.15" "angular2": "2.0.0-beta.15"
}, },
"devDependencies": { "devDependencies": {
"copyfiles": "^0.2.1", "concurrently": "^2.1.0",
"coveralls": "^2.11.9", "coveralls": "^2.11.9",
"cpx": "^1.3.1",
"http-server": "0.8.5", "http-server": "0.8.5",
"jasmine-ajax": "^3.2.0", "jasmine-ajax": "^3.2.0",
"jasmine-core": "2.4.1", "jasmine-core": "2.4.1",