(target)
| 5 | var $ = require('gulp-load-plugins')(); |
| 6 | |
| 7 | var config = function (target) { |
| 8 | var configFile = 'config/config.json'; |
| 9 | |
| 10 | if (typeof target === 'string' && target) { |
| 11 | configFile = 'config/config_' + target + '.json'; |
| 12 | } |
| 13 | |
| 14 | return gulp.src(configFile) |
| 15 | .pipe($.ngConfig('gtrApp.config')) |
| 16 | .pipe($.rename('config.js')) |
| 17 | .pipe(gulp.dest('app/scripts')); |
| 18 | } |
| 19 | |
| 20 | gulp.task('config', function () { |
| 21 | config(); |