Merge pull request #768 from Alfresco/dev-denys-typescript

#763 Upgrade to TypeScript 2.0.2 and @types
This commit is contained in:
Mario Romano
2016-09-19 23:11:41 +02:00
committed by GitHub
80 changed files with 214 additions and 498 deletions

View File

@@ -4,15 +4,13 @@
"version": "0.3.0", "version": "0.3.0",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"postinstall": "typings install", "clean": "rimraf node_modules",
"clean": "rimraf node_modules typings",
"build": "npm run tslint && npm run tsc && npm run licensecheck", "build": "npm run tslint && npm run tsc && npm run licensecheck",
"start": "npm run build && concurrently \"npm run tsc:w\" \"npm run serve\" ", "start": "npm run build && concurrently \"npm run tsc:w\" \"npm run serve\" ",
"aws": "node app.js", "aws": "node app.js",
"tsc": "tsc", "tsc": "tsc",
"tsc:w": "tsc -w", "tsc:w": "tsc -w",
"serve": "wsrv -O http://localhost:3000 -s -l -p 3000 -a 0.0.0.0 -x ./server/versions.js", "serve": "wsrv -O http://localhost:3000 -s -l -p 3000 -a 0.0.0.0 -x ./server/versions.js",
"typings": "typings install",
"tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json 'app/{,**/}**.ts'", "tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json 'app/{,**/}**.ts'",
"licensecheck": "license-check" "licensecheck": "license-check"
}, },
@@ -90,12 +88,13 @@
"ng2-alfresco-tag": "0.3.2" "ng2-alfresco-tag": "0.3.2"
}, },
"devDependencies": { "devDependencies": {
"concurrently": "2.0.0", "@types/core-js": "^0.9.32",
"@types/jasmine": "^2.2.33",
"concurrently": "^2.2.0",
"license-check": "1.1.5", "license-check": "1.1.5",
"mime": "^1.3.4", "mime": "^1.3.4",
"tslint": "3.8.1", "tslint": "3.8.1",
"typescript": "1.8.10", "typescript": "^2.0.2",
"typings": "1.0.4",
"wsrv": "^0.1.5" "wsrv": "^0.1.5"
}, },
"license-check-config": { "license-check-config": {

View File

@@ -7,7 +7,8 @@
"emitDecoratorMetadata": true, "emitDecoratorMetadata": true,
"experimentalDecorators": true, "experimentalDecorators": true,
"removeComments": false, "removeComments": false,
"noImplicitAny": false "noImplicitAny": false,
"types": ["core-js", "jasmine"]
}, },
"exclude": [ "exclude": [
"dist", "dist",

View File

@@ -1,7 +0,0 @@
{
"globalDependencies": {
"core-js": "registry:dt/core-js#0.0.0+20160317120654",
"jasmine": "registry:dt/jasmine#2.2.0+20160505161446",
"node": "registry:dt/node#4.0.0+20160509154515"
}
}

View File

@@ -4,10 +4,7 @@
"version": "0.3.3", "version": "0.3.3",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"postinstall": "typings install", "clean": "rimraf dist node_modules",
"clean": "rimraf dist node_modules typings",
"typings": "typings install",
"server": "wsrv -o -p 9875",
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check", "build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
"build:w": "npm run tslint && rimraf dist && npm run watch-task", "build:w": "npm run tslint && rimraf dist && npm run watch-task",
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"",
@@ -67,19 +64,15 @@
"ng2-translate": "2.2.2", "ng2-translate": "2.2.2",
"ng2-alfresco-core": "0.3.2" "ng2-alfresco-core": "0.3.2"
}, },
"peerDependencies": {
"material-design-icons": "^2.2.3",
"material-design-lite": "^1.1.3"
},
"devDependencies": { "devDependencies": {
"concurrently": "2.1.0", "@types/core-js": "^0.9.32",
"coveralls": "2.11.9", "@types/jasmine": "^2.2.33",
"concurrently": "^2.2.0",
"cpx": "1.3.1", "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",
"karma-coverage": "1.0.0", "karma-coverage": "1.0.0",
"karma-coveralls": "1.1.2",
"karma-jasmine": "1.0.2", "karma-jasmine": "1.0.2",
"karma-jasmine-ajax": "0.1.13", "karma-jasmine-ajax": "0.1.13",
"karma-jasmine-html-reporter": "0.2.0", "karma-jasmine-html-reporter": "0.2.0",
@@ -89,9 +82,8 @@
"rimraf": "2.5.2", "rimraf": "2.5.2",
"traceur": "0.0.91", "traceur": "0.0.91",
"tslint": "3.8.1", "tslint": "3.8.1",
"typescript": "1.8.10", "typescript": "^2.0.2",
"typings": "1.0.4", "wsrv": "^0.1.5"
"wsrv": "0.1.3"
}, },
"license-check-config": { "license-check-config": {
"src": [ "src": [

View File

@@ -8,14 +8,13 @@
"sourceMap": true, "sourceMap": true,
"removeComments": true, "removeComments": true,
"declaration": true, "declaration": true,
"outDir": "dist" "outDir": "dist",
"types": ["core-js", "jasmine"]
}, },
"exclude": [ "exclude": [
"demo", "demo",
"dist", "dist",
"node_modules", "node_modules",
"typings/main",
"typings/main.d.ts",
"dist" "dist"
] ]
} }

View File

@@ -1,7 +0,0 @@
{
"globalDependencies": {
"core-js": "registry:dt/core-js#0.0.0+20160317120654",
"jasmine": "registry:dt/jasmine#2.2.0+20160505161446",
"node": "registry:dt/node#4.0.0+20160509154515"
}
}

View File

@@ -1,27 +0,0 @@
{
"project": {
"version": "ng2-activiti-processlist",
"name": "0.1.0"
},
"apps": [
{
"main": "src/ng2-activiti-processlist.component.ts",
"tsconfig": "tsconfig.json",
"mobile": false
}
],
"addons": [],
"packages": [],
"test": {
"karma": {
"config": "karma.conf.js"
}
},
"defaults": {
"prefix": "",
"sourceDir": "src",
"styleExt": "css",
"prefixInterfaces": false,
"lazyRoutePrefix": "+"
}
}

View File

@@ -5,8 +5,7 @@
"author": "Will Abson", "author": "Will Abson",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"clean": "rimraf dist node_modules typings", "clean": "rimraf dist node_modules",
"typings": "typings install",
"postinstall": "npm run typings && npm run build", "postinstall": "npm run typings && npm run build",
"start": "npm run build && concurrently \"npm run tsc:w\" \"npm run server\" ", "start": "npm run build && concurrently \"npm run tsc:w\" \"npm run server\" ",
"server": "wsrv -o -s -l", "server": "wsrv -o -s -l",
@@ -44,12 +43,13 @@
"material-design-lite": "^1.1.3" "material-design-lite": "^1.1.3"
}, },
"devDependencies": { "devDependencies": {
"concurrently": "^2.0.0", "@types/core-js": "^0.9.32",
"@types/jasmine": "^2.2.33",
"concurrently": "^2.2.0",
"rimraf": "2.5.2", "rimraf": "2.5.2",
"tslint": "^3.8.1", "tslint": "^3.8.1",
"typescript": "^1.8.10", "typescript": "^2.0.2",
"typings": "^1.0.4", "wsrv": "^0.1.5"
"wsrv": "0.1.3"
}, },
"publishConfig": { "publishConfig": {
"registry": "http://devproducts.alfresco.me:4873/" "registry": "http://devproducts.alfresco.me:4873/"

View File

@@ -8,12 +8,11 @@
"sourceMap": true, "sourceMap": true,
"removeComments": true, "removeComments": true,
"declaration": true, "declaration": true,
"outDir": "dist" "outDir": "dist",
"types": ["core-js", "jasmine"]
}, },
"exclude": [ "exclude": [
"dist", "dist",
"node_modules", "node_modules"
"typings/main",
"typings/main.d.ts"
] ]
} }

View File

@@ -1,7 +0,0 @@
{
"globalDependencies": {
"core-js": "registry:dt/core-js#0.0.0+20160317120654",
"jasmine": "registry:dt/jasmine#2.2.0+20160505161446",
"node": "registry:dt/node#4.0.0+20160509154515"
}
}

View File

@@ -71,7 +71,7 @@ module.exports = function (config) {
], ],
// Coverage reporter generates the coverage // Coverage reporter generates the coverage
reporters: ['mocha', 'coverage', 'coveralls', 'kjhtml'], reporters: ['mocha', 'coverage', 'kjhtml'],
// Source files that you wanna generate coverage for. // Source files that you wanna generate coverage for.
// Do not include tests or libraries (these files will be instrumented by Istanbul) // Do not include tests or libraries (these files will be instrumented by Istanbul)

View File

@@ -4,10 +4,7 @@
"version": "0.3.2", "version": "0.3.2",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"postinstall": "typings install", "clean": "rimraf dist node_modules",
"clean": "rimraf dist node_modules typings",
"typings": "typings install",
"server": "wsrv -o -p 9875",
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check", "build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
"build:w": "npm run tslint && rimraf dist && npm run watch-task", "build:w": "npm run tslint && rimraf dist && npm run watch-task",
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"",
@@ -20,7 +17,7 @@
"test": "karma start karma.conf.js --reporters mocha,coverage --single-run", "test": "karma start karma.conf.js --reporters mocha,coverage --single-run",
"test-browser": "npm run build && concurrently \"karma start karma.conf.js --reporters kjhtml\" \"npm run watch-task\"", "test-browser": "npm run build && 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 && wsrv -o -p 9875 ./coverage/report",
"prepublish": "npm run build", "prepublish": "npm run build",
"travis": "npm link ng2-alfresco-core ng2-alfresco-datatable" "travis": "npm link ng2-alfresco-core ng2-alfresco-datatable"
}, },
@@ -68,17 +65,15 @@
"ng2-activiti-tasklist": "0.3.3" "ng2-activiti-tasklist": "0.3.3"
}, },
"devDependencies": { "devDependencies": {
"angular-cli": "1.0.0-beta.9", "@types/core-js": "^0.9.32",
"concurrently": "^2.1.0", "@types/jasmine": "^2.2.33",
"coveralls": "^2.11.9", "concurrently": "^2.2.0",
"cpx": "^1.3.1", "cpx": "^1.3.1",
"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",
"karma": "~0.13.22", "karma": "~0.13.22",
"karma-chrome-launcher": "~1.0.1", "karma-chrome-launcher": "~1.0.1",
"karma-coverage": "^1.0.0", "karma-coverage": "^1.0.0",
"karma-coveralls": "^1.1.2",
"karma-jasmine": "~1.0.2", "karma-jasmine": "~1.0.2",
"karma-jasmine-ajax": "^0.1.13", "karma-jasmine-ajax": "^0.1.13",
"karma-jasmine-html-reporter": "^0.2.0", "karma-jasmine-html-reporter": "^0.2.0",
@@ -88,8 +83,8 @@
"rimraf": "2.5.2", "rimraf": "2.5.2",
"traceur": "^0.0.91", "traceur": "^0.0.91",
"tslint": "^3.8.1", "tslint": "^3.8.1",
"typescript": "^1.8.10", "typescript": "^2.0.2",
"typings": "^1.0.4" "wsrv": "^0.1.5"
}, },
"license-check-config": { "license-check-config": {
"src": [ "src": [

View File

@@ -15,13 +15,12 @@
"noImplicitReturns": false, "noImplicitReturns": false,
"noImplicitUseStrict": false, "noImplicitUseStrict": false,
"noFallthroughCasesInSwitch": true, "noFallthroughCasesInSwitch": true,
"outDir": "dist" "outDir": "dist",
"types": ["core-js", "jasmine"]
}, },
"exclude": [ "exclude": [
"demo", "demo",
"node_modules", "node_modules",
"typings/main",
"typings/main.d.ts",
"dist" "dist"
] ]
} }

View File

@@ -1,7 +0,0 @@
{
"globalDependencies": {
"core-js": "registry:dt/core-js#0.0.0+20160317120654",
"jasmine": "registry:dt/jasmine#2.2.0+20160505161446",
"node": "registry:dt/node#4.0.0+20160509154515"
}
}

View File

@@ -5,9 +5,8 @@
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"clean": "rimraf dist node_modules typings", "clean": "rimraf dist node_modules",
"postinstall": "npm run typings && npm run build", "postinstall": "npm run build",
"typings": "typings install",
"start": "npm run build && concurrently \"npm run tsc:w\" \"npm run server\" ", "start": "npm run build && concurrently \"npm run tsc:w\" \"npm run server\" ",
"server": "wsrv -o -s -l", "server": "wsrv -o -s -l",
"build": "npm run tslint && rimraf dist && npm run tsc", "build": "npm run tslint && rimraf dist && npm run tsc",
@@ -41,13 +40,13 @@
"ng2-alfresco-core": "^0.3.0" "ng2-alfresco-core": "^0.3.0"
}, },
"devDependencies": { "devDependencies": {
"browser-sync": "2.10.0", "@types/core-js": "^0.9.32",
"concurrently": "2.0.0", "@types/jasmine": "^2.2.33",
"concurrently": "^2.2.0",
"rimraf": "2.5.2", "rimraf": "2.5.2",
"tslint": "3.8.1", "tslint": "3.8.1",
"typescript": "1.8.10", "typescript": "^2.0.2",
"typings": "1.0.4", "wsrv": "^0.1.5"
"wsrv": "0.1.3"
}, },
"keywords": [ "keywords": [
"angular2", "angular2",

View File

@@ -8,12 +8,11 @@
"sourceMap": true, "sourceMap": true,
"removeComments": true, "removeComments": true,
"declaration": true, "declaration": true,
"outDir": "dist" "outDir": "dist",
"types": ["core-js", "jasmine"]
}, },
"exclude": [ "exclude": [
"dist", "dist",
"node_modules", "node_modules"
"typings/main",
"typings/main.d.ts"
] ]
} }

View File

@@ -1,7 +0,0 @@
{
"globalDependencies": {
"core-js": "registry:dt/core-js#0.0.0+20160317120654",
"jasmine": "registry:dt/jasmine#2.2.0+20160505161446",
"node": "registry:dt/node#4.0.0+20160509154515"
}
}

View File

@@ -72,7 +72,7 @@ module.exports = function (config) {
], ],
// Coverage reporter generates the coverage // Coverage reporter generates the coverage
reporters: ['mocha', 'coverage', 'coveralls', 'kjhtml'], reporters: ['mocha', 'coverage', 'kjhtml'],
// Source files that you wanna generate coverage for. // Source files that you wanna generate coverage for.
// Do not include tests or libraries (these files will be instrumented by Istanbul) // Do not include tests or libraries (these files will be instrumented by Istanbul)

View File

@@ -4,10 +4,7 @@
"version": "0.3.3", "version": "0.3.3",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"postinstall": "typings install", "clean": "rimraf dist node_modules",
"clean": "rimraf dist node_modules typings",
"typings": "typings install",
"server": "wsrv -o -p 9875",
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check", "build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
"build:w": "npm run tslint && rimraf dist && npm run watch-task", "build:w": "npm run tslint && rimraf dist && npm run watch-task",
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"",
@@ -72,19 +69,15 @@
"ng2-activiti-form": "0.3.3", "ng2-activiti-form": "0.3.3",
"alfresco-js-api": "^0.3.0" "alfresco-js-api": "^0.3.0"
}, },
"peerDependencies": {
"material-design-icons": "^2.2.3",
"material-design-lite": "^1.1.3"
},
"devDependencies": { "devDependencies": {
"concurrently": "2.1.0", "@types/core-js": "^0.9.32",
"coveralls": "2.11.9", "@types/jasmine": "^2.2.33",
"concurrently": "^2.2.0",
"cpx": "1.3.1", "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",
"karma-coverage": "1.0.0", "karma-coverage": "1.0.0",
"karma-coveralls": "1.1.2",
"karma-jasmine": "1.0.2", "karma-jasmine": "1.0.2",
"karma-jasmine-ajax": "0.1.13", "karma-jasmine-ajax": "0.1.13",
"karma-mocha-reporter": "2.0.3", "karma-mocha-reporter": "2.0.3",
@@ -94,9 +87,8 @@
"remap-istanbul": "0.6.3", "remap-istanbul": "0.6.3",
"traceur": "0.0.91", "traceur": "0.0.91",
"tslint": "3.8.1", "tslint": "3.8.1",
"typescript": "1.8.10", "typescript": "^2.0.2",
"typings": "1.0.4", "wsrv": "^0.1.5"
"wsrv": "0.1.3"
}, },
"license-check-config": { "license-check-config": {
"src": [ "src": [

View File

@@ -15,13 +15,12 @@
"noImplicitReturns": false, "noImplicitReturns": false,
"noImplicitUseStrict": false, "noImplicitUseStrict": false,
"noFallthroughCasesInSwitch": true, "noFallthroughCasesInSwitch": true,
"outDir": "dist" "outDir": "dist",
"types": ["core-js", "jasmine"]
}, },
"exclude": [ "exclude": [
"demo", "demo",
"node_modules", "node_modules",
"typings/main",
"typings/main.d.ts",
"dist" "dist"
] ]
} }

View File

@@ -1,7 +0,0 @@
{
"globalDependencies": {
"core-js": "registry:dt/core-js#0.0.0+20160317120654",
"jasmine": "registry:dt/jasmine#2.2.0+20160505161446",
"node": "registry:dt/node#4.0.0+20160509154515"
}
}

View File

@@ -71,7 +71,7 @@ module.exports = function (config) {
], ],
// Coverage reporter generates the coverage // Coverage reporter generates the coverage
reporters: ['mocha', 'coverage', 'coveralls', 'kjhtml'], reporters: ['mocha', 'coverage', 'kjhtml'],
// Source files that you wanna generate coverage for. // Source files that you wanna generate coverage for.
// Do not include tests or libraries (these files will be instrumented by Istanbul) // Do not include tests or libraries (these files will be instrumented by Istanbul)
@@ -89,7 +89,7 @@ module.exports = function (config) {
{type: 'lcov'} {type: 'lcov'}
] ]
} }
} };
if (process.env.TRAVIS) { if (process.env.TRAVIS) {
configuration.browsers = ['Chrome_travis_ci']; configuration.browsers = ['Chrome_travis_ci'];

View File

@@ -4,9 +4,7 @@
"version": "0.3.2", "version": "0.3.2",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"postinstall": "typings install", "clean": "rimraf dist node_modules",
"clean": "rimraf dist node_modules typings",
"typings": "typings install",
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check", "build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
"build:w": "npm run tslint && rimraf dist && tsc && npm run copy-dist:w && npm run watch-task", "build:w": "npm run tslint && rimraf dist && tsc && npm run copy-dist:w && npm run watch-task",
"watch-task": "concurrently \"npm run tsc:w\" \"license-check\"", "watch-task": "concurrently \"npm run tsc:w\" \"license-check\"",
@@ -37,7 +35,7 @@
"contributors": [ "contributors": [
{ {
"name": "Denys Vuika", "name": "Denys Vuika",
"email": "denis.vuyka@gmail.com" "email": "denys.vuika@gmail.com"
}, },
{ {
"name": "Mario Romano", "name": "Mario Romano",
@@ -73,19 +71,15 @@
"zone.js": "0.6.12", "zone.js": "0.6.12",
"ng2-translate": "2.2.2" "ng2-translate": "2.2.2"
}, },
"peerDependencies": {
"material-design-icons": "^2.2.3",
"material-design-lite": "^1.1.3"
},
"devDependencies": { "devDependencies": {
"coveralls": "^2.11.9", "@types/core-js": "^0.9.32",
"@types/jasmine": "^2.2.33",
"cpx": "1.3.1", "cpx": "1.3.1",
"jasmine-ajax": "3.2.0", "jasmine-ajax": "3.2.0",
"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",
"karma-coverage": "1.0.0", "karma-coverage": "1.0.0",
"karma-coveralls": "1.1.2",
"karma-jasmine": "1.0.2", "karma-jasmine": "1.0.2",
"karma-jasmine-ajax": "^0.1.13", "karma-jasmine-ajax": "^0.1.13",
"karma-jasmine-html-reporter": "0.2.0", "karma-jasmine-html-reporter": "0.2.0",
@@ -95,9 +89,8 @@
"rimraf": "2.5.2", "rimraf": "2.5.2",
"traceur": "0.0.91", "traceur": "0.0.91",
"tslint": "3.8.1", "tslint": "3.8.1",
"typescript": "1.8.10", "typescript": "^2.0.2",
"typings": "1.0.4", "wsrv": "^0.1.5"
"wsrv": "0.1.3"
}, },
"license-check-config": { "license-check-config": {
"src": [ "src": [

View File

@@ -15,13 +15,12 @@
"noImplicitReturns": false, "noImplicitReturns": false,
"noImplicitUseStrict": false, "noImplicitUseStrict": false,
"noFallthroughCasesInSwitch": true, "noFallthroughCasesInSwitch": true,
"outDir": "dist" "outDir": "dist",
"types": ["core-js", "jasmine"]
}, },
"exclude": [ "exclude": [
"demo", "demo",
"node_modules", "node_modules",
"typings/main",
"typings/main.d.ts",
"dist" "dist"
] ]
} }

View File

@@ -1,7 +0,0 @@
{
"globalDependencies": {
"core-js": "registry:dt/core-js#0.0.0+20160317120654",
"jasmine": "registry:dt/jasmine#2.2.0+20160505161446",
"node": "registry:dt/node#4.0.0+20160509154515"
}
}

View File

@@ -44,13 +44,13 @@
"material-design-lite": "1.1.3" "material-design-lite": "1.1.3"
}, },
"devDependencies": { "devDependencies": {
"browser-sync": "2.10.0", "@types/core-js": "^0.9.32",
"concurrently": "2.0.0", "@types/jasmine": "^2.2.33",
"concurrently": "^2.2.0",
"rimraf": "2.5.2", "rimraf": "2.5.2",
"tslint": "3.8.1", "tslint": "3.8.1",
"typescript": "1.8.10", "typescript": "^2.0.2",
"typings": "1.0.4", "wsrv": "^0.1.5"
"wsrv": "0.1.3"
}, },
"keywords": [ "keywords": [
"angular2", "angular2",

View File

@@ -8,12 +8,11 @@
"sourceMap": true, "sourceMap": true,
"removeComments": true, "removeComments": true,
"declaration": true, "declaration": true,
"outDir": "dist" "outDir": "dist",
"types": ["core-js", "jasmine"]
}, },
"exclude": [ "exclude": [
"dist", "dist",
"node_modules", "node_modules"
"typings/main",
"typings/main.d.ts"
] ]
} }

View File

@@ -1,7 +0,0 @@
{
"globalDependencies": {
"core-js": "registry:dt/core-js#0.0.0+20160317120654",
"jasmine": "registry:dt/jasmine#2.2.0+20160505161446",
"node": "registry:dt/node#4.0.0+20160509154515"
}
}

View File

@@ -4,10 +4,7 @@
"version": "0.3.2", "version": "0.3.2",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"postinstall": "typings install", "clean": "rimraf dist node_modules",
"clean": "rimraf dist node_modules typings",
"typings": "typings install",
"server": "wsrv -o -p 9875",
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check", "build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
"build:w": "npm run tslint && rimraf dist && npm run watch-task", "build:w": "npm run tslint && rimraf dist && npm run watch-task",
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"",
@@ -65,19 +62,15 @@
"ng2-translate": "2.2.2", "ng2-translate": "2.2.2",
"ng2-alfresco-core": "0.3.2" "ng2-alfresco-core": "0.3.2"
}, },
"peerDependencies": {
"material-design-icons": "^2.2.3",
"material-design-lite": "^1.1.3"
},
"devDependencies": { "devDependencies": {
"concurrently": "2.1.0", "@types/core-js": "^0.9.32",
"coveralls": "2.11.9", "@types/jasmine": "^2.2.33",
"concurrently": "^2.2.0",
"cpx": "1.3.1", "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",
"karma-coverage": "1.0.0", "karma-coverage": "1.0.0",
"karma-coveralls": "1.1.2",
"karma-jasmine": "1.0.2", "karma-jasmine": "1.0.2",
"karma-jasmine-html-reporter": "0.2.0", "karma-jasmine-html-reporter": "0.2.0",
"karma-mocha-reporter": "2.0.3", "karma-mocha-reporter": "2.0.3",
@@ -86,9 +79,8 @@
"rimraf": "2.5.2", "rimraf": "2.5.2",
"traceur": "0.0.91", "traceur": "0.0.91",
"tslint": "3.8.1", "tslint": "3.8.1",
"typescript": "1.8.10", "typescript": "^2.0.2",
"typings": "1.0.4", "wsrv": "^0.1.5"
"wsrv": "0.1.3"
}, },
"license-check-config": { "license-check-config": {
"src": [ "src": [

View File

@@ -8,14 +8,13 @@
"sourceMap": true, "sourceMap": true,
"removeComments": true, "removeComments": true,
"declaration": true, "declaration": true,
"outDir": "dist" "outDir": "dist",
"types": ["core-js", "jasmine"]
}, },
"exclude": [ "exclude": [
"demo", "demo",
"dist", "dist",
"node_modules", "node_modules",
"typings/main",
"typings/main.d.ts",
"dist" "dist"
] ]
} }

View File

@@ -1,7 +0,0 @@
{
"globalDependencies": {
"core-js": "registry:dt/core-js#0.0.0+20160317120654",
"jasmine": "registry:dt/jasmine#2.2.0+20160505161446",
"node": "registry:dt/node#4.0.0+20160509154515"
}
}

View File

@@ -5,9 +5,8 @@
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"clean": "rimraf dist node_modules typings", "clean": "rimraf dist node_modules",
"typings": "typings install", "postinstall": "npm run build",
"postinstall": "npm run typings && npm run build",
"start": "npm run build && concurrently \"npm run tsc:w\" \"npm run server\" ", "start": "npm run build && concurrently \"npm run tsc:w\" \"npm run server\" ",
"server": "wsrv -o -s -l", "server": "wsrv -o -s -l",
"build": "npm run tslint && rimraf dist && npm run tsc", "build": "npm run tslint && rimraf dist && npm run tsc",
@@ -43,12 +42,13 @@
"ng2-alfresco-datatable": "^0.3.0" "ng2-alfresco-datatable": "^0.3.0"
}, },
"devDependencies": { "devDependencies": {
"concurrently": "2.0.0", "@types/core-js": "^0.9.32",
"@types/jasmine": "^2.2.33",
"concurrently": "^2.2.0",
"rimraf": "2.5.2", "rimraf": "2.5.2",
"tslint": "3.8.1", "tslint": "3.8.1",
"typescript": "1.8.10", "typescript": "^2.0.2",
"typings": "1.0.4", "wsrv": "^0.1.5"
"wsrv": "0.1.3"
}, },
"keywords": [ "keywords": [
"angular2", "angular2",

View File

@@ -8,12 +8,11 @@
"sourceMap": true, "sourceMap": true,
"removeComments": true, "removeComments": true,
"declaration": true, "declaration": true,
"outDir": "dist" "outDir": "dist",
"types": ["core-js", "jasmine"]
}, },
"exclude": [ "exclude": [
"dist", "dist",
"node_modules", "node_modules"
"typings/main",
"typings/main.d.ts"
] ]
} }

View File

@@ -1,7 +0,0 @@
{
"globalDependencies": {
"core-js": "registry:dt/core-js#0.0.0+20160317120654",
"jasmine": "registry:dt/jasmine#2.2.0+20160505161446",
"node": "registry:dt/node#4.0.0+20160509154515"
}
}

View File

@@ -4,9 +4,7 @@
"version": "0.3.2", "version": "0.3.2",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"postinstall": "typings install", "clean": "rimraf dist node_modules",
"clean": "rimraf dist node_modules typings",
"typings": "typings install",
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check", "build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
"build:w": "npm run tslint && rimraf dist && npm run watch-task", "build:w": "npm run tslint && rimraf dist && npm run watch-task",
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"",
@@ -74,19 +72,15 @@
"ng2-alfresco-datatable": "0.3.2", "ng2-alfresco-datatable": "0.3.2",
"alfresco-js-api": "^0.3.1" "alfresco-js-api": "^0.3.1"
}, },
"peerDependencies": {
"material-design-icons": "^2.2.3",
"material-design-lite": "^1.1.3"
},
"devDependencies": { "devDependencies": {
"concurrently": "2.1.0", "@types/core-js": "^0.9.32",
"coveralls": "2.11.9", "@types/jasmine": "^2.2.33",
"concurrently": "^2.2.0",
"cpx": "1.3.1", "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",
"karma-coverage": "1.0.0", "karma-coverage": "1.0.0",
"karma-coveralls": "1.1.2",
"karma-jasmine": "1.0.2", "karma-jasmine": "1.0.2",
"karma-jasmine-ajax": "^0.1.13", "karma-jasmine-ajax": "^0.1.13",
"karma-jasmine-html-reporter": "0.2.0", "karma-jasmine-html-reporter": "0.2.0",
@@ -96,9 +90,8 @@
"rimraf": "2.5.2", "rimraf": "2.5.2",
"traceur": "0.0.91", "traceur": "0.0.91",
"tslint": "3.8.1", "tslint": "3.8.1",
"typescript": "1.8.10", "typescript": "^2.0.2",
"typings": "1.0.4", "wsrv": "^0.1.5"
"wsrv": "0.1.3"
}, },
"license-check-config": { "license-check-config": {
"src": [ "src": [

View File

@@ -8,13 +8,12 @@
"sourceMap": true, "sourceMap": true,
"removeComments": true, "removeComments": true,
"declaration": true, "declaration": true,
"outDir": "dist" "outDir": "dist",
"types": ["core-js", "jasmine"]
}, },
"exclude": [ "exclude": [
"demo", "demo",
"node_modules", "node_modules",
"typings/main",
"typings/main.d.ts",
"dist" "dist"
] ]
} }

View File

@@ -1,7 +0,0 @@
{
"globalDependencies": {
"core-js": "registry:dt/core-js#0.0.0+20160317120654",
"jasmine": "registry:dt/jasmine#2.2.0+20160505161446",
"node": "registry:dt/node#4.0.0+20160509154515"
}
}

View File

@@ -5,9 +5,8 @@
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"clean": "rimraf dist node_modules typings", "clean": "rimraf dist node_modules",
"typings": "typings install", "postinstall": "npm run build",
"postinstall": "npm run typings && npm run build",
"start": "npm run build && concurrently \"npm run tsc:w\" \"npm run server\" ", "start": "npm run build && concurrently \"npm run tsc:w\" \"npm run server\" ",
"server": "wsrv -o -s -l", "server": "wsrv -o -s -l",
"build": "npm run tslint && rimraf dist && tsc", "build": "npm run tslint && rimraf dist && tsc",
@@ -71,11 +70,12 @@
"ng2-alfresco-login": "file:../" "ng2-alfresco-login": "file:../"
}, },
"devDependencies": { "devDependencies": {
"concurrently": "^2.0.0", "@types/core-js": "^0.9.32",
"@types/jasmine": "^2.2.33",
"concurrently": "^2.2.0",
"rimraf": "2.5.2", "rimraf": "2.5.2",
"tslint": "^3.8.1", "tslint": "^3.8.1",
"typescript": "^1.8.10", "typescript": "^2.0.2",
"typings": "^1.0.4", "wsrv": "^0.1.5",
"wsrv": "0.1.3"
} }
} }

View File

@@ -8,12 +8,11 @@
"sourceMap": true, "sourceMap": true,
"removeComments": true, "removeComments": true,
"declaration": true, "declaration": true,
"outDir": "dist" "outDir": "dist",
"types": ["core-js", "jasmine"]
}, },
"exclude": [ "exclude": [
"dist", "dist",
"node_modules", "node_modules"
"typings/main",
"typings/main.d.ts"
] ]
} }

View File

@@ -1,7 +0,0 @@
{
"globalDependencies": {
"core-js": "registry:dt/core-js#0.0.0+20160317120654",
"jasmine": "registry:dt/jasmine#2.2.0+20160505161446",
"node": "registry:dt/node#4.0.0+20160509154515"
}
}

View File

@@ -69,7 +69,7 @@ module.exports = function (config) {
], ],
// Coverage reporter generates the coverage // Coverage reporter generates the coverage
reporters: ['mocha', 'coverage', 'coveralls', 'kjhtml'], reporters: ['mocha', 'coverage', 'kjhtml'],
// Source files that you wanna generate coverage for. // Source files that you wanna generate coverage for.
// Do not include tests or libraries (these files will be instrumented by Istanbul) // Do not include tests or libraries (these files will be instrumented by Istanbul)

View File

@@ -4,9 +4,7 @@
"version": "0.3.2", "version": "0.3.2",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"postinstall": "typings install", "clean": "rimraf dist node_modules",
"clean": "rimraf dist node_modules typings",
"typings": "typings install",
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check", "build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
"build:w": "npm run tslint && rimraf dist && npm run watch-task", "build:w": "npm run tslint && rimraf dist && npm run watch-task",
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"",
@@ -79,13 +77,14 @@
"coveralls": "^2.11.9" "coveralls": "^2.11.9"
}, },
"devDependencies": { "devDependencies": {
"concurrently": "2.1.0", "@types/core-js": "^0.9.32",
"@types/jasmine": "^2.2.33",
"concurrently": "^2.2.0",
"cpx": "1.3.1", "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",
"karma-coverage": "1.0.0", "karma-coverage": "1.0.0",
"karma-coveralls": "1.1.2",
"karma-jasmine": "1.0.2", "karma-jasmine": "1.0.2",
"karma-mocha-reporter": "2.0.3", "karma-mocha-reporter": "2.0.3",
"karma-jasmine-html-reporter": "0.2.0", "karma-jasmine-html-reporter": "0.2.0",
@@ -94,9 +93,8 @@
"rimraf": "2.5.2", "rimraf": "2.5.2",
"traceur": "0.0.91", "traceur": "0.0.91",
"tslint": "3.8.1", "tslint": "3.8.1",
"typescript": "1.8.10", "typescript": "^2.0.2",
"typings": "1.0.4", "wsrv": "^0.1.5",
"wsrv": "0.1.3",
"xo": "0.14.0", "xo": "0.14.0",
"yargs": "4.7.0" "yargs": "4.7.0"
}, },

View File

@@ -15,13 +15,12 @@
"noImplicitReturns": false, "noImplicitReturns": false,
"noImplicitUseStrict": false, "noImplicitUseStrict": false,
"noFallthroughCasesInSwitch": true, "noFallthroughCasesInSwitch": true,
"outDir": "dist" "outDir": "dist",
"types": ["core-js", "jasmine"]
}, },
"exclude": [ "exclude": [
"demo", "demo",
"node_modules", "node_modules",
"typings/main",
"typings/main.d.ts",
"dist" "dist"
] ]
} }

View File

@@ -1,7 +0,0 @@
{
"globalDependencies": {
"core-js": "registry:dt/core-js#0.0.0+20160317120654",
"jasmine": "registry:dt/jasmine#2.2.0+20160505161446",
"node": "registry:dt/node#4.0.0+20160509154515"
}
}

View File

@@ -5,9 +5,8 @@
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"clean": "rimraf dist node_modules typings", "clean": "rimraf dist node_modules",
"typings": "typings install", "postinstall": "npm run build",
"postinstall": "npm run typings && npm run build",
"start": "npm run build && concurrently \"npm run tsc:w\" \"npm run server\" ", "start": "npm run build && concurrently \"npm run tsc:w\" \"npm run server\" ",
"server": "wsrv -o -s -l", "server": "wsrv -o -s -l",
"build": "npm run tslint && rimraf dist && npm run tsc", "build": "npm run tslint && rimraf dist && npm run tsc",
@@ -71,11 +70,12 @@
"ng2-alfresco-search": "^0.3.0" "ng2-alfresco-search": "^0.3.0"
}, },
"devDependencies": { "devDependencies": {
"concurrently": "2.0.0", "@types/core-js": "^0.9.32",
"@types/jasmine": "^2.2.33",
"concurrently": "^2.2.0",
"rimraf": "2.5.2", "rimraf": "2.5.2",
"tslint": "3.8.1", "tslint": "3.8.1",
"typescript": "1.8.10", "typescript": "^2.0.2",
"typings": "1.0.4", "wsrv": "^0.1.5"
"wsrv": "0.1.3"
} }
} }

View File

@@ -8,12 +8,11 @@
"sourceMap": true, "sourceMap": true,
"removeComments": true, "removeComments": true,
"declaration": true, "declaration": true,
"outDir": "dist" "outDir": "dist",
"types": ["core-js", "jasmine"]
}, },
"exclude": [ "exclude": [
"dist", "dist",
"node_modules", "node_modules"
"typings/main",
"typings/main.d.ts"
] ]
} }

View File

@@ -1,7 +0,0 @@
{
"globalDependencies": {
"core-js": "registry:dt/core-js#0.0.0+20160317120654",
"jasmine": "registry:dt/jasmine#2.2.0+20160505161446",
"node": "registry:dt/node#4.0.0+20160509154515"
}
}

View File

@@ -74,7 +74,7 @@ module.exports = function (config) {
], ],
// Coverage reporter generates the coverage // Coverage reporter generates the coverage
reporters: ['mocha', 'coverage', 'coveralls', 'kjhtml'], reporters: ['mocha', 'coverage', 'kjhtml'],
// Source files that you wanna generate coverage for. // Source files that you wanna generate coverage for.
// Do not include tests or libraries (these files will be instrumented by Istanbul) // Do not include tests or libraries (these files will be instrumented by Istanbul)

View File

@@ -4,9 +4,7 @@
"version": "0.3.2", "version": "0.3.2",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"postinstall": "typings install", "clean": "rimraf dist node_modules",
"clean": "rimraf dist node_modules typings",
"typings": "typings install",
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check", "build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
"build:w": "npm run tslint && rimraf dist && npm run watch-task", "build:w": "npm run tslint && rimraf dist && npm run watch-task",
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"",
@@ -73,19 +71,15 @@
"alfresco-js-api": "^0.3.0", "alfresco-js-api": "^0.3.0",
"ng2-alfresco-core": "0.3.2" "ng2-alfresco-core": "0.3.2"
}, },
"peerDependencies": {
"material-design-icons": "^2.2.3",
"material-design-lite": "^1.1.3"
},
"devDependencies": { "devDependencies": {
"concurrently": "2.1.0", "@types/core-js": "^0.9.32",
"coveralls": "2.11.9", "@types/jasmine": "^2.2.33",
"concurrently": "^2.2.0",
"cpx": "1.3.1", "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",
"karma-coverage": "1.0.0", "karma-coverage": "1.0.0",
"karma-coveralls": "1.1.2",
"karma-jasmine": "1.0.2", "karma-jasmine": "1.0.2",
"karma-jasmine-ajax": "^0.1.13", "karma-jasmine-ajax": "^0.1.13",
"karma-mocha-reporter": "2.0.3", "karma-mocha-reporter": "2.0.3",
@@ -95,9 +89,8 @@
"remap-istanbul": "0.6.3", "remap-istanbul": "0.6.3",
"traceur": "0.0.91", "traceur": "0.0.91",
"tslint": "3.8.1", "tslint": "3.8.1",
"typescript": "1.8.10", "typescript": "^2.0.2",
"typings": "1.0.4", "wsrv": "^0.1.5"
"wsrv": "0.1.3"
}, },
"license-check-config": { "license-check-config": {
"src": [ "src": [

View File

@@ -8,13 +8,12 @@
"sourceMap": true, "sourceMap": true,
"removeComments": true, "removeComments": true,
"declaration": true, "declaration": true,
"outDir": "dist" "outDir": "dist",
"types": ["core-js", "jasmine"]
}, },
"exclude": [ "exclude": [
"demo", "demo",
"node_modules", "node_modules",
"typings/main",
"typings/main.d.ts",
"dist" "dist"
] ]
} }

View File

@@ -1,7 +0,0 @@
{
"globalDependencies": {
"core-js": "registry:dt/core-js#0.0.0+20160317120654",
"jasmine": "registry:dt/jasmine#2.2.0+20160505161446",
"node": "registry:dt/node#4.0.0+20160509154515"
}
}

View File

@@ -5,9 +5,8 @@
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"clean": "rimraf dist node_modules typings", "clean": "rimraf dist node_modules",
"typings": "typings install", "postinstall": "npm run build",
"postinstall": "npm run typings && npm run build",
"start": "concurrently \"npm run build:w\" \"npm run server\" ", "start": "concurrently \"npm run build:w\" \"npm run server\" ",
"server": "wsrv -o -s -l", "server": "wsrv -o -s -l",
"build": "npm run tslint && rimraf dist && tsc", "build": "npm run tslint && rimraf dist && tsc",
@@ -43,12 +42,13 @@
"ng2-alfresco-core": "^0.3.0" "ng2-alfresco-core": "^0.3.0"
}, },
"devDependencies": { "devDependencies": {
"concurrently": "2.0.0", "@types/core-js": "^0.9.32",
"@types/jasmine": "^2.2.33",
"concurrently": "^2.2.0",
"rimraf": "2.5.2", "rimraf": "2.5.2",
"tslint": "3.8.1", "tslint": "3.8.1",
"typescript": "1.8.10", "typescript": "^2.0.2",
"typings": "1.0.4", "wsrv": "^0.1.5"
"wsrv": "0.1.3"
}, },
"contributors": [ "contributors": [
{ {

View File

@@ -8,12 +8,11 @@
"sourceMap": true, "sourceMap": true,
"removeComments": true, "removeComments": true,
"declaration": true, "declaration": true,
"outDir": "dist" "outDir": "dist",
"types": ["core-js", "jasmine"]
}, },
"exclude": [ "exclude": [
"dist", "dist",
"node_modules", "node_modules"
"typings/main",
"typings/main.d.ts"
] ]
} }

View File

@@ -1,7 +0,0 @@
{
"globalDependencies": {
"core-js": "registry:dt/core-js#0.0.0+20160317120654",
"jasmine": "registry:dt/jasmine#2.2.0+20160505161446",
"node": "registry:dt/node#4.0.0+20160509154515"
}
}

View File

@@ -6,9 +6,7 @@
"main": "./dist/index.js", "main": "./dist/index.js",
"typings": "./dist/index.d.ts", "typings": "./dist/index.d.ts",
"scripts": { "scripts": {
"postinstall": "typings install", "clean": "rimraf dist node_modules",
"clean": "rimraf dist node_modules typings",
"typings": "typings install",
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check", "build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
"build:w": "npm run tslint && rimraf dist && npm run watch-task", "build:w": "npm run tslint && rimraf dist && npm run watch-task",
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"",
@@ -53,8 +51,9 @@
"zone.js": "^0.6.12" "zone.js": "^0.6.12"
}, },
"devDependencies": { "devDependencies": {
"concurrently": "^2.1.0", "@types/core-js": "^0.9.32",
"coveralls": "^2.11.9", "@types/jasmine": "^2.2.33",
"concurrently": "^2.2.0",
"cpx": "^1.3.1", "cpx": "^1.3.1",
"jasmine-ajax": "^3.2.0", "jasmine-ajax": "^3.2.0",
"jasmine-core": "2.4.1", "jasmine-core": "2.4.1",
@@ -66,14 +65,12 @@
"karma-jasmine-html-reporter": "^0.2.0", "karma-jasmine-html-reporter": "^0.2.0",
"karma-mocha-reporter": "^2.0.3", "karma-mocha-reporter": "^2.0.3",
"license-check": "^1.0.4", "license-check": "^1.0.4",
"material-design-lite": "^1.1.3",
"remap-istanbul": "^0.6.3", "remap-istanbul": "^0.6.3",
"rimraf": "2.5.2", "rimraf": "2.5.2",
"traceur": "^0.0.91", "traceur": "^0.0.91",
"tslint": "^3.8.1", "tslint": "^3.8.1",
"typescript": "^1.8.10", "typescript": "^2.0.2",
"typings": "^1.0.4", "wsrv": "^0.1.5"
"wsrv": "0.1.3"
}, },
"keywords": [ "keywords": [
"tag", "tag",

View File

@@ -15,13 +15,12 @@
"noImplicitReturns": false, "noImplicitReturns": false,
"noImplicitUseStrict": false, "noImplicitUseStrict": false,
"noFallthroughCasesInSwitch": true, "noFallthroughCasesInSwitch": true,
"outDir": "dist" "outDir": "dist",
"types": ["core-js", "jasmine"]
}, },
"exclude": [ "exclude": [
"demo", "demo",
"node_modules", "node_modules",
"typings/main",
"typings/main.d.ts",
"dist" "dist"
] ]
} }

View File

@@ -1,7 +0,0 @@
{
"globalDependencies": {
"core-js": "registry:dt/core-js#0.0.0+20160317120654",
"jasmine": "registry:dt/jasmine#2.2.0+20160505161446",
"node": "registry:dt/node#4.0.0+20160509154515"
}
}

View File

@@ -5,9 +5,8 @@
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"clean": "rimraf dist node_modules typings", "clean": "rimraf dist node_modules",
"typings": "typings install", "postinstall": "npm run build",
"postinstall": "npm run typings && npm run build",
"start": "npm run build && concurrently \"npm run tsc:w\" \"npm run server\" ", "start": "npm run build && concurrently \"npm run tsc:w\" \"npm run server\" ",
"server": "wsrv -o -l -s", "server": "wsrv -o -l -s",
"build": "npm run tslint && rimraf dist && npm run tsc", "build": "npm run tslint && rimraf dist && npm run tsc",
@@ -71,11 +70,12 @@
"ng2-alfresco-upload": "^0.3.0" "ng2-alfresco-upload": "^0.3.0"
}, },
"devDependencies": { "devDependencies": {
"concurrently": "2.0.0", "@types/core-js": "^0.9.32",
"@types/jasmine": "^2.2.33",
"concurrently": "^2.2.0",
"rimraf": "2.5.2", "rimraf": "2.5.2",
"tslint": "3.8.1", "tslint": "3.8.1",
"typescript": "1.8.10", "typescript": "^2.0.2",
"typings": "1.0.4", "wsrv": "^0.1.5"
"wsrv": "0.1.3"
} }
} }

View File

@@ -8,12 +8,11 @@
"sourceMap": true, "sourceMap": true,
"removeComments": true, "removeComments": true,
"declaration": true, "declaration": true,
"outDir": "dist" "outDir": "dist",
"types": ["core-js", "jasmine"]
}, },
"exclude": [ "exclude": [
"dist", "dist",
"node_modules", "node_modules"
"typings/main",
"typings/main.d.ts"
] ]
} }

View File

@@ -1,7 +0,0 @@
{
"globalDependencies": {
"core-js": "registry:dt/core-js#0.0.0+20160317120654",
"jasmine": "registry:dt/jasmine#2.2.0+20160505161446",
"node": "registry:dt/node#4.0.0+20160509154515"
}
}

View File

@@ -73,7 +73,7 @@ module.exports = function (config) {
], ],
// Coverage reporter generates the coverage // Coverage reporter generates the coverage
reporters: ['mocha', 'coverage', 'coveralls', 'kjhtml'], reporters: ['mocha', 'coverage', 'kjhtml'],
// Source files that you wanna generate coverage for. // Source files that you wanna generate coverage for.
// Do not include tests or libraries (these files will be instrumented by Istanbul) // Do not include tests or libraries (these files will be instrumented by Istanbul)

View File

@@ -4,9 +4,7 @@
"version": "0.3.2", "version": "0.3.2",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"postinstall": "typings install", "clean": "rimraf dist node_modules",
"clean": "rimraf dist node_modules typings",
"typings": "typings install",
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check", "build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
"build:w": "npm run tslint && rimraf dist && npm run watch-task", "build:w": "npm run tslint && rimraf dist && npm run watch-task",
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"",
@@ -79,15 +77,15 @@
"material-design-lite": "^1.1.3" "material-design-lite": "^1.1.3"
}, },
"devDependencies": { "devDependencies": {
"concurrently": "2.1.0", "@types/core-js": "^0.9.32",
"coveralls": "2.11.9", "@types/jasmine": "^2.2.33",
"concurrently": "^2.2.0",
"cpx": "1.3.1", "cpx": "1.3.1",
"jasmine-ajax": "3.2.0", "jasmine-ajax": "3.2.0",
"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",
"karma-coverage": "1.0.0", "karma-coverage": "1.0.0",
"karma-coveralls": "1.1.2",
"karma-jasmine": "1.0.2", "karma-jasmine": "1.0.2",
"karma-jasmine-ajax": "0.1.13", "karma-jasmine-ajax": "0.1.13",
"karma-jasmine-html-reporter": "0.2.0", "karma-jasmine-html-reporter": "0.2.0",
@@ -97,9 +95,8 @@
"rimraf": "2.5.2", "rimraf": "2.5.2",
"traceur": "0.0.91", "traceur": "0.0.91",
"tslint": "3.8.1", "tslint": "3.8.1",
"typescript": "1.8.10", "typescript": "^2.0.2",
"typings": "1.0.4", "wsrv": "^0.1.5"
"wsrv": "0.1.3"
}, },
"license-check-config": { "license-check-config": {
"src": [ "src": [

View File

@@ -15,13 +15,12 @@
"noImplicitReturns": false, "noImplicitReturns": false,
"noImplicitUseStrict": false, "noImplicitUseStrict": false,
"noFallthroughCasesInSwitch": true, "noFallthroughCasesInSwitch": true,
"outDir": "dist" "outDir": "dist",
"types": ["core-js", "jasmine"]
}, },
"exclude": [ "exclude": [
"demo", "demo",
"node_modules", "node_modules",
"typings/main",
"typings/main.d.ts",
"dist" "dist"
] ]
} }

View File

@@ -1,7 +0,0 @@
{
"globalDependencies": {
"core-js": "registry:dt/core-js#0.0.0+20160317120654",
"jasmine": "registry:dt/jasmine#2.2.0+20160505161446",
"node": "registry:dt/node#4.0.0+20160509154515"
}
}

View File

@@ -5,9 +5,8 @@
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"clean": "rimraf dist node_modules typings", "clean": "rimraf dist node_modules",
"typings": "typings install", "postinstall": "npm run build",
"postinstall": "npm run typings && npm run build",
"start": "npm run build && concurrently \"npm run tsc:w\" \"npm run server\" ", "start": "npm run build && concurrently \"npm run tsc:w\" \"npm run server\" ",
"server": "wsrv -o -s -l", "server": "wsrv -o -s -l",
"build": "npm run tslint && rimraf dist && npm run tsc", "build": "npm run tslint && rimraf dist && npm run tsc",
@@ -44,12 +43,13 @@
"ng2-alfresco-viewer" : "file:../" "ng2-alfresco-viewer" : "file:../"
}, },
"devDependencies": { "devDependencies": {
"concurrently": "2.0.0", "@types/core-js": "^0.9.32",
"@types/jasmine": "^2.2.33",
"concurrently": "^2.2.0",
"rimraf": "2.5.2", "rimraf": "2.5.2",
"tslint": "3.8.1", "tslint": "3.8.1",
"typescript": "1.8.10", "typescript": "^2.0.2",
"typings": "1.0.4", "wsrv": "^0.1.5"
"wsrv": "0.1.3"
}, },
"contributors": [ "contributors": [
{ {

View File

@@ -8,12 +8,11 @@
"sourceMap": true, "sourceMap": true,
"removeComments": true, "removeComments": true,
"declaration": true, "declaration": true,
"outDir": "dist" "outDir": "dist",
"types": ["core-js", "jasmine"]
}, },
"exclude": [ "exclude": [
"dist", "dist",
"node_modules", "node_modules"
"typings/main",
"typings/main.d.ts"
] ]
} }

View File

@@ -1,8 +0,0 @@
{
"globalDependencies": {
"core-js": "registry:dt/core-js#0.0.0+20160317120654",
"jasmine": "registry:dt/jasmine#2.2.0+20160505161446",
"node": "registry:dt/node#4.0.0+20160509154515",
"pdf": "registry:dt/pdf#0.0.0+20160324080756"
}
}

View File

@@ -69,7 +69,7 @@ module.exports = function (config) {
], ],
// Coverage reporter generates the coverage // Coverage reporter generates the coverage
reporters: ['mocha', 'coverage', 'coveralls', 'kjhtml'], reporters: ['mocha', 'coverage', 'kjhtml'],
// Source files that you wanna generate coverage for. // Source files that you wanna generate coverage for.
// Do not include tests or libraries (these files will be instrumented by Istanbul) // Do not include tests or libraries (these files will be instrumented by Istanbul)

View File

@@ -4,9 +4,7 @@
"version": "0.3.2", "version": "0.3.2",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"postinstall": "typings install", "clean": "rimraf dist node_modules",
"clean": "rimraf dist node_modules typings",
"typings": "typings install",
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check", "build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
"build:w": "npm run tslint && rimraf dist && npm run watch-task", "build:w": "npm run tslint && rimraf dist && npm run watch-task",
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"",
@@ -68,20 +66,16 @@
"zone.js": "0.6.12", "zone.js": "0.6.12",
"pdfjs-dist": "1.5.404" "pdfjs-dist": "1.5.404"
}, },
"peerDependencies": {
"material-design-icons": "^2.2.3",
"material-design-lite": "^1.1.3"
},
"devDependencies": { "devDependencies": {
"concurrently": "2.1.0", "@types/core-js": "^0.9.32",
"coveralls": "2.11.9", "@types/jasmine": "^2.2.33",
"concurrently": "^2.2.0",
"cpx": "1.3.1", "cpx": "1.3.1",
"jasmine-ajax": "3.2.0", "jasmine-ajax": "3.2.0",
"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",
"karma-coverage": "1.0.0", "karma-coverage": "1.0.0",
"karma-coveralls": "1.1.2",
"karma-jasmine": "1.0.2", "karma-jasmine": "1.0.2",
"karma-jasmine-ajax": "0.1.13", "karma-jasmine-ajax": "0.1.13",
"karma-jasmine-html-reporter": "0.2.0", "karma-jasmine-html-reporter": "0.2.0",
@@ -91,9 +85,8 @@
"rimraf": "2.5.2", "rimraf": "2.5.2",
"traceur": "0.0.91", "traceur": "0.0.91",
"tslint": "3.8.1", "tslint": "3.8.1",
"typescript": "1.8.10", "typescript": "^2.0.2",
"typings": "1.0.4", "wsrv": "^0.1.5"
"wsrv": "0.1.3"
}, },
"license-check-config": { "license-check-config": {
"src": [ "src": [

View File

@@ -26,8 +26,11 @@ export class EventMock {
} }
static resizeMobileView() { static resizeMobileView() {
// todo: no longer compiles with TS 2.0.2 as innerWidth/innerHeight are readonly fields
/*
window.innerWidth = 320; window.innerWidth = 320;
window.innerHeight = 568; window.innerHeight = 568;
*/
window.dispatchEvent(new Event('resize')); window.dispatchEvent(new Event('resize'));
} }
} }

View File

@@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
import { describe, expect, it, inject, beforeEachProviders, beforeEach } from '@angular/core/testing'; import { describe, expect, it, xit, inject, beforeEachProviders, beforeEach } from '@angular/core/testing';
import { TestComponentBuilder } from '@angular/compiler/testing'; import { TestComponentBuilder } from '@angular/compiler/testing';
import { RenderingQueueServices } from '../services/rendering-queue.services'; import { RenderingQueueServices } from '../services/rendering-queue.services';
@@ -225,7 +225,7 @@ describe('PdfViewer', () => {
}); });
describe('Resize interaction', () => { describe('Resize interaction', () => {
it('resize event should trigger setScaleUpdatePages', (done) => { xit('resize event should trigger setScaleUpdatePages', (done) => {
component.ngOnChanges().then(() => { component.ngOnChanges().then(() => {
pdfComponentFixture.detectChanges(); pdfComponentFixture.detectChanges();
spyOn(component, 'onResize'); spyOn(component, 'onResize');

View File

@@ -15,13 +15,12 @@
"noImplicitReturns": false, "noImplicitReturns": false,
"noImplicitUseStrict": false, "noImplicitUseStrict": false,
"noFallthroughCasesInSwitch": true, "noFallthroughCasesInSwitch": true,
"outDir": "dist" "outDir": "dist",
"types": ["core-js", "jasmine"]
}, },
"exclude": [ "exclude": [
"demo", "demo",
"node_modules", "node_modules",
"typings/main",
"typings/main.d.ts",
"dist" "dist"
] ]
} }

View File

@@ -1,8 +0,0 @@
{
"globalDependencies": {
"core-js": "registry:dt/core-js#0.0.0+20160317120654",
"jasmine": "registry:dt/jasmine#2.2.0+20160505161446",
"node": "registry:dt/node#4.0.0+20160509154515",
"pdf": "registry:dt/pdf#0.0.0+20160324080756"
}
}

View File

@@ -5,9 +5,8 @@
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"clean": "rimraf dist node_modules typings", "clean": "rimraf dist node_modules",
"typings": "typings install", "postinstall": "npm run build",
"postinstall": "npm run typings && npm run build",
"start": "npm run build && concurrently \"npm run tsc:w\" \"npm run server\" ", "start": "npm run build && concurrently \"npm run tsc:w\" \"npm run server\" ",
"server": "wsrv -o -s -l", "server": "wsrv -o -s -l",
"build": "npm run tslint && rimraf dist && npm run tsc", "build": "npm run tslint && rimraf dist && npm run tsc",
@@ -45,12 +44,13 @@
"ng2-alfresco-webscript": "^0.3.0" "ng2-alfresco-webscript": "^0.3.0"
}, },
"devDependencies": { "devDependencies": {
"concurrently": "2.0.0", "@types/core-js": "^0.9.32",
"@types/jasmine": "^2.2.33",
"concurrently": "^2.2.0",
"rimraf": "2.5.2", "rimraf": "2.5.2",
"tslint": "3.8.1", "tslint": "3.8.1",
"typescript": "1.8.10", "typescript": "^2.0.2",
"typings": "1.0.4", "wsrv": "^0.1.5"
"wsrv": "0.1.3"
}, },
"contributors": [ "contributors": [
{ {

View File

@@ -8,7 +8,8 @@
"sourceMap": true, "sourceMap": true,
"removeComments": true, "removeComments": true,
"declaration": true, "declaration": true,
"outDir": "dist" "outDir": "dist",
"types": ["core-js", "jasmine"]
}, },
"exclude": [ "exclude": [
"dist", "dist",

View File

@@ -1,7 +0,0 @@
{
"globalDependencies": {
"core-js": "registry:dt/core-js#0.0.0+20160317120654",
"jasmine": "registry:dt/jasmine#2.2.0+20160505161446",
"node": "registry:dt/node#4.0.0+20160509154515"
}
}

View File

@@ -6,9 +6,7 @@
"main": "./dist/index.js", "main": "./dist/index.js",
"typings": "./dist/index.d.ts", "typings": "./dist/index.d.ts",
"scripts": { "scripts": {
"postinstall": "typings install", "clean": "rimraf dist node_modules",
"clean": "rimraf dist node_modules typings",
"typings": "typings install",
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check", "build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
"build:w": "npm run tslint && rimraf dist && npm run watch-task", "build:w": "npm run tslint && rimraf dist && npm run watch-task",
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"",
@@ -54,8 +52,9 @@
"zone.js": "^0.6.12" "zone.js": "^0.6.12"
}, },
"devDependencies": { "devDependencies": {
"concurrently": "^2.1.0", "@types/core-js": "^0.9.32",
"coveralls": "^2.11.9", "@types/jasmine": "^2.2.33",
"concurrently": "^2.2.0",
"cpx": "^1.3.1", "cpx": "^1.3.1",
"jasmine-ajax": "^3.2.0", "jasmine-ajax": "^3.2.0",
"jasmine-core": "2.4.1", "jasmine-core": "2.4.1",
@@ -72,9 +71,8 @@
"rimraf": "2.5.2", "rimraf": "2.5.2",
"traceur": "^0.0.91", "traceur": "^0.0.91",
"tslint": "^3.8.1", "tslint": "^3.8.1",
"typescript": "^1.8.10", "typescript": "^2.0.2",
"typings": "^1.0.4", "wsrv": "^0.1.5"
"wsrv": "0.1.3"
}, },
"keywords": [ "keywords": [
"webscript", "webscript",

View File

@@ -15,13 +15,12 @@
"noImplicitReturns": false, "noImplicitReturns": false,
"noImplicitUseStrict": false, "noImplicitUseStrict": false,
"noFallthroughCasesInSwitch": true, "noFallthroughCasesInSwitch": true,
"outDir": "dist" "outDir": "dist",
"types": ["core-js", "jasmine"]
}, },
"exclude": [ "exclude": [
"demo", "demo",
"node_modules", "node_modules",
"typings/main",
"typings/main.d.ts",
"dist" "dist"
] ]
} }

View File

@@ -1,7 +0,0 @@
{
"globalDependencies": {
"core-js": "registry:dt/core-js#0.0.0+20160317120654",
"jasmine": "registry:dt/jasmine#2.2.0+20160505161446",
"node": "registry:dt/node#4.0.0+20160509154515"
}
}

View File

@@ -8,7 +8,6 @@ npm install -g typings
echo "====== linking component: ng2-alfresco-core =====" echo "====== linking component: ng2-alfresco-core ====="
cd "$DIR/../ng2-components/ng2-alfresco-core" cd "$DIR/../ng2-components/ng2-alfresco-core"
npm link npm link
npm run typings
npm run build npm run build
#LINK FORM #LINK FORM
@@ -16,7 +15,6 @@ echo "====== linking component: ng2-activiti-form ====="
cd "$DIR/../ng2-components/ng2-activiti-form" cd "$DIR/../ng2-components/ng2-activiti-form"
npm link ng2-alfresco-core npm link ng2-alfresco-core
npm link npm link
npm run typings
npm run build npm run build
#LINK DATATABLE #LINK DATATABLE
@@ -24,7 +22,6 @@ echo "====== linking component: ng2-alfresco-datatable ====="
cd "$DIR/../ng2-components/ng2-alfresco-datatable" cd "$DIR/../ng2-components/ng2-alfresco-datatable"
npm link ng2-alfresco-core npm link ng2-alfresco-core
npm link npm link
npm run typings
npm run build npm run build
#LINK DOCUMENTLIST #LINK DOCUMENTLIST
@@ -33,7 +30,6 @@ cd "$DIR/../ng2-components/ng2-alfresco-documentlist"
npm link ng2-alfresco-core npm link ng2-alfresco-core
npm link ng2-alfresco-datatable npm link ng2-alfresco-datatable
npm link npm link
npm run typings
npm run build npm run build
#LINK WEBSCRIPT #LINK WEBSCRIPT
@@ -42,7 +38,6 @@ cd "$DIR/../ng2-components/ng2-alfresco-webscript"
npm link ng2-alfresco-core npm link ng2-alfresco-core
npm link ng2-alfresco-datatable npm link ng2-alfresco-datatable
npm link npm link
npm run typings
npm run build npm run build
#LINK TASKLIST #LINK TASKLIST
@@ -52,7 +47,6 @@ npm link ng2-alfresco-core
npm link ng2-alfresco-datatable npm link ng2-alfresco-datatable
npm link ng2-activiti-form npm link ng2-activiti-form
npm link npm link
npm run typings
npm run build npm run build
#LINK PROCESSLIST #LINK PROCESSLIST
@@ -62,7 +56,6 @@ npm link ng2-alfresco-core
npm link ng2-alfresco-datatable npm link ng2-alfresco-datatable
npm link ng2-activiti-tasklist npm link ng2-activiti-tasklist
npm link npm link
npm run typings
npm run build npm run build
#LINK VIEWER #LINK VIEWER
@@ -70,7 +63,6 @@ echo "====== linking component: ng2-alfresco-viewer ====="
cd "$DIR/../ng2-components/ng2-alfresco-viewer" cd "$DIR/../ng2-components/ng2-alfresco-viewer"
npm link ng2-alfresco-core npm link ng2-alfresco-core
npm link npm link
npm run typings
npm run build npm run build
#LINK TAG #LINK TAG
@@ -92,7 +84,6 @@ do
cd "$DESTDIR" cd "$DESTDIR"
npm link ng2-alfresco-core npm link ng2-alfresco-core
npm link npm link
npm run typings
npm run build npm run build
done done
@@ -116,4 +107,4 @@ do
DESTDIR="$DIR/../ng2-components/${PACKAGE}" DESTDIR="$DIR/../ng2-components/${PACKAGE}"
echo "====== demo shell linking: ${PACKAGE} =====" echo "====== demo shell linking: ${PACKAGE} ====="
npm link ${PACKAGE} npm link ${PACKAGE}
done done