chore(project): es5ify scripts
...until we decide to switch to ES2015+
This commit is contained in:
parent
5b2b053230
commit
da2a8be7e5
|
@ -23,10 +23,10 @@ del(dest);
|
|||
console.log('mkdir -p ' + dest);
|
||||
mkdirp(dest);
|
||||
|
||||
console.log(`copy bpmn-font to ${dest}/bpmn-font`);
|
||||
console.log('copy bpmn-font to ' + dest + '/bpmn-font');
|
||||
cp(resolve('bpmn-font', '/dist/{font,css}/**'), dest + '/assets/bpmn-font');
|
||||
|
||||
console.log(`copy diagram-js.css to ${dest}`);
|
||||
console.log('copy diagram-js.css to ' + dest);
|
||||
cp(resolve('diagram-js', '/assets/**'), dest + '/assets');
|
||||
|
||||
bundle(dest, {
|
||||
|
|
|
@ -9,7 +9,7 @@ function runTest(variant, env) {
|
|||
process.env.VARIANT = variant;
|
||||
process.env.NODE_ENV = env;
|
||||
|
||||
console.log(`[TEST] ${variant}@${env}`);
|
||||
console.log('[TEST] ' + variant + '@' + env);
|
||||
|
||||
try {
|
||||
execSync('karma', [ 'start', 'test/config/karma.distro.js' ]);
|
||||
|
|
|
@ -37,13 +37,13 @@ module.exports = function(karma) {
|
|||
],
|
||||
|
||||
files: [
|
||||
`dist/${VARIANT}.${NODE_ENV === 'production' ? 'production.min' : 'development'}.js`,
|
||||
'dist/' + VARIANT + '.' + (NODE_ENV === 'production' ? 'production.min' : 'development') + '.js',
|
||||
'dist/assets/bpmn-font/css/bpmn.css',
|
||||
'dist/assets/diagram-js.css',
|
||||
{ pattern: 'resources/initial.bpmn', included: false },
|
||||
{ pattern: 'dist/assets/**/*', included: false },
|
||||
'test/distro/helper.js',
|
||||
`test/distro/${VARIANT}.js`
|
||||
'test/distro/' + VARIANT + '.js'
|
||||
],
|
||||
|
||||
reporters: [ 'spec' ],
|
||||
|
|
Loading…
Reference in New Issue