@@ -24,7 +24,7 @@ var generate = {
24
24
} ,
25
25
26
26
dotfiles : function ( ) {
27
- // helpers.copy.call(this, 'bowerrc', '.bowerrc');
27
+ helpers . copy . call ( this , 'bowerrc' , '.bowerrc' ) ;
28
28
// helpers.copy.call(this, 'editorconfig', '.editorconfig');
29
29
// helpers.copy.call(this, 'gitattributes', '.gitattributes');
30
30
// helpers.copy.call(this, 'jshintrc', '.jshintrc');
@@ -45,26 +45,27 @@ var generate = {
45
45
helpers . copy . call ( this , 'gulp/helpers/sprite.template.mustache' , 'gulp/helpers/sprite.template.mustache' ) ;
46
46
47
47
48
- var pkg = [ 'sass' , 'iconfont' , 'copy' , 'html' , 'jade' , 'spritesmith' , 'watch' , 'js' , 'server' ] ;
49
- var arrayLength = pkg . length ;
48
+ var taskslist = [ 'sass' , 'iconfont' , 'copy' , 'html' , 'jade' , 'spritesmith' , 'watch' , 'js' , 'server' ] ;
49
+ var arrayLength = taskslist . length ;
50
50
var p , f ;
51
51
52
52
for ( var i = 0 ; i < arrayLength ; i ++ ) {
53
- f = 'gulp/tasks/' + pkg [ i ] + '.js' ;
53
+ f = 'gulp/tasks/' + taskslist [ i ] + '.js' ;
54
54
helpers . copy . call ( this , f , f , this . prompts ) ;
55
55
}
56
56
} ,
57
57
58
58
projectInfo : function ( ) {
59
59
// helpers.copy.call(this, '_index.html', 'index.html', this.prompts);
60
60
helpers . copy . call ( this , 'README.md' , 'README.md' , this . prompts ) ;
61
- }
61
+ } ,
62
62
63
- // assets: function () {
64
- // helpers.copy.call(this, 'src/img/.keep', 'src/fonts/.keep');
65
- // helpers.copy.call(this, 'src/img/.keep', 'src/img/.keep');
66
- // helpers.copy.call(this, 'src/img/.keep', 'src/media/.keep');
67
- // },
63
+ assets : function ( ) {
64
+ helpers . copy . call ( this , 'src/.keep' , 'src/fonts/.keep' ) ;
65
+ helpers . copy . call ( this , 'src/.keep' , 'src/img/.keep' ) ;
66
+ helpers . copy . call ( this , 'src/.keep' , 'src/img/icons/.keep' ) ;
67
+ helpers . copy . call ( this , 'src/.keep' , 'src/img/svg/.keep' ) ;
68
+ } ,
68
69
69
70
// templateFiles: function () {
70
71
// helpers.copy.call(this, 'src/_template.html', 'src/template.' + this.prompts.extension, this.prompts);
@@ -75,14 +76,30 @@ var generate = {
75
76
// helpers.copy.call(this, 'src/includes/_footer.html', 'src/includes/footer.' + this.prompts.extension, this.prompts);
76
77
// helpers.copy.call(this, 'src/includes/_scripts.html', 'src/includes/scripts.' + this.prompts.extension, this.prompts);
77
78
// },
79
+ html : function ( type , underscore ) {
80
+ helpers . copy . call ( this , 'src/index.html' , 'src/index.html' , this . prompts ) ;
81
+ helpers . copy . call ( this , 'src/partials/partial.html' , 'src/partials/partial.html' , this . prompts ) ;
82
+ } ,
83
+ jade : function ( type , underscore ) {
84
+ helpers . copy . call ( this , 'src/jade/_layout.jade' , 'src/jade/_layout.jade' , this . prompts ) ;
85
+ helpers . copy . call ( this , 'src/jade/index.jade' , 'src/jade/index.jade' , this . prompts ) ;
86
+ } ,
87
+ sass : function ( type , underscore ) {
88
+ helpers . copy . call ( this , 'src/sass/style.sass' , 'src/sass/style.sass' , this . prompts ) ;
89
+ helpers . copy . call ( this , 'src/sass/_common.sass' , 'src/sass/_common.sass' , this . prompts ) ;
90
+ helpers . copy . call ( this , 'src/sass/_main.sass' , 'src/sass/_main.sass' , this . prompts ) ;
91
+ helpers . copy . call ( this , 'src/sass/lib/_media.scss' , 'src/sass/lib/_media.scss' , this . prompts ) ;
92
+ helpers . copy . call ( this , 'src/sass/lib/_mixins.sass' , 'src/sass/lib/_mixins.sass' , this . prompts ) ;
93
+ helpers . copy . call ( this , 'src/sass/lib/_reset.sass' , 'src/sass/lib/_reset.sass' , this . prompts ) ;
94
+ helpers . copy . call ( this , 'src/sass/lib/_slick.sass' , 'src/sass/lib/_slick.sass' , this . prompts ) ;
95
+ } ,
78
96
79
- // preprocessor: function (type, underscore) {
80
- // helpers.createStructure.bind(this)(helpers.getStructure.bind(this)().default, 'src/' + this.prompts.cssPreprocessor);
81
- // },
82
-
83
- // js: function () {
84
- // helpers.copy.call(this, 'src/js/_main.js', 'src/js/main.js', this.prompts);
85
- // },
97
+ js : function ( ) {
98
+ helpers . copy . call ( this , 'src/js/app.js' , 'src/js/app.js' , this . prompts ) ;
99
+ helpers . copy . call ( this , 'src/js/common.js' , 'src/js/common.js' , this . prompts ) ;
100
+ helpers . copy . call ( this , 'src/js/lib/jquery.js' , 'src/js/lib/jquery.js' , this . prompts ) ;
101
+ helpers . copy . call ( this , 'src/js/lib/slick.min.js' , 'src/js/lib/slick.min.js' , this . prompts ) ;
102
+ } ,
86
103
87
104
// wp: function () {
88
105
// this.fs.write(this.destinationPath(this.prompts.wpThemeFolder + '/.keep'), '');
0 commit comments