pixel2html-1234-1234 v1.0.3
1234
Installing dependencies & running up
To work, the Pixel2HTML Boilerplate needs to install some dependencies to run the options you select. For this job, run this command in your shell
$ npm run start
$ npm run codeOther available npm commands
$ npm run build //build the project without servingFile Structure
This boilerplate will create a set of files and folders
├── dist/
├── src/
│ ├── assets/
│ │ ├── gulp/
│ │ │ ├── tasks/
│ │ │ ├── config.js
│ │ │ └── helpers.js
│ │ ├── fonts/
│ │ ├── icons/
│ │ ├── images/
│ │ ├── js/
│ │ ├── styles/
│ │ │ ├── components/
│ │ │ │ ├── _buttons.less
│ │ │ │ ├── _footer.less
│ │ │ │ ├── _header.less
│ │ │ │ └── _nav.less
│ │ │ ├── screens/
│ │ │ │ ├── _base.less
│ │ │ │ └── screen_1.less
│ │ │ ├── _variables.less
│ │ │ ├── _reset.less
│ │ │ ├── _mixins.less│ │ │ ├── vendors.scss
│ │ │ └── main.less
│ │ └── vendor/
│ └── screen_1.pug
├── .bowerrc
├── .editorcofig
├── .gitattributes
├── .gitignore
├── .project.conf
├── bower.json
├── gulpfile.js
├── package.json
└── README.mdGulp Config file
You have a config file located at ./src/assets/gulp/config.js that enables you to add thrid-party libraries easily.
SCSS Directories
You can add paths to scssDirectories key, who will add this directories to the includePath of sass compilation. So you now can @include whatever you want in your ./src/assets/styles/vendor.scss file:
Example
sassDirectories: [
'path/to/scss/directory/scss',
'another/brick/in/the/scss_wall'
]Script Files
You can add file paths to scriptFiles key, who will add this concat, and minify to the ./dist/assets/js/vendors.js file.
Example
scriptFiles: [
'./path/to/jquery/library/slider.js',
'./welcome/to/the/machine.js'
]Font Files
You can add file paths to fontFiles key, who will move this fonts to the correct folder ./dist/assets/fonts.
You can point to specific files or complete directories using wildcards (**/*)
Example
fontFiles: [
'./path/to/bootstrap/fonts/**/*',
'./shine/on/crazy/font.ttf'
]Available Gulp Commands
Helpers
$ gulp cleanClean /dist directory
Static Files
$ gulp main:staticCompile static files (images, icons)$ gulp main:imagesMove images$ gulp main:iconsMove icons
Fonts Files
$ gulp main:fontsMove project fonts$ gulp vendor:fontsMove vendors fonts
Scripts
$ gulp main:scriptsConcat, uglify and move project JS files$ gulp vendor:scriptsConcat, uglify and move vendors JS files
Styles
$ gulp main:stylesCompile, concat, autoprefix, minify and move SCSS, Less, Stylus project files$ gulp vendor:stylesCompile, concat, autoprefix, minify and move SCSS, Less, Stylus vendor files
Daemons
$ gulp watchWatch your files and autoexecute gulp directives$ gulp serveWatch your files and serve with an HTTP server and Sync with your prefered browser awesome!
Delivery
$ gulp buildExecute all the gulp directives and makes a.zipfile with the latest code.
Generated with 💕 by Pixel2HTML v1.2.1 @ 2017-01-09T12:24:56-03:00
9 years ago