SPA site starter using Typescript, Browserify and Backbone
Clone this repository, then
npm install
This 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 start
Launches a browser-sync server on port 9000, watch for changes only for /static files and open default browser.
npm run start:server
Bundle all JS and CSS static files.
npm run build
Bundle the main.js static file.
npm run build:js
Bundle 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:vendor
Bundle the main.css static file.
npm run build:css
Watch and rebundle all JS and CSS static files.
npm run watch
Watch /src/scripts/ and rebundle the main.js static file.
npm run watch:js
Watch /src/styles/ and rebundle the main.css static file.
npm run watch:css