Skip to content

Gulp configuration to mimic codekit features [codekit to gulp]

Notifications You must be signed in to change notification settings

geckoslair/codekit-gulp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 

Repository files navigation

codekit-gulp

Gulp configuration to mimic codekit features

features

JAVASCRIPT

  • JSHint

  • Uglify

  • import js files inside js file (inject/include - inline include):

    • mimic the feature on codekit: // @codekit-append "someOtherFile.js";
    • Usage: //include("bar.js");
    • in this line the content of bar.js will be injected
    • when save, will run JSHint
  • nested imports

  • support for partials javascript files (_file.js)

    • these files will not be piped to dist folders. These files are imported by others files.
    • when save partial: scripts run jshint on partial, find all the "imported by" files (parents files), inject and use uglify on these files
  • compile the necessary files (changed files). If is a partial, or imported, the parents will be processed.

SASS/SCSS/CSS

  • Support _partials and only compile the necessary files (parents of the imports);
  • Sass/Scss options (compressed, expanded etc..)

OTHER FEATURES

  • browser-sync (live reload when edit files)
  • watch (watch files for modifications and run tasks)
  • reload browser on change file (html, php, jpg, gif, png) - Use package.json to configure

install

Put files in your app root directory (if file exists, combine them), and run:

npm install --save-dev

or clone git:

git clone https://github.com/brnmonteiro/codekit-gulp.git
cd codekit-gulp
npm install --save-dev

if error, use sudo.

configure

To configure, edit file package.json.

**Suggest directory structure:

├── app/
│   ├── scss/
│   ├── js/
│   ├── public/
│   │   ├── css/ 
│   │   ├── js/

usage

For initialize, use:

gulp --silent

This command will run default task:

  • webserver (port default 5858) task
  • watch task

TODO

Code to others languages and others features (help me?)

About

Gulp configuration to mimic codekit features [codekit to gulp]

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%