Skip to content

Commit e4fe161

Browse files
Merge pull request cerebral#4 from cerebral/monorepo
chore: setup monorepo with repo-cooker
2 parents 295c864 + 56297c3 commit e4fe161

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+15189
-30950
lines changed

.cz-config.js

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
'use strict'
2+
3+
module.exports = {
4+
types: [
5+
{ value: 'feat', name: 'feat: A new feature' },
6+
{ value: 'fix', name: 'fix: A bug fix' },
7+
{ value: 'docs', name: 'docs: Documentation only changes' },
8+
{
9+
value: 'style',
10+
name:
11+
'style: Changes that do not affect the meaning of the code\n (white-space, formatting, missing semi-colons, etc)',
12+
},
13+
{
14+
value: 'refactor',
15+
name:
16+
'refactor: A code change that neither fixes a bug nor adds a feature',
17+
},
18+
{
19+
value: 'perf',
20+
name: 'perf: A code change that improves performance',
21+
},
22+
{ value: 'test', name: 'test: Adding missing tests' },
23+
{
24+
value: 'chore',
25+
name:
26+
'chore: Changes to the build process or auxiliary tools\n and libraries such as documentation generation',
27+
},
28+
{ value: 'revert', name: 'revert: Revert to a commit' },
29+
],
30+
31+
scopes: [
32+
{ name: 'action-chain' },
33+
{ name: 'overmind' },
34+
{ name: 'overmind-devtools' },
35+
{ name: 'proxy-state-tree' },
36+
],
37+
38+
// it needs to match the value for field type. Eg.: 'fix'
39+
scopeOverrides: {
40+
chore: [],
41+
},
42+
43+
allowCustomScopes: true,
44+
allowBreakingChanges: ['feat', 'fix'],
45+
appendBranchNameToCommitMessage: false,
46+
}

.eslintrc.json

Lines changed: 41 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,43 @@
11
{
2-
"parserOptions": {
3-
"ecmaVersion": 2017,
4-
"sourceType": "module",
5-
"ecmaFeatures": {
6-
"jsx": true
7-
}
8-
},
9-
"env": {
10-
"browser": true,
11-
"node": true,
12-
"es6": true
13-
},
14-
"extends": [ "standard", "standard-jsx", "plugin:prettier/recommended", "prettier/react", "prettier/standard" ],
15-
"rules": {
16-
"linebreak-style": [ "error", "unix" ]
17-
},
18-
"overrides": [
19-
{
20-
"files": [ "*.ts" ],
21-
"parser": "typescript-eslint-parser",
22-
"plugins": [ "typescript" ],
23-
"rules": {
24-
"import/export": "off",
25-
"no-dupe-class-members": "off",
26-
"no-empty-pattern": "off",
27-
"no-redeclare": "off",
28-
"no-unused-vars": "off",
29-
"no-undef": "off",
30-
"no-unused-expressions": "off",
31-
"no-use-before-define": "off",
32-
"no-useless-constructor": "off",
33-
"typescript/no-unused-vars": "error"
34-
}
35-
}
36-
]
2+
"parserOptions": {
3+
"ecmaVersion": 2017,
4+
"sourceType": "module",
5+
"ecmaFeatures": {
6+
"jsx": true
7+
}
8+
},
9+
"env": {
10+
"browser": true,
11+
"node": true,
12+
"es6": true
13+
},
14+
"extends": [
15+
"standard",
16+
"standard-jsx",
17+
"plugin:prettier/recommended",
18+
"prettier/react",
19+
"prettier/standard"
20+
],
21+
"rules": {
22+
"linebreak-style": ["error", "unix"]
23+
},
24+
"overrides": [
25+
{
26+
"files": ["*.ts"],
27+
"parser": "typescript-eslint-parser",
28+
"plugins": ["typescript"],
29+
"rules": {
30+
"import/export": "off",
31+
"no-dupe-class-members": "off",
32+
"no-empty-pattern": "off",
33+
"no-redeclare": "off",
34+
"no-unused-vars": "off",
35+
"no-undef": "off",
36+
"no-unused-expressions": "off",
37+
"no-use-before-define": "off",
38+
"no-useless-constructor": "off",
39+
"typescript/no-unused-vars": "error"
40+
}
41+
}
42+
]
3743
}

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/packages/node_modules/** linguist-generated=false linguist-vendored=false
2+
* text=auto

.gitignore

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,14 @@ bower_components
3939
build/Release
4040

4141
# Dependency directories
42-
node_modules/
43-
jspm_packages/
42+
node_modules
43+
!/packages/node_modules
44+
/packages/node_modules/**/node_modules
45+
jspm_packages
46+
47+
# Lock files
48+
yarn.lock
49+
/packages/**/package-lock.json
4450

4551
# TypeScript v1 declaration files
4652
typings/
@@ -61,7 +67,7 @@ typings/
6167
.yarn-integrity
6268

6369
# dotenv environment variables file
64-
.env
70+
.env*
6571

6672
# next.js build output
6773
.next

.prettierrc.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
2-
"trailingComma": "es5",
3-
"singleQuote": true,
4-
"semi": false,
5-
"arrowParens": "always",
6-
"overrides": [
7-
{
8-
"files": "*.md",
9-
"options": {
10-
"trailingComma": "none"
11-
}
12-
}
13-
]
2+
"trailingComma": "es5",
3+
"singleQuote": true,
4+
"semi": false,
5+
"arrowParens": "always",
6+
"overrides": [
7+
{
8+
"files": "*.md",
9+
"options": {
10+
"trailingComma": "none"
11+
}
12+
}
13+
]
1414
}

.travis.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
sudo: false
2+
language: node_js
3+
node_js: '8'
4+
cache:
5+
directories:
6+
- node_modules
7+
addons:
8+
apt:
9+
sources:
10+
- ubuntu-toolchain-r-test
11+
packages:
12+
# needed by nodegit (repo-cooker)
13+
- libstdc++-4.9-dev
14+
git:
15+
depth: 9999
16+
notifications:
17+
email: false
18+
script:
19+
- |
20+
if [[ $SKIP_TESTS != 'true' ]]; then
21+
npm prune
22+
npm run checkdeps
23+
npm run lint
24+
npm test
25+
fi
26+
after_success:
27+
- |
28+
if [[ $TRAVIS_SECURE_ENV_VARS == 'true' ]]; then
29+
git config --global user.email "[email protected]";
30+
git config --global user.name "Cerebral JS";
31+
fi
32+
if [[ $TRAVIS_BRANCH == 'master' || $TRAVIS_BRANCH == 'next' ]] && [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then
33+
printf "//registry.npmjs.org/:_authToken=$NPM_TOKEN\n" > ~/.npmrc
34+
npm install --no-save [email protected]
35+
npm run release
36+
fi
37+
branches:
38+
except:
39+
- "/^v\\d+\\.\\d+\\.\\d+$/"

0 commit comments

Comments
 (0)