Skip to content

Commit 1e25de7

Browse files
committed
feat(gen:gulp): add TODO tasks in gulpfile. rm 2 old grunt tasks
remove updateFixtures & installFixtures tasks from gruntfile since already ported to gulpfile [skip ci]
1 parent a76034b commit 1e25de7

File tree

2 files changed

+10
-43
lines changed

2 files changed

+10
-43
lines changed

Diff for: Gruntfile.js

-43
Original file line numberDiff line numberDiff line change
@@ -261,49 +261,6 @@ module.exports = function (grunt) {
261261
}
262262
});
263263

264-
grunt.registerTask('updateFixtures', 'updates package and bower fixtures', function(target) {
265-
var genVer = require('./package.json').version;
266-
var dest = __dirname + ((target === 'deps') ? '/angular-fullstack-deps/' : '/test/fixtures/');
267-
var appName = (target === 'deps') ? 'angular-fullstack-deps' : 'tempApp';
268-
269-
var processJson = function(s, d) {
270-
// read file, strip all ejs conditionals, and parse as json
271-
var json = JSON.parse(fs.readFileSync(path.resolve(s), 'utf8').replace(/<%(.*)%>/g, ''));
272-
// set properties
273-
json.name = appName, json.version = genVer;
274-
if (target === 'deps') { json.private = false; }
275-
// stringify json and write it to the destination
276-
fs.writeFileSync(path.resolve(d), JSON.stringify(json, null, 2));
277-
};
278-
279-
processJson('templates/app/_package.json', dest + 'package.json');
280-
processJson('templates/app/_bower.json', dest + 'bower.json');
281-
});
282-
283-
grunt.registerTask('installFixtures', 'install package and bower fixtures', function() {
284-
var done = this.async();
285-
286-
shell.cd('test/fixtures');
287-
grunt.log.ok('installing npm dependencies for generated app');
288-
child_process.exec('npm install --quiet', {cwd: '../fixtures'}, function (error, stdout, stderr) {
289-
290-
grunt.log.ok('installing bower dependencies for generated app');
291-
child_process.exec('bower install', {cwd: '../fixtures'}, function (error, stdout, stderr) {
292-
293-
if(!process.env.SAUCE_USERNAME) {
294-
grunt.log.ok('running npm run-script update-webdriver');
295-
child_process.exec('npm run-script update-webdriver', function() {
296-
shell.cd('../../');
297-
done();
298-
});
299-
} else {
300-
shell.cd('../../');
301-
done();
302-
}
303-
})
304-
});
305-
});
306-
307264
grunt.registerTask('test', function(target, option) {
308265
if (target === 'fast') {
309266
grunt.task.run([

Diff for: gulpfile.js

+10
Original file line numberDiff line numberDiff line change
@@ -168,3 +168,13 @@ gulp.task('test', () => {
168168
return gulp.src(['test/pre.test.js', 'test/*.test.js'])
169169
.pipe(mocha());
170170
});
171+
172+
gulp.task('updateSubmodules', () => console.log('TODO'));
173+
gulp.task('changelog', () => console.log('TODO'));
174+
gulp.task('generateDemo', () => console.log('TODO'));
175+
gulp.task('demo', () => console.log('TODO')); // ['clean:demo', 'generateDemo']
176+
gulp.task('releaseDemo', () => console.log('TODO')); //['demo', 'releaseDemoBuild', 'buildcontrol:release']
177+
gulp.task('releaseDemoBuild', () => console.log('TODO'));
178+
gulp.task('deps', () => console.log('TODO')); // updateFixtures, david
179+
gulp.task('release', () => console.log('TODO'));
180+
gulp.task('lint', () => console.log('TODO'));

0 commit comments

Comments
 (0)