4.0.4 • Published 6 years ago

messi-webapp v4.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

TNT Sports LA

js-semistandard-style

This repository contains the WebApp for TNT Sports LA

Code Style

We use Standard JS with semi-colon (Semistandard)

js-semistandard-style

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:

Sublime users:

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