Yeoman generator that scaffolds out a front end development starterkit.
- Gulp: Automate and enhance your workflow.
- CSS Preprocessors
- Templating / Markup
- JavaScript
styles
: Sass / Less auto compiling, prefixing, minifiying and sourcemapping.templates
: Pug / Html auto compiling and minifiying.scripts
: Scripts concatenation, transpiling with Babel, minifiying and sourcemapping.lint
: Lint your JavaScript files.images
: Images optimization.deploy
: Deploying your project into a github pages surge or ftp server.beautify
: Beautify preproduction files.browsersync
: Automatically injects all your changes instyles
,templates
andscripts
into your browser and other devices on save.optimize
: Automatically autoptimize your project using critical and uncss, to improve your page speed.
For more information about gulp workflow / tasks go to starterkit gulp tasks
$ npm install -g yo
$ npm install -g generator-starterkit
Before running the generator you will need to create a folder for your project where the generator will create all the project files and directories.
Once you have, NodeJS, Yeoman, generator-starterkit installed and your project folder created you can run the generator using:
$ mkdir project
$ cd project
$ yo starterkit
$ gulp
Now the generator-starterkit will start to ask some questions to setup the project for you; project information, technologies and languages that you want to use and will install the dependencies automatically based on your decisions.
Also there are a lot of files being created dynamically such as gulp.js, package.json, readme.md, styles and templates to match the technologies and options that you choose from the generator. (See the technologies available)
Don't forget to run gulp
after the yeoman finishes. Also you can use npm run
to list the gulp tasks available and running them using for example npm run dev
, (dev will run the default gulp task).
--skip-install
: Skips the installation of dependencies with npm.--skip-welcome-message
: Skips the welcome message.--skip-install-message
: Skips the message after the installation of dependencies.--skip-cache
: Do not remember prompt answers.
.
βββ /dist/ # Minified, optimized and compiled files.
β βββ /assets/ # Assets folder.
β β βββ /css/ # CSS style files.
β β βββ /files/ # Static files.
β β β βββ img/ # Images folder.
β β βββ /js/ # JS files.
β βββ *.html # Minified HTML files.
βββ /node_modules/ # Node modules dependencies and packages.
βββ /src/ # Source files.
β βββ /images/ # Images non compressed.
β βββ /scripts/ # JavaScript files.
β βββ /styles/ # SCSS / Less style files.
β β βββ _includes/ # Styles SCSS / Less partials.
β βββ /templates/ # Templating Pug files / Html files.
β β βββ _includes/ # Templating Pug partials.
βββ gulpfile.js # Gulp automatization file.
The code is available under the MIT license.