@@ -24,7 +24,7 @@ var generate = {
2424 } ,
2525
2626 dotfiles : function ( ) {
27- // helpers.copy.call(this, 'bowerrc', '.bowerrc');
27+ helpers . copy . call ( this , 'bowerrc' , '.bowerrc' ) ;
2828 // helpers.copy.call(this, 'editorconfig', '.editorconfig');
2929 // helpers.copy.call(this, 'gitattributes', '.gitattributes');
3030 // helpers.copy.call(this, 'jshintrc', '.jshintrc');
@@ -45,26 +45,27 @@ var generate = {
4545 helpers . copy . call ( this , 'gulp/helpers/sprite.template.mustache' , 'gulp/helpers/sprite.template.mustache' ) ;
4646
4747
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 ;
5050 var p , f ;
5151
5252 for ( var i = 0 ; i < arrayLength ; i ++ ) {
53- f = 'gulp/tasks/' + pkg [ i ] + '.js' ;
53+ f = 'gulp/tasks/' + taskslist [ i ] + '.js' ;
5454 helpers . copy . call ( this , f , f , this . prompts ) ;
5555 }
5656 } ,
5757
5858 projectInfo : function ( ) {
5959 // helpers.copy.call(this, '_index.html', 'index.html', this.prompts);
6060 helpers . copy . call ( this , 'README.md' , 'README.md' , this . prompts ) ;
61- }
61+ } ,
6262
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+ } ,
6869
6970 // templateFiles: function () {
7071 // helpers.copy.call(this, 'src/_template.html', 'src/template.' + this.prompts.extension, this.prompts);
@@ -75,14 +76,30 @@ var generate = {
7576 // helpers.copy.call(this, 'src/includes/_footer.html', 'src/includes/footer.' + this.prompts.extension, this.prompts);
7677 // helpers.copy.call(this, 'src/includes/_scripts.html', 'src/includes/scripts.' + this.prompts.extension, this.prompts);
7778 // },
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+ } ,
7896
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+ } ,
86103
87104 // wp: function () {
88105 // this.fs.write(this.destinationPath(this.prompts.wpThemeFolder + '/.keep'), '');
0 commit comments