Skip to content

Project that utilizes Gulp to automatically watch and compile PostCSS, CoffeeScript, Pug and run various other tasks.

License

Notifications You must be signed in to change notification settings

sambgordon/mega-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mega-compiler

mega-compiler utilizes Gulp to automatically watch and compile PostCSS, CoffeeScript, Pug, and run other tasks. Browsersync is then used to create a server and reload the page any time a change is made to the files being watched.

File structure

All code to be compiled goes into ./src/pre. PostCSS, CoffeeScript and Pug are then output to ./src/post.

├── src                     # Folder containing all pre and post-compiled files
│   ├── pre                 # Contains files to be compiled  
│       ├── index.pug       # Pug file  
│       ├── script.coffee   # CoffeeScript file 
│       └── style.css       # PostCSS file
│   ├── post                # Contains files compiled using Gulp
│       ├── index.html      # Compiled from './pre/*.pug'  
│       ├── script.js       # Compiled from './pre/*.coffee' 
│       └── style.css       # Compiled from './pre/*.css'        
├── gulpfile.js             # Contains all Gulp tasks to be run
└── package.json

Requiring modules

const gulp =            require('gulp');
const postcss =         require('gulp-postcss');
const autoprefixer =    require('gulp-autoprefixer'); //add vendor prefixes
const browserSync  =    require('browser-sync').create(); //use browserSync to create server and reload page when gulp is run
const coffee =          require('gulp-coffee');
const pug =             require('gulp-pug');
const beautify =        require('gulp-beautify'); //beautify pug output

View on npmjs

About

Project that utilizes Gulp to automatically watch and compile PostCSS, CoffeeScript, Pug and run various other tasks.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published