git clone git@github.com:zoxon/gulp-front.git --depth 1 my-project
npm run setup
npm start
http://localhost:3000/npm run cleanup. This command delete demo app.npm start to see your app at http://localhost:3000/npm run build, which will compile all the necessary files to the dest folder.dest folder to your web server’s root folder.The source directory contains your entire application code, including CSS, JavaScript, HTML.
The rest of the folders and files only exist to make your life easier, and should not need to be touched.
Below you can find full details about significant files and folders.
gulp-front/ # Project root
├── dest # Compiled files
├── docs # Documentation
├── gulp # Gulpfile tasks and config
├── source
│ ├── icons # SVG icons sprite files
│ ├── layouts # Pug layouts
│ ├── modules # Modules folder
│ ├── pages # Pages
│ ├── public # Static files copy to project root
│ ├── scripts
│ │ ├── core # JS Modules core
│ │ ├── helpers # JS various helpers
│ │ └── main.js # Main JavaScript file
│ ├── sprite # PNG Sprite files
│ └── styles
│ ├── core
│ │ ├── helpers # System level helper classes
│ │ ├── mixins # System mixins
│ │ ├── typography # Typography styles
│ │ └── variables # Sysytem variables
│ ├── _common.styl # Different styles
│ ├── _variables.styl # Variables
│ ├── main.styl # Main styles
│ └── reset.styl # Styles reset + typography
├── tmp # Temp folder
├── tools # Gulp-front tools
└── zip # Folder with buld zip archives
js-beautify gulp wrapperFor converting a set of images into a spritesheet add your image to source/sprite folder.
Spritesheet generates with the help of gulp.spritesmith
Retina spritesheets/templates are supported too.
To convert a bunch of svg files to a single svg sprite add svg file to source/icons folder.
Then you can use icon mixin call in your template.
Example:
source/icons folder.include ../icon/icon+icon(name="icon-name" title="Icon title") to render iconSpritesheet generates with plugin gulp-svg-symbols
All data in modules stores in data/*.yaml files
YAML Ain’t Markup Language
npm install
Starts the development server running on http://localhost:3000
npm start
Remove demo app.
npm run cleanup
Build project.
npm run build
Create build branch in your git repository and push compilled files.
npm run deploy
Build a project and pack content of dest folder in zip file
npm run zip
Create empty module by name in source/modules folder
By default generate only *.pug and *.styl files.
You can call amo (Add Module) with additional params like js and yml
npm run amo <module-name> [js || yml]