Skip to content

Instantly share code, notes, and snippets.

@monokrome
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save monokrome/9500677 to your computer and use it in GitHub Desktop.
Save monokrome/9500677 to your computer and use it in GitHub Desktop.
Simple GLP configuration example.
# Install glp in your project.
npm install -g glp
# Create a config file as explained by the other file in this gist.
# Run glp (not gulp) to build!
glp
# watch files for changes
glp watch
# run a nodejs webserver while watching for changes
glp server
# build with minification
glp release
# Don't like yaml? Use whatever you want!
# (uses https://github.com/LimpidTech/prefer)
glp -c glp.json # uses json5
glp -c glp.xml
glp -c glp.ini
glp -c glp.coffee
# Don't like command-line arguments? Use an environemnt variable!
GLP_CONFIGURATION=glp.ini glp
files:
scripts:
# Not concatenated, since it's a directory.
scripts/: 'app/**/*.coffee'
stylsheets:
# This will concatenate into styles.css
/styles: 'app/**/*.styl'
templates:
# Builds each file into the root directory.
/:
- 'app/**/*.jade'
- 'app/**/*.haml'
@monokrome
Copy link
Author

A more thorough description of the configuration format is here: https://gist.github.com/monokrome/9202343

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment