generator-zl-fis3-less
Version:
基于 Yeoman 的 FIS3 主题模板制作框架初始化脚手架
30 lines (26 loc) • 760 B
JavaScript
;
var path = require('path');
var generators = require('yeoman-generator');
var chalk = require('chalk');
var mkdirp = require('mkdirp');
module.exports = generators.Base.extend({
constructor: function() {
generators.Base.apply(this, arguments);
},
initializing: function() {
this.pkg = require('../package.json');
},
prompting: {
},
writing: {
buildEnv: function() {
//this.fs.copyTpl(this.templatePath('.'), this.destinationPath('.'), this);
this.fs.copy(this.templatePath('.'), this.destinationPath('.'));
},
assetsDirs: function() {
//mkdirp.sync('src');
}
},
install: function() {
}
});