Skip to content

Commit

Permalink
build: remove need for package:replace script (swimlane#260)
Browse files Browse the repository at this point in the history
Also removes the generation of ngfactory files; which are unnecessary for a library.
  • Loading branch information
clydin authored and marjan-georgiev committed Mar 6, 2017
1 parent 3c3f868 commit b8f2ade
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 27 deletions.
22 changes: 0 additions & 22 deletions config/replace.js

This file was deleted.

4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@
"start": "webpack-dev-server",
"start:hmr": "webpack-dev-server --env.HMR",
"release": "npm-run-all build:release",
"package": "npm-run-all -s clean copy:build build:sass package:replace-scss package:aot build:package package:replace package:minify copy:styles clean:build",
"package": "npm-run-all -s clean copy:build build:sass package:replace-scss package:aot build:package package:minify copy:styles clean:build",
"package:ts": "tsc --outDir release",
"package:aot": "ngc -p tsconfig-aot.json",
"package:replace": "node ./config/replace.js",
"package:replace-scss": "node ./config/replace-scss.js",
"package:minify": "uglifyjs release/index.js --source-map release/index.min.js.map --source-map-url release/index.js.map --compress --mangle --screw-ie8 --output release/index.min.js",
"deploy": "node ./config/deploy.js",
Expand Down Expand Up @@ -88,7 +87,6 @@
"@angular/platform-browser": "~2.4.5",
"@angular/platform-browser-dynamic": "~2.4.5",
"@angular/platform-server": "~2.4.5",
"@types/core-js": "^0.9.35",
"@types/d3-array": "0.0.3",
"@types/d3-brush": "0.0.3",
"@types/d3-color": "0.0.3",
Expand Down
6 changes: 5 additions & 1 deletion tsconfig-aot.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"compilerOptions": {
"target": "es5",
"module": "es2015",
"lib": [
"es2016",
"dom"
],
"moduleResolution": "node",
"declaration": true,
"noEmitHelpers": false,
Expand Down Expand Up @@ -36,6 +40,6 @@
},
"angularCompilerOptions": {
"genDir": "release/",
"skipMetadataEmit": false
"skipTemplateCodegen": true
}
}
6 changes: 5 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"lib": [
"es2016",
"dom"
],
"moduleResolution": "node",
"declaration": true,
"noEmitHelpers": false,
Expand Down Expand Up @@ -35,6 +39,6 @@
},
"angularCompilerOptions": {
"genDir": "release/",
"skipMetadataEmit": false
"skipTemplateCodegen": true
}
}

0 comments on commit b8f2ade

Please sign in to comment.