1.0.3 • Published 7 years ago

pixel2html-1234-1234 v1.0.3

Weekly downloads
6
License
MIT
Repository
-
Last release
7 years ago

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 code

Other available npm commands

$ npm run build //build the project without serving

File 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.md

Gulp 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 clean Clean /dist directory

Static Files

  • $ gulp main:static Compile static files (images, icons)
  • $ gulp main:images Move images
  • $ gulp main:icons Move icons

Fonts Files

  • $ gulp main:fonts Move project fonts
  • $ gulp vendor:fonts Move vendors fonts

Scripts

  • $ gulp main:scripts Concat, uglify and move project JS files
  • $ gulp vendor:scripts Concat, uglify and move vendors JS files

Styles

  • $ gulp main:styles Compile, concat, autoprefix, minify and move SCSS, Less, Stylus project files
  • $ gulp vendor:styles Compile, concat, autoprefix, minify and move SCSS, Less, Stylus vendor files

Daemons

  • $ gulp watch Watch your files and autoexecute gulp directives
  • $ gulp serve Watch your files and serve with an HTTP server and Sync with your prefered browser awesome!

Delivery

  • $ gulp build Execute all the gulp directives and makes a .zip file with the latest code.

Generated with 💕 by Pixel2HTML v1.2.1 @ 2017-01-09T12:24:56-03:00