This is the initial version of our starter project using Angular 1.x, TypeScript and Webpack to tie it all together.
-
npm install
: install npm dependencies specified in package.json as well as typings specified in tsd.json (typings will be put into typings folder which is also git ignored). -
postinstall
: runs automatically afternpm install
and triggers anpm run build
to provide a build directory tonpm start
by default -
npm run dev
: will start webpack's development server (with live reloading) on http://localhost:8080. Note that in this case the bundle will be generated in memory and your bundle in dist might get out of sync. -
npm start
: starts a production server serving the dist directory on http://localhost:3000 -
npm run build
: bundle all of the application including js/css/html files, with index.html generated according to a template specified in index.html (Everything will be put into dist folder).
This is an initial version of this setup and will be expanded in the future. Refer to the issues section to see what needs to be done, or create a new one.
- Fix/ReOrg BassCSS styles
- Better support for custom typings (so we don't have to commit typings to the repo)
- Test examples (spec & unit)
- Component
displayName
,propTypes
,defaultProps
and documentation - Auto-reloading API server (when specified)
- Enforce single-quotes for TS code and double-quotes for JSX.
- ref: palantir/tslint#673
Refer to the issues section to see if this has already been logged. Otherwise create a new issue.