WhiteStorm TypeScript Boilerplate is a starter kit for crafting 3D applications using modern technologies:
This starter kit also uses the following libraries and tools:
.
āāā build # Built, ready to serve app.
āāā config # Root folder for configurations.
ā āāā types # Global type definitions, written by us.
ā āāā webpack # Webpack configurations.
ā āāā main.ts # Generic App configurations.
āāā node_modules # Node Packages.
āāā src # Source code.
ā āāā app # App folder.
ā ā āāā components # React Components.
ā ā āāā containers # React/Redux Containers.
ā ā āāā helpers # Helper Functions & Components.
ā ā āāā redux # Redux related code aka data layer of the app.
ā ā ā āāā modules # Redux modules.
ā ā ā āāā reducers.ts # Main reducers file to combine them.
ā ā ā āāā store.ts # Redux store, contains global app state.
ā ā āāā routes.tsx # Routes.
ā āāā client.tsx # Entry point for client side rendering.
ā āāā index.html # root page template
ā āāā server.tsx # Entry point for server of static content.
āāā typings # Type definitions installed with typings.
āāā .gitignore # Tells git which files to ignore.
āāā .stylelintrc # Configures stylelint.
āāā Dockerfile # Dockerfile.
āāā favicon.ico # Favicon.
āāā package.json # Package configuration.
āāā README.md # This file
āāā tsconfig.json # TypeScript transpiler configuration.
āāā tslint.json # Configures tslint.
āāā typings.json # Typings package configuration.
You can clone from this repository or install the latest version as a zip file.
$ git clone https://github.com/whitestormJS/whitestorm-typescript-boilerplate
$ cd whitestorm-typescript-boilerplate
$ npm install
All commands defaults to development environment. You can set NODE_ENV to production or use the shortcuts below.
# Running
$ npm start # This starts the app in development mode
# Starting it with the production build
$ NODE_ENV=production npm start # or
$ npm run start:prod
# Building
$ npm build # This builds the app in development mode
# Commands below builds the production build
$ NODE_ENV=production npm build # or
$ npm run build:prod
# Testing
$ npm test
# If you want install additional libraries, you can also install their typings from DefinitelyTyped
$ typings install dt~<package> --global --save
# or if it's located on npm
$ typings install <package> --save-dev