mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Moved ng2-alfresco to the root level
This commit is contained in:
38
ng2-alfresco/make.js
Normal file
38
ng2-alfresco/make.js
Normal file
@@ -0,0 +1,38 @@
|
||||
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',
|
||||
angular2: path.resolve('node_modules/angular2'),
|
||||
rxjs: path.resolve('node_modules/rxjs')
|
||||
},
|
||||
paths: {
|
||||
'*': '*.js'
|
||||
},
|
||||
meta: {
|
||||
'node_modules/angular2/*': { build: false },
|
||||
'node_modules/rxjs/*': { build: false }
|
||||
}
|
||||
};
|
||||
|
||||
builder.config(config);
|
||||
|
||||
builder
|
||||
//.bundle(name, path.resolve(__dirname, 'bundles/', name + '.js'))
|
||||
.bundle('components', path.resolve(__dirname, 'bundles/', name + '.js'))
|
||||
.then(function() {
|
||||
console.log('Build complete.');
|
||||
})
|
||||
.catch(function(err) {
|
||||
console.log('Error', err);
|
||||
});
|
Reference in New Issue
Block a user