Git Product home page Git Product logo

document-blank's Introduction

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

document-blank's People

Contributors

manzdev avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.