Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- grunt.registerTask('buildapp', [
- 'clean:app',
- 'string-replace:app_version',
- 'copy:app_build_index',
- 'copy:app_build_config',
- 'ngconstant:app80',
- 'compress:app80',
- 'string-replace:app80',
- 'ngconstant:app443',
- 'compress:app443',
- 'string-replace:app443',
- 'ngconstant:app6001',
- 'compress:app6001',
- 'string-replace:app6001'
- ])
- Peut se réécrire comme ca. C'est plaus maintenable et tu peux mettre ta tache d'obfuscation dedans facilement ;)
- grunt.registerTask('buildapp', [
- 'clean:app',
- 'string-replace:app_version',
- 'copy:app_build_index',
- 'copy:app_build_config',
- 'processByPort:80',
- 'processByPort:443',
- 'processByPort:6001',
- ]);
- grunt.registerTask('processByPort', 'port specific alias for [ngconstant, compress, string-replace]', function _processByPort(n) {
- grunt.task.run('ngconstant:app' + n, 'compress:app' + n, 'string-replace:app' + n);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement