Skip to content

Commit 57f341d

Browse files
committed
chore(gen): remove grunt code/deps that have been ported
1 parent 045abfb commit 57f341d

File tree

3 files changed

+1
-109
lines changed

3 files changed

+1
-109
lines changed

Diff for: Gruntfile.js

-103
Original file line numberDiff line numberDiff line change
@@ -12,32 +12,11 @@ module.exports = function (grunt) {
1212
var gitCmd = gruntUtils.gitCmd;
1313
var gitCmdAsync = gruntUtils.gitCmdAsync;
1414

15-
// Load grunt tasks automatically, when needed
16-
require('jit-grunt')(grunt, {
17-
buildcontrol: 'grunt-build-control'
18-
});
19-
2015
grunt.initConfig({
2116
config: {
2217
demo: 'demo'
2318
},
2419
pkg: grunt.file.readJSON('package.json'),
25-
conventionalChangelog: {
26-
options: {
27-
changelogOpts: {
28-
// conventional-changelog options go here
29-
preset: 'angular'
30-
},
31-
writerOpts: {
32-
// conventional-changelog-writer options go here
33-
finalizeContext: gruntUtils.conventionalChangelog.finalizeContext,
34-
commitPartial: gruntUtils.conventionalChangelog.commitPartial
35-
}
36-
},
37-
release: {
38-
src: 'CHANGELOG.md'
39-
}
40-
},
4120
release: {
4221
options: {
4322
commitMessage: '<%= version %>',
@@ -51,17 +30,6 @@ module.exports = function (grunt) {
5130
npm: false
5231
}
5332
},
54-
updateSubmodules: {
55-
options: {
56-
modules: ['angular-fullstack-deps']
57-
}
58-
},
59-
commitNgFullstackDeps: {
60-
options: {
61-
cwd: 'angular-fullstack-deps',
62-
files: ['package.json', 'bower.json']
63-
}
64-
},
6533
stage: {
6634
options: {
6735
files: ['CHANGELOG.md', 'angular-fullstack-deps']
@@ -82,43 +50,6 @@ module.exports = function (grunt) {
8250
}
8351
}
8452
},
85-
jshint: {
86-
options: {
87-
curly: false,
88-
node: true
89-
},
90-
all: ['Gruntfile.js', 'src/**/*.js']
91-
},
92-
env: {
93-
fast: {
94-
SKIP_E2E: true
95-
}
96-
},
97-
mochaTest: {
98-
test: {
99-
src: [
100-
'test/*.js'
101-
],
102-
options: {
103-
reporter: 'spec',
104-
timeout: 120000
105-
}
106-
}
107-
},
108-
clean: {
109-
demo: {
110-
files: [{
111-
dot: true,
112-
src: [
113-
'<%= config.demo %>/*',
114-
'!<%= config.demo %>/readme.md',
115-
'!<%= config.demo %>/node_modules',
116-
'!<%= config.demo %>/.git',
117-
'!<%= config.demo %>/dist'
118-
]
119-
}]
120-
}
121-
},
12253
david: {
12354
gen: {
12455
options: {}
@@ -136,26 +67,6 @@ module.exports = function (grunt) {
13667
gitCmd(['add'].concat(files), {}, this.async());
13768
});
13869

139-
grunt.registerTask('updateSubmodules', function() {
140-
grunt.config.requires('updateSubmodules.options.modules');
141-
var modules = grunt.config.get('updateSubmodules').options.modules;
142-
143-
Q()
144-
.then(gitCmdAsync(['submodule', 'update', '--init', '--recursive']))
145-
.then(function() {
146-
var thens = [];
147-
for (var i = 0, modulesLength = modules.length; i < modulesLength; i++) {
148-
var opts = {cwd: modules[i]};
149-
thens.push(gitCmdAsync(['checkout', 'master'], opts));
150-
thens.push(gitCmdAsync(['fetch'], opts));
151-
thens.push(gitCmdAsync(['pull'], opts));
152-
}
153-
return thens.reduce(Q.when, Q());
154-
})
155-
.catch(grunt.fail.fatal.bind(grunt.fail))
156-
.finally(this.async());
157-
});
158-
15970
grunt.registerTask('commitNgFullstackDeps', function() {
16071
grunt.config.requires(
16172
'commitNgFullstackDeps.options.files',
@@ -261,20 +172,6 @@ module.exports = function (grunt) {
261172
}
262173
});
263174

264-
grunt.registerTask('test', function(target, option) {
265-
if (target === 'fast') {
266-
grunt.task.run([
267-
'env:fast'
268-
]);
269-
}
270-
271-
return grunt.task.run([
272-
'updateFixtures',
273-
'installFixtures',
274-
'mochaTest'
275-
])
276-
});
277-
278175
grunt.registerTask('deps', function(target) {
279176
if (!target || target === 'app') grunt.task.run(['updateFixtures']);
280177
grunt.task.run(['david:' + (target || '')]);

Diff for: gulpfile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ gulp.task('releaseDemo', () => console.log('TODO')); //['demo', 'releaseDemoBuil
179179
gulp.task('releaseDemoBuild', () => console.log('TODO'));
180180
gulp.task('deps', () => console.log('TODO')); // updateFixtures, david
181181
gulp.task('release', () => console.log('TODO'));
182-
gulp.task('lint', () => console.log('TODO'));
182+
gulp.task('lint', () => console.log('TODO')); // ['gulpfile.js', 'src/**/*.js']
183183

184184
gulp.task('daux', () => {
185185
return execAsync('daux');

Diff for: package.json

-5
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,7 @@
6363
"del": "^2.2.0",
6464
"grunt": "^1.0.1",
6565
"grunt-build-control": "^0.7.0",
66-
"grunt-contrib-clean": "^1.0.0",
67-
"grunt-contrib-jshint": "^1.0.0",
68-
"grunt-conventional-changelog": "^6.1.0",
6966
"grunt-david": "~0.7.0",
70-
"grunt-env": "^0.4.1",
71-
"grunt-mocha-test": "^0.12.7",
7267
"grunt-release": "^0.14.0",
7368
"gulp": "^3.9.1",
7469
"gulp-conventional-changelog": "^1.1.0",

0 commit comments

Comments
 (0)