Skip to content
This repository was archived by the owner on Dec 16, 2019. It is now read-only.

ManzDev/document-blank

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A prepared package for new HTML/CSS/JS projects and easy coding.

Features

Requisites

apt-get install git
npm install -g gulp less eslint babel
apm install emmet atom-file-icons autocomplete-json autocomplete-modules gulp-task-launcher minimap pigments
apm install linter busy-signal intentions linter-ui-default linter-eslint linter-less linter-htmlhint

Folder structure

 |
 |- src                       ; Source files of project (for development)
     |-- assets               ; Static assets (MP3, PDF...)
     |-- css                  ; LESS (CSS) files
     |-- img                  ; Source images (PSD, PDN, JPG, PNG, SVG...)
     |-- js                   ; ES201x Javascript source files
     |-- libs                 ; JS Libraries (Lodash, Underscore, jQuery, etc...)
     |- index.html
 |- dist                      ; End files of project (for production)
     |-- css
     |-- js
     |- index.html
 |- .git
 |- .eslintrc.json            ; JSON ESlint Linter Config
 |- gulpfile.js               ; JS Tasks Gulp Config
 |- package.json              ; JSON NPM Package Config

Installation

git clone https://github.com/ManzDev/document-blank.git project-name
cd project-name
npm install

Tasks (gulp)

With next commands you can generate end HTML, CSS and JS files.

1. Preprocess files

gulp html                   ; Copy HTML files to dist/
gulp css                    ; Preprocess LESS, PostCSS & plugins and minify with CleanCSS to dist/
gulp js                     ; Preprocess JS with Browserify, Babel and minify with UglifyJS to dist/
gulp libs                   ; Concatenate JS libraries and minify with UglifyJS to dist/
gulp html css js libs       ; Alias for prev tasks
gulp                        ; Alias for prev tasks

2. Process assets and images

gulp assets                 ; Process static files (only new files) to dist/
gulp images                 ; Process and optimize images (JPG, PNG, GIF, SVG...) to dist/

3. Monitorize changes and open local web server

gulp watch-html             ; Watch HTML and launch tasks if changes
gulp watch-css              ; Watch LESS and launch tasks if changes
gulp watch-js               ; Watch JS/ES6 and launch tasks if changes
gulp www                    ; Launch local web server
gulp watch                  ; Watch all prev tasks (and local web server)

To do / Future improvements

Releases

No releases published

Packages

No packages published