generator-base-polymer
Version:
Polymer basic skeleton for webapp development. With RequireJS, Bootstrap, Sass and templating with Jade. Routing by Page.js.
23 lines • 1.09 kB
JavaScript
'use strict';
var yeoman = require('yeoman-generator');
var chalk = require('chalk');
var yosay = require('yosay');
module.exports = yeoman.Base.extend({
initializing: function () {
this.pkg = require('../../package.json');
this.log(yosay('Welcome to the zetadelic ' + chalk.red('BasePolymer v' + this.pkg.version) + ' generator!'));
},
writing: function () {
this.fs.copy(this.templatePath('editorconfig'), this.destinationPath('.editorconfig'));
this.fs.copy(this.templatePath('jshintrc'), this.destinationPath('.jshintrc'));
this.fs.copy(this.templatePath('bowerrc'), this.destinationPath('.bowerrc'));
this.fs.copy(this.templatePath('package.json'), this.destinationPath('package.json'));
this.fs.copy(this.templatePath('bower.json'), this.destinationPath('bower.json'));
this.fs.copy(this.templatePath('Gruntfile.js'), this.destinationPath('Gruntfile.js'));
this.fs.copy(this.templatePath('grunt'), this.destinationPath('grunt'));
this.fs.copy(this.templatePath('src'), this.destinationPath('src'));
},
install: function () {
this.installDependencies();
}
});