Skip to content
This repository has been archived by the owner on Apr 25, 2019. It is now read-only.

Commit

Permalink
Automatically copy generated libGD.js to newIDE
Browse files Browse the repository at this point in the history
  • Loading branch information
4ian committed Jun 21, 2018
1 parent 7257f25 commit 5f9c6e4
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Gruntfile.js
Expand Up @@ -101,7 +101,14 @@ module.exports = function(grunt) {
{expand: true, src: [buildOutputPath+'/libGD.js'], dest: '.', ext: '.js.gz'}
]
}
}
},
copy: {
newIDE: {
files: [
{expand: true, src: [buildOutputPath+'/libGD.js'], dest: '../newIDE/app/public', flatten: true},
],
}
},
});

grunt.loadNpmTasks('grunt-mocha-cli');
Expand All @@ -121,7 +128,7 @@ module.exports = function(grunt) {
'newer:shell:updateGDBindings',
'shell:make',
]);
grunt.registerTask('build', ['build:raw', 'concat:without-profiler', 'compress']);
grunt.registerTask('build:with-profiler', ['build:raw', 'concat:with-profiler', 'compress']);
grunt.registerTask('build', ['build:raw', 'concat:without-profiler', 'compress', 'copy:newIDE']);
grunt.registerTask('build:with-profiler', ['build:raw', 'concat:with-profiler', 'compress', 'copy:newIDE']);
grunt.registerTask('test', ['mochacli']);
};

0 comments on commit 5f9c6e4

Please sign in to comment.