Skip to content

ranbuch/webpack-typescript-starter

 
 

Repository files navigation

Webpack 5 + TypeScript starter

Build Status

This is by far no sophisticated starter or whatever. The goal is to get the simplest possible setup to get you started with Webpack 5 and TypeScript. You can then start from here and add further stuff you need, such as SASS compilation, add framework specific stuff etc.

Also check out the official Webpack 5 docs for a proper TypeScript setup: https://webpack.js.org/guides/typescript/

Note, this is still a WIP. Contributions/suggestions are welcome 😃

Features

  • Webpack 5
  • TypeScript 3 compilation
  • ts-lint
  • Webpack Development Server
  • Karma and Jasmine test execution

How to use

Just clone it and get going.

# --depth 1 removes all but one .git commit history
$ git clone --depth=1 https://github.com/ranbuch/webpack-typescript-starter.git <your-project-name>

# change directory to your project
cd  <your-project-name>

# Maybe remove the `.git` directory and start with a fresh one.

# install all dependencies.
$ npm i

# Start developing and serve your app (http://localhost:8080/index.html):
npm start

# Build your app without minification: 
npm run build

# Build your app with minification: 
npm run build.all

# run unit tests:
npm run test

Contributions

Of course! Open an issue and let's discuss 😃.

Links and other useful stuff

Similar projects that could be a point of inspiration:

About

A simple Webpack 2 + TypeScript starter

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 81.9%
  • TypeScript 15.0%
  • HTML 3.1%