UNPKG

angular2-infinite-scroll

Version:
36 lines (33 loc) 803 B
var pkg = require('./package.json'); var path = require('path'); var Builder = require('systemjs-builder'); var name = pkg.name; var builder = new Builder(); var config = { baseURL: '.', transpiler: 'typescript', typescriptOptions: { module: 'cjs' }, map: { typescript: './node_modules/typescript/lib/typescript.js', '@angular': path.resolve('node_modules/@angular'), rxjs: path.resolve('node_modules/rxjs') }, paths: { '*': '*.js' }, meta: { 'node_modules/@angular/*': { build: false }, 'node_modules/rxjs/*': { build: false } }, }; builder.config(config); builder .bundle(name, path.resolve(__dirname, 'bundles/', name + '.js')) .then(function() { console.log('Build complete.'); }) .catch(function(err) { console.log('Error', err); });