Skip to content
This repository was archived by the owner on Apr 30, 2018. It is now read-only.

Commit 4f2c20e

Browse files
author
Kent C. Dodds
committed
fix(build): Add kcd-common-tools to get things building again
1 parent 9646bd7 commit 4f2c20e

File tree

4 files changed

+35
-155
lines changed

4 files changed

+35
-155
lines changed

package.json

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
],
2121
"scripts": {
2222
"commit": "git-cz",
23-
"build:dist": "webpack",
24-
"build:minify": "webpack --config webpack.config.minify.js",
25-
"build": "npm run build:dist; npm run build:minify",
23+
"build:dev": "NODE_ENV=development webpack --config node_modules/kcd-common-tools/shared/webpack.config.js --progress --colors",
24+
"build:prod": "NODE_ENV=production webpack --config node_modules/kcd-common-tools/shared/webpack.config.js --progress --colors",
25+
"build": "npm run build:dev; npm run build:prod",
2626
"test": "echo 'Still need to set these up...'",
2727
"watch": "webpack --watch",
2828
"start": "npm run watch",
@@ -42,13 +42,14 @@
4242
"babel-loader": "^5.1.2",
4343
"commitizen": "1.0.4",
4444
"cz-conventional-changelog": "1.1.0",
45-
"deep-extend": "^0.3.2",
45+
"deep-extend": "0.4.0",
4646
"ghooks": "0.3.2",
4747
"jshint": "^2.7.0",
4848
"jshint-loader": "^0.8.3",
49+
"kcd-common-tools": "1.0.0-beta.23",
4950
"lodash-node": "^3.8.0",
50-
"ng-annotate": "^0.15.4",
51-
"ng-annotate-loader": "0.0.2",
51+
"ng-annotate": "1.0.2",
52+
"ng-annotate-loader": "0.0.10",
5253
"node-libs-browser": "^0.5.0",
5354
"raw-loader": "^0.5.1",
5455
"semantic-release": "^4.3.5",
@@ -63,5 +64,8 @@
6364
"ghooks": {
6465
"commit-msg": "./node_modules/.bin/validate-commit-msg"
6566
}
67+
},
68+
"kcdCommon": {
69+
"webpack": "scripts/webpack-overrides.js"
6670
}
6771
}

scripts/webpack-overrides.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
var here = require('kcd-common-tools/utils/here');
2+
3+
module.exports = {
4+
output: { library: 'ngFormlyTemplatesBootstrap' },
5+
externals: {
6+
angular: 'angular',
7+
'angular-formly': {
8+
root: 'ngFormly',
9+
amd: 'angular-formly',
10+
commonjs2: 'angular-formly',
11+
commonjs: 'angular-formly'
12+
},
13+
'api-check': {
14+
root: 'apiCheck',
15+
amd: 'api-check',
16+
commonjs2: 'api-check',
17+
commonjs: 'api-check'
18+
}
19+
},
20+
resolve: {
21+
alias: {
22+
'angular-fix': here('src/angular-fix')
23+
}
24+
}
25+
};

webpack.config.js

Lines changed: 0 additions & 148 deletions
This file was deleted.

webpack.config.minify.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)