Name: gulp-tasks
Owner: Topcoder
Description: common gulp tasks
Created: 2015-05-22 17:42:16.0
Updated: 2015-06-06 21:12:08.0
Pushed: 2015-12-14 23:58:43.0
Homepage: null
Size: 1585
Language: CoffeeScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
strict'
igs =
dirname: __dirname # required
igs.templateCache =
les : [
'.tmp/views/footer.html'
'.tmp/views/main.html'
ot : 'views/'
dule: 'appirio-tech-messaging'
TasksModule = require './load-tasks.coffee'
TasksModule.loadTasks configs
clean
Delete folders
Gulp paths to clean. Default: '.tmp', 'dist', 'coverage'
cdnify
Replace urls with a cdn url.
Files to use. Default: 'dist/**/*.css', 'dist/**/*.html'
Where new files will be placed. Default: dist
coffee
Convert coffee files to js files.
Files to use. Default: 'app/**/*.coffee', 'example/**/*.coffee', 'src/**/*.coffee'
Where new files will be placed. Default: .tmp
copy
Copy files to a location.
Files to use. Default: 'dist': '**/*.{gif,png,jpg,jpeg,svg}'
Option passed to copy-files module. Default: app/
styleguide
gulp styleguide
generates the SC5 Styleguide.
gulp watch-styleguide
runs gulp styleguide
and triggers a live refresh upon any changes to SCSS files.
To pass in your own options for the styleguide, follow this example:
igs.styleguideGenerator =
pcoder:
options:
title: 'Topcoder Styleguide'
server: true
port: 3333
rootPath: 'tc-styleguide'
scssFiles: ['styles/**/*.scss', '!styles/work/**/*.scss']
mainSCSSFile: 'app/styles/topcoder/_tc-styles.scss'
Then, pass the team name as a flag to the gulp command:
gulp watch-styleguide --team topcoder
s gserve='nvm use; gulp clean; gulp serve'
s gtest='nvm use; gulp test'
s gtestserve='nvm use; gulp test-serve'
s gbuild='nvm use; gulp clean; gulp preprocessors; gulp useref; gulp copy-files; gulp remove-code'
s ge2e='gbuild; gulp e2e'
Since npm does not support semvers, we use branches name accordingly, e.g. 1.x.x and 2.x.x. Simply merge or rebase into those branches for a release.