appirio-tech/gulp-tasks

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

gulp-tasks

Build Status Coverage Status

Sample gulp file
 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
Tasks
clean

Delete folders

configs.cleanFiles

Gulp paths to clean. Default: '.tmp', 'dist', 'coverage'

cdnify

Replace urls with a cdn url.

configs.cdnify.files

Files to use. Default: 'dist/**/*.css', 'dist/**/*.html'

configs.cdnify.distPath

Where new files will be placed. Default: dist

coffee

Convert coffee files to js files.

configs.coffee.files

Files to use. Default: 'app/**/*.coffee', 'example/**/*.coffee', 'src/**/*.coffee'

configs.coffee.tempFolder

Where new files will be placed. Default: .tmp

copy

Copy files to a location.

configs.copyFiles.files

Files to use. Default: 'dist': '**/*.{gif,png,jpg,jpeg,svg}'

configs.copyFiles.base

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

Useful alias
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'
Releases

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.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.