Skip to content

jptiilik/frontend-workflow

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Front-end Workflow

Front-end workflow with Gulp , BrowserSync , Pug , PostCSS , Browserify

PostCSS Plugins: cssnext , lost , import , reporter , precss , rucksack

Instruction

1. Global Install

  1. Install Node.js (for your platform).
  2. run npm install --g gulp browser-sync browserify.

2. Local Install

git clone https://github.com/xowei/frontend-workflow.git

Install dependencies npm install

3. Use

src folder is sources code : contains Pug, PostCSS, Javascript, Javascript modules, fonts, images etc.

dist folder is for public : contains HTML, CSS, javascript, fonts, compressed images etc.

  • gulp pug Compile Pug to HTML

  • gulp css Compile PostCSS to single CSS file named 'styles.css'

  • gulp js Compile script.js with browserify to single javascript file named 'scripts.js'

  • gulp assets copy fonts and compressed images

  • gulp assets:images copy compressed images

  • gulp assets:fonts copy fonts and compressed images

  • gulp init run all of the above task

  • gulp init --production run all task and compressed it all

  • gulp del remove dist folder

  • gulp or gulp watch open browser-sync server,Local view: http://127.0.0.1:3000/

About

Front-end workflow with Gulp, BrowserSync, Pug, PostCSS, Browserify.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 96.6%
  • HTML 3.4%