Slide 10
Slide 10 text
{
"name": "tutorials",
"version": “1.0.0”,
"scripts": {
"bundle": "node ./bin/fuse”
},
"dependencies": {
"@angular/common": "^4.2.6",
"@angular/compiler": "^4.2.6",
"@angular/core": "^4.2.6",
"@angular/forms": "^4.2.6",
"@angular/http": “^4.2.6",
⋮
"core-js": "^2.4.1",
"rxjs": "^5.4.2",
"zone.js": "^0.8.12"
},
"devDependencies": {
"fuse-box": "^2.2.0",
"typescript": "2.3.4"
}
}
package.json
const {FuseBox} = require('fuse-box');
const fuse = FuseBox.init({
hogeDir: 'src/scripts',
output: 'public/assets/$name.js',
sourceMaps: true,
cache: true
});
const app = fuse
.bundle('bundle')
.instructions(`> main.ts`);
fuse.run();
project/bin/fuse.js