SPA site starter using Typescript, Browserify and Backbone
Clone this repository, then
npm installThis will install the project and its dependencies to be able to develop
Browser-sync
Browserify
Stylus
Watchify
Tsify
Packages used on the end code. Feel free to add more ( npm install --save [packageName] )
BackboneJS
jQuery
GSAP/Tweenmax
Underscore
Have a look to the 'scripts' field in package.json ;)
Launches a browser-sync server on port 9000 with livereload, open default browser and start watching
npm startLaunches a browser-sync server on port 9000, watch for changes only for /static files and open default browser.
npm run start:serverBundle all JS and CSS static files.
npm run buildBundle the main.js static file.
npm run build:jsBundle the v.js static file from /src/scripts/vendor/vendor.js
By default, it contains Backbone, jQuery, Underscore and TweenMax on the window object.
Feel free to add more.
npm run build:js:vendorBundle the main.css static file.
npm run build:cssWatch and rebundle all JS and CSS static files.
npm run watchWatch /src/scripts/ and rebundle the main.js static file.
npm run watch:jsWatch /src/styles/ and rebundle the main.css static file.
npm run watch:css