config-oclock
Config O'clock (eslint, babel, prettier, ...) which have same packages and configuration in front and back side
Last updated 2 years ago by oclock .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install config-oclock 
SYNC missed versions from official npm registry.

Config O'clock

We define all eslint rules in this project.

This config contains several common utility, like :

  • Babel
  • ESLint
  • Mocha
  • Chai
  • Sinon
  • Husky
  • Prettier
  • Lint-staged

Config React

  • If you're using this config with a React project,
  • Also, download config-oclock-front.
  • In your project, add this config in .eslintrc :
{
  "extends": [
    "./node_modules/config-oclock/eslint.js",
    "./node_modules/config-oclock-front/eslint.js"
  ]
}
  • Create a .babelrc and add this :
{
  "extends": "./node_modules/config-oclock-front/.babelrc"
}
  • Create a file brunch-config.js at root of your project, and add this :
const package = require('./package.json');
const brunchConfig = require('config-oclock-front/brunch');
exports.config = brunchConfig(package, {
  // You can overRide Brunch's config here.
  // For example, if you want run Brunch on another port
  server: { port: 3335 }
});

Config Node.js

  • Or, with a Node.js project,
  • Also, download config-oclock-back,
  • In your project, add this config in .eslintrc :
{
  "extends": [
    "./node_modules/config-oclock/eslint.js",
    "./node_modules/config-oclock-back/eslint.js"
  ]
}
  • Create a .babelrc and add this :
{
  "extends": "./node_modules/config-oclock-back/.babelrc"
}

Others config

You need use this config with one of both.

If you're using React : this config-oclock-front is made for you !
That will install these packages :

Brunch

  • Auto Reload Brunch
  • Brunch
  • Clean CSS Brunch
  • Stylus Brunch
  • Uglify JS Brunch

Babel

  • Babel-brunch
  • Babel-plugin-glamorous-displayname
  • Babel-plugin-transform-react-remove-prop-types
  • Babel-preset-react

Tests

  • Enzyme, + Adapter for React 16
  • Enzyme Redux
  • JSDom
  • Node Localstorage
  • React test renderer
  • Redux test utils

Or, if you're using Node.js : you should use this config-oclock-back.
That will install these packages :

  • Babel-cli
  • Nodemon
  • Supertest

Current Tags

  • 1.0.20                                ...           latest (2 years ago)

19 Versions

  • 1.0.20                                ...           2 years ago
  • 1.0.19                                ...           2 years ago
  • 1.0.18                                ...           3 years ago
  • 1.0.17                                ...           3 years ago
  • 1.0.16                                ...           3 years ago
  • 1.0.15                                ...           3 years ago
  • 1.0.14                                ...           3 years ago
  • 1.0.13                                ...           3 years ago
  • 1.0.12                                ...           3 years ago
  • 1.0.11                                ...           3 years ago
  • 1.0.10                                ...           3 years ago
  • 1.0.9                                ...           3 years ago
  • 1.0.8                                ...           3 years ago
  • 1.0.7                                ...           3 years ago
  • 1.0.6                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Downloads
Today 0
This Week 3
This Month 29
Last Day 2
Last Week 2
Last Month 11
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |