chore(project): es5ify scripts

...until we decide to switch to ES2015+
This commit is contained in:
Nico Rehwaldt 2018-01-28 20:55:52 +01:00 committed by Philipp Fromme
parent 5b2b053230
commit da2a8be7e5
3 changed files with 5 additions and 5 deletions

View File

@ -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, {

View File

@ -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' ]);

View File

@ -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' ],