0.1.32 • Published 5 years ago

typescript-boilerplate-test v0.1.32

Weekly downloads
2
License
MIT
Repository
-
Last release
5 years ago

webpack-typescript-sass-app-boilerplate

Description

Boilerplate to kickstart development of a web app using Webpack, TypeScript and SASS.

How To

Get Started

  1. git clone this repository.
    • Delete the resulting .git folder and run git init to start with a fresh commit history.
  2. Delete the contents of CHANGELOG.md and README.md.
  3. Update the fields in package.json with the relevant information (e.g. name, description, version, license).
  4. Update the title option for HtmlWebpackPlugin in webpack.config.js to be used in the generated dist/index.html file.
  5. Replace src/assets/favicon.ico with something relevant to the new web app.
  6. Add your code to the src folder.

Install & Build

  • Install dependencies using yarn (recommended) or npm install.
  • Run webpack using yarn run build or npm run build from the command line.
    • This will output bundles to the dist folder.

Serve Using Express

  • Optionally set the PORT environment variable if you don't want to use the default port number 3000.
  • Run node serve.js from the command line.

Enable Source Maps

  • Set the NODE_ENV environment variable to development and rebuild.

Disable auto-changelog

  • Upon running yarn version or node version, the auto-changelog tool automatically updates CHANGELOG.md based on git tags and commit history. It requires the usage of semver version numbering. To disable this feature, remove the version script from package.json and optionally remove the node module itself as well.

Add Vendor Modules

  • Include any third-party vendor modules in src/vendor.ts.
	  // Example src/vendor.ts
      import '@angular/core';
      import '@angular/common';
      import '@angular/http';
      import '@angular/router';
      ...

Add Polyfills For Browser Support

  • Include any polyfills in src/polyfills.ts for any functionality that browsers might not natively support yet.

Add Type Definitions

  • Run yarn add @types/<dependency_name> --dev or npm install @types/<dependency_name> --save-dev from the command line.
0.1.32

5 years ago

0.1.31

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago