Angular 2 && TypeScript via browserify
MIT License
This repo is a basic setup to get you started with Angular 2 && TypeScript.
Modules used:
npm i
npm run go
Easy to understand setup, only a few npm scripts involved. You won't load 100
JavaScript files in development with HTTP 1.1 (like the SystemJS setup does) nor
will you have tens of lines of configuration just to get you started (like a
webpack.config.js
file has).
app/vendor.ts
, even though you areapp/main.ts
. That allows factor-bundle
to store them (thecommon.js
file, working nicely withwatchify
so that only the code you write is getting rebundled in development.app/vendor.ts
.Q: But I really like to import html like I do in Webpack.
A: Use stringify and update the npm
build
script accordingly.
Q: Why can't you use SystemJS or Webpack like everybody else?
A: SystemJS is a pain in development because it makes me load a ton of files, and the development servers aren't using HTTP 2.0 so far. Webpack is a powerful solution, but that config file can grow quite big even though my needs are simple.