Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var aurelia = require('aurelia-cli');
// var awesome = require('aurelia-awesome');
// aurelia.command(awesome); // register command plug in without configuration
// aurelia.command(awesomeCommand, {}); //register command plugin with cnfiguration
aurelia.command('bundle', {
js: {
"dist/app-build": {
modules: [
'*',
'aurelia-animator-css',
'aurelia-bootstrapper',
'aurelia-router',
'aurelia-http-client'
],
options: {
inject: true
}
}
},
template: {
"dist/app-build": {
inject: true
}
}
},
template: {
"dist/app-bundle": {
pattern: 'dist/*.html',
options: {
inject: true
}
}
}
};
cli.command('bundle', config);
cli.command('unbundle', config);
/*
If you don't like your original `index.html` to be modified and want to have a new index file instead with the template bundle injection, use a bundle configuration like this:
template: {
"dist/app-bundle": {
pattern: 'dist/*.html',
options: {
inject: {
indexFile: 'index.html',
destFile: 'dest_index.html'
}
}
}
}
*/
inject: true,
minify: true
}
}
},
template: {
"dist/app-bundle": {
pattern: ['dist/**/*.html', 'dist/*.html'],
options: {
inject: true
}
}
}
};
cli.command('bundle', config);
cli.command('unbundle', config);
var aurelia = require("aurelia-cli");
aurelia.command("bundle", {
js: {
"wwwroot/appbundle": {
modules: [
"app", "main", "about/**", "movies/**", "resources/**",
"aurelia-bootstrapper",
"aurelia-router",
"aurelia-http-client",
"aurelia-validation"
],
options: {
inject: true
}
}
},
template: {
"wwwroot/appbundle": {
options: {
inject: true
}
}
},
template: {
"dist/app-bundle": {
pattern: 'dist/*.html',
options: {
inject: true
}
}
}
};
cli.command('bundle', config);
cli.command('unbundle', config);
/*
If you don't like your original `index.html` to be modified and want to have a new index file instead with the template bundle injection, use a bundle configuration like this:
template: {
"dist/app-bundle": {
pattern: 'dist/*.html',
options: {
inject: {
indexFile: 'index.html',
destFile: 'dest_index.html'
}
}
}
}
minify: true
}
}
},
template: {
"dist/app-bundle": {
pattern: ['dist/**/*.html', 'dist/*.html'],
options: {
inject: true
}
}
}
};
cli.command('bundle', config);
cli.command('unbundle', config);
var aurelia = require('aurelia-cli');
aurelia.command('bundle', {
js: {
'dist/app-bundle': {
modules: [
'*',
"aurelia-dependency-injection",
"aurelia-event-aggregator",
"aurelia-framework",
"aurelia-loader-default",
"aurelia-logging-console",
"aurelia-templating-binding",
"aurelia-templating-resources",
"aurelia-html-template-element",
"codemirror",
"polymer/mutationobservers",
"github:webcomponents/webcomponentsjs@0.6.3/HTMLImports.min",
],