File tree Expand file tree Collapse file tree 4 files changed +33
-39
lines changed Expand file tree Collapse file tree 4 files changed +33
-39
lines changed Original file line number Diff line number Diff line change @@ -23,17 +23,17 @@ module.exports = function (grunt) {
23
23
require ( 'load-grunt-config' ) ( grunt , {
24
24
configPath : path . join ( __dirname , configDir ) ,
25
25
init : true ,
26
- loadGruntTasks : {
27
- pattern : [
28
- 'grunt-* '
29
- ]
26
+ jitGrunt : {
27
+ staticMappings : {
28
+ usebanner : 'grunt-banner '
29
+ }
30
30
}
31
31
} ) ;
32
32
33
33
_ . each ( {
34
34
/**
35
35
* Assembling tasks.
36
- * ToDo UI : define default tasks.
36
+ * ToDo: define default tasks.
37
37
*/
38
38
default : function ( ) {
39
39
grunt . log . subhead ( 'I\'m default task and at the moment I\'m empty, sorry :/' ) ;
@@ -43,17 +43,19 @@ module.exports = function (grunt) {
43
43
* Production preparation task.
44
44
*/
45
45
prod : function ( component ) {
46
- if ( component === 'setup' ) {
47
- grunt . task . run ( [
48
- 'less:' + component ,
49
- 'autoprefixer:' + component ,
50
- 'cssmin:' + component ,
51
- 'usebanner:' + component
52
- ] ) ;
53
- }
46
+ var tasks = [
47
+ 'less' ,
48
+ 'autoprefixer' ,
49
+ 'cssmin' ,
50
+ 'usebanner'
51
+ ] . map ( function ( task ) {
52
+ return task + ':' + component ;
53
+ } ) ;
54
54
55
55
if ( typeof component === 'undefined' ) {
56
56
grunt . log . subhead ( 'Tip: Please make sure that u specify prod subtask. By default prod task do nothing' ) ;
57
+ } else {
58
+ grunt . task . run ( tasks ) ;
57
59
}
58
60
} ,
59
61
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 5
5
6
6
'use strict' ;
7
7
8
- var banner = require ( './banner' ) ;
8
+ var banner = {
9
+ firstLine : 'Copyright © 2015 Magento. All rights reserved.' ,
10
+ secondLine : 'See COPYING.txt for license details.' ,
11
+
12
+ css : function ( ) {
13
+ return '/**\n * ' + this . firstLine + '\n * ' + this . secondLine + '\n */\n' ;
14
+ } ,
15
+
16
+ less : function ( ) {
17
+ return '// /**\n// * ' + this . firstLine + '\n// * ' + this . secondLine + '\n// */\n' ;
18
+ } ,
19
+
20
+ html : function ( ) {
21
+ return '<!--\n/**\n * ' + this . firstLine + '\n * ' + this . secondLine + '\n */\n-->\n' ;
22
+ }
23
+ } ;
9
24
10
25
module . exports = {
11
26
options : {
Original file line number Diff line number Diff line change 2
2
"name" : " Magento2" ,
3
3
"author" : " Magento, an eBay Inc. company" ,
4
4
"description" : " Magento2 node modules dependencies for local development" ,
5
- "version" : " 0.42 .0-beta1 " ,
5
+ "version" : " 0.74 .0-beta7 " ,
6
6
"repository" : {
7
7
"type" : " git" ,
8
8
"url" : " https://github.com/magento/magento2.git"
11
11
"devDependencies" : {
12
12
"grunt" : " ^0.4.5" ,
13
13
"grunt-autoprefixer" : " ^2.0.0" ,
14
- "grunt-banner" : " ^0.3.1 " ,
14
+ "grunt-banner" : " ^0.4.0 " ,
15
15
"grunt-contrib-clean" : " ^0.6.0" ,
16
16
"grunt-contrib-connect" : " ^0.9.0" ,
17
17
"grunt-contrib-cssmin" : " ^0.10.0" ,
You can’t perform that action at this time.
0 commit comments