@@ -12,32 +12,11 @@ module.exports = function (grunt) {
12
12
var gitCmd = gruntUtils . gitCmd ;
13
13
var gitCmdAsync = gruntUtils . gitCmdAsync ;
14
14
15
- // Load grunt tasks automatically, when needed
16
- require ( 'jit-grunt' ) ( grunt , {
17
- buildcontrol : 'grunt-build-control'
18
- } ) ;
19
-
20
15
grunt . initConfig ( {
21
16
config : {
22
17
demo : 'demo'
23
18
} ,
24
19
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
- } ,
41
20
release : {
42
21
options : {
43
22
commitMessage : '<%= version %>' ,
@@ -51,17 +30,6 @@ module.exports = function (grunt) {
51
30
npm : false
52
31
}
53
32
} ,
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
- } ,
65
33
stage : {
66
34
options : {
67
35
files : [ 'CHANGELOG.md' , 'angular-fullstack-deps' ]
@@ -82,43 +50,6 @@ module.exports = function (grunt) {
82
50
}
83
51
}
84
52
} ,
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
- } ,
122
53
david : {
123
54
gen : {
124
55
options : { }
@@ -136,26 +67,6 @@ module.exports = function (grunt) {
136
67
gitCmd ( [ 'add' ] . concat ( files ) , { } , this . async ( ) ) ;
137
68
} ) ;
138
69
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
-
159
70
grunt . registerTask ( 'commitNgFullstackDeps' , function ( ) {
160
71
grunt . config . requires (
161
72
'commitNgFullstackDeps.options.files' ,
@@ -261,20 +172,6 @@ module.exports = function (grunt) {
261
172
}
262
173
} ) ;
263
174
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
-
278
175
grunt . registerTask ( 'deps' , function ( target ) {
279
176
if ( ! target || target === 'app' ) grunt . task . run ( [ 'updateFixtures' ] ) ;
280
177
grunt . task . run ( [ 'david:' + ( target || '' ) ] ) ;
0 commit comments