@@ -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 || '' ) ] ) ;
0 commit comments