A TypeScript + Sass + Browserify + Gulp + Karma + BroserSync demo repository
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
data
source
test
.gitignore
.travis.yml
Gemfile
Gemfile.lock
LICENSE
README.md
bower.json
gulpfile.js
index.html
karma.conf.js
package.json
tsd.json

README.md

Important notice I don't have time to look after this repo anymore but I have created an updated version. The new repo is available at https://github.com/remojansen/ts-vscode-boilerplate.

modern-workflow-demo

Join the chat at https://gitter.im/remojansen/modern-workflow-demo Build Status Dependencies img img

You can use this project to learn how to use Gulp with TypeScript + Sass + Browserify + Karma + BroserSync.

Workflow

  1. lint: Lints JSON under ./data, TypeScript under ./source/ts/ ./testand Sass under ./source/scss/.

     gulp lint
    
  2. build: Compiles Sass and TypeScript files from ./source to ./temp.

     gulp build
    
  3. bundle: Bundle files from ./temp to ./dist powered by Browserify.

     gulp bundle
    
  4. test: Run Mocha + Chai + Sinon unit test powered by Karma.

     gulp test
    
  5. serve: Host app in static server and refresh browser on changes powered by BrowserSync.

     gulp serve
    

The default task runs the lint, build, bundle and test tasks.

There are two additional tasks:

  1. install: Re-installs bower_components, node_modules and typings.

     gulp install
    
  2. clean: Deletes the ./temp and ./dist directories.

     gulp clean
    

License

MIT