Skip to content

Commit 02720e5

Browse files
committed
added new automated production build workflow
added vendor bundle config
1 parent 38059f6 commit 02720e5

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

bundle-config.vendor.dev.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// importing libs should be included in dev-bundle
2+
import './bundle-config.vendor.js';
3+
import 'plugin-typescript';
4+
import 'css';
5+
import 'systemjs-hot-reloader';
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
// importing libs should be included in dev-bundle
2-
import 'plugin-typescript';
3-
import 'css';
4-
import 'systemjs-hot-reloader';
52
import 'react';
63
import 'react-dom';
74
import 'react-redux';

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"prepush": "npm run lint && npm test",
2121
"preversion": "npm run lint && npm test",
2222
"unbundle": "jspm unbundle",
23-
"bundle-dev": "jspm bundle dev-bundle.config.js temp/dev-bundle.js -id",
23+
"bundle-dev": "jspm bundle bundle-config.vendor.dev.js temp/vendor.dev.js -id",
2424
"build": "npm run build:app && npm run build:vendor",
2525
"build:app": "npm run _jspm-build-app -- --skip-source-maps --minify",
2626
"build:vendor": "npm run _jspm-bundle-vendor",
@@ -29,9 +29,9 @@
2929
"bvd": "npm run build:vendor && npm run deploy",
3030
"lint": "tslint ./src/**/*.ts[x]",
3131
"test": "jspm run src/test-runner | faucet",
32-
"_jspm-build-app": "jspm build src/app - react - react-dom dist/app.js",
32+
"_jspm-build-app": "jspm build src/app - bundle-config.vendor.js dist/app.js",
3333
"pre_jspm-bundle-vendor": "jspm unbundle",
34-
"_jspm-bundle-vendor": "jspm bundle react + react-dom vendor.js --minify --skip-source-maps -i && mv vendor.js dist/ && npm run _copy-jspm-configs",
34+
"_jspm-bundle-vendor": "jspm bundle bundle-config.vendor.js vendor.js --minify --skip-source-maps -i && mv vendor.js dist/ && npm run _copy-jspm-configs",
3535
"_copy-jspm-configs": "cp jspm.config.js jspm_packages/system.js dist/",
3636
"post_jspm-bundle-vendor": "jspm unbundle && npm run bundle-dev",
3737
"regenerator": "cd temp && cp ../dist/app.js . && regenerator -r app.js > app.regenerator.js && mv app.regenerator.js ../dist/app.js "

0 commit comments

Comments
 (0)