Skip to content

Commit

Permalink
chore: add config files
Browse files Browse the repository at this point in the history
  • Loading branch information
merceyz committed May 4, 2019
1 parent 2c7d58d commit 77b7da0
Show file tree
Hide file tree
Showing 8 changed files with 5,580 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 2.1
jobs:
build:
docker:
- image: circleci/node:8.15
steps:
- checkout
- run:
name: Install dependencies
command: yarn
- run:
name: Check formatting
command: yarn prettier --check "src/**/*.js"
- run:
name: Check tests pass
command: yarn test
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"tabWidth": 2,
"trailingComma": "all",
"printWidth": 100,
"endOfLine": "lf",
"semi": true,
"singleQuote": true
}
12 changes: 12 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
presets: [
[
'@babel/preset-env',
{
targets: {
node: 'current',
},
},
],
],
};
3 changes: 3 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
};
4 changes: 4 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
clearMocks: true,
testEnvironment: 'node',
};
5 changes: 5 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"typeAcquisition": {
"include": ["jest"]
}
}
34 changes: 34 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "babel-plugin-optimize-clsx",
"version": "1.0.0",
"main": "src/index.js",
"files": [
"src"
],
"repository": "https://github.com/merceyz/babel-plugin-optimize-clsx.git",
"author": "merceyz <[email protected]>",
"license": "MIT",
"scripts": {
"test": "jest",
"release": "standard-version"
},
"devDependencies": {
"@babel/core": "^7.4.4",
"@babel/preset-env": "^7.4.4",
"@commitlint/cli": "^7.5.2",
"@commitlint/config-conventional": "^7.5.0",
"@types/jest": "^24.0.12",
"babel-jest": "^24.7.1",
"husky": "^2.2.0",
"jest": "^24.7.1",
"prettier": "^1.17.0",
"pretty-quick": "^1.10.0",
"standard-version": "^5.0.2"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged && yarn test",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
}
}
5,498 changes: 5,498 additions & 0 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 77b7da0

Please sign in to comment.