TNT Sports LA
This repository contains the WebApp for TNT Sports LA
Code Style
We use Standard JS with semi-colon (Semistandard)
Rules
To avoid error with Global variables, they must be declarated with a comment on the first line:
This way:
/* global [variable] [variable] [variable] ... */
Example:
/* global React define */;
Editor plugins
Install ESLint for your IDE (.eslintrc config file included on repo) .eslintrc
VSCode users:
- Install ESLint plugin for VS Code
- Check your VS Code settings file and make sure that
"files.autoSave"
is"off"
- Add
"eslint.autoFixOnSave": true
to your settings
Atom users:
- Install ESLint plugin for Atom Linter
Sublime users:
- Install SublimeLinter 3
- Install ESLint plugin for SublimeLinter
Download repository
git clone git@bitbucket.org:iamat/tntsports-webapp.git
Install Packages and Dependencies
npm install
Run Development
Use webpack + nodejs
npm run dev
Use webpack-dev-server (recommended)
npm run local
Run Production
Use webpack (compressed) + nodejs
npm run prod
Use webpack (compressed)
npm run build:pro