messi-webapp
v4.0.4
Published
[![js-semistandard-style](https://img.shields.io/badge/code%20style-semistandard-brightgreen.svg?style=flat-square)](https://github.com/Flet/semistandard)
Downloads
4
Readme
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 */
define([
'react-at/react-at',
'libs/iamat-mclib/mclib',
], function (
ReactAt,
mclib
) {
return React;
});
Editor plugins
Install ESLint for your IDE (.eslintrc config file included on repo) .eslintrc
{
"parser": "babel-eslint",
"extends": "standard",
"ecmaFeatures": {
"jsx": true,
"modules": true
},
"plugins": [
"react",
"import"
],
"rules": {
"semi": [2, "always"],
"no-useless-return": 0,
"react/jsx-uses-vars": 2
}
}
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 [email protected]: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