1.0.20 • Published 6 years ago
config-oclock v1.0.20
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
1.0.20
6 years ago
1.0.20-alpha
6 years ago
1.0.19
6 years ago
1.0.18
6 years ago
1.0.17
7 years ago
1.0.16
7 years ago
1.0.15
7 years ago
1.0.14
7 years ago
1.0.13
7 years ago
1.0.12
7 years ago
1.0.11
7 years ago
1.0.10
7 years ago
1.0.9
7 years ago
1.0.8
7 years ago
1.0.7
7 years ago
1.0.6
7 years ago
1.0.3
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago