Skip to content

πŸš€ A Starter Kit and a CLI to create your TypeScript / ES6 module bundled by Webpack without thinking about build or unit tests configurations. ✌🏽

Notifications You must be signed in to change notification settings

harshvardhan12/typescript-webpack-starter

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

62 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Typescript Webpack Starter

Build Status

A damn simple ES6 and Typescript Starter kit using webpack for packaging. Perfect for bootstraping your javascript project regardless any framework.

Built upon

Getting started

Clone Typescript Webpack Starter

git clone https://github.com/emyann/typescript-webpack-starter.git
cd typescript-webpack-starter
# Install the dependencies
npm install

Run

Start a Webpack dev server

npm start

And go to this URL: http://localhost:3000 - πŸŽ‰

Start a Webpack server with the production configuration

npm run server:prod

Build Only

Build a development release

npm run build

Build a production release

npm run build:prod

After build phase, 3 files are generated into the dist folder:

  • app.bundle.js - contains the core of the application. From the entry point src/index.ts
  • vendor.bundle.js - contains the vendor dependencies
  • index.html - html page with references to the 2 files above

TODO

  • Setup a webpack common configuration and use webpack-merge
  • create-ts-app or create-typescript-app CLI instead of cloning the entire repository

About

πŸš€ A Starter Kit and a CLI to create your TypeScript / ES6 module bundled by Webpack without thinking about build or unit tests configurations. ✌🏽

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 81.7%
  • HTML 11.2%
  • TypeScript 7.1%