Skip to content

Commit

Permalink
refactor: convert the repo into a monorepo managed by lerna
Browse files Browse the repository at this point in the history
Signed-off-by: Raymond Feng <[email protected]>
  • Loading branch information
raymondfeng committed Apr 22, 2019
1 parent f81a961 commit ee557f0
Show file tree
Hide file tree
Showing 9 changed files with 3,661 additions and 1,077 deletions.
4 changes: 2 additions & 2 deletions DEVELOPING.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ users.

Install the following extensions:

- [tslint](https://marketplace.visualstudio.com/items?itemName=eg2.tslint)
- [prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode)
- [tslint](https://marketplace.visualstudio.com/items?itemName=eg2.tslint)
- [prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode)

## Development workflow

Expand Down
5 changes: 4 additions & 1 deletion commitlint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
// License text available at https://opensource.org/licenses/MIT

module.exports = {
extends: ['@commitlint/config-conventional'],
extends: [
'@commitlint/config-conventional',
'@commitlint/config-lerna-scopes',
],
rules: {
'header-max-length': [2, 'always', 100],
'body-leading-blank': [2, 'always'],
Expand Down
12 changes: 12 additions & 0 deletions greenkeeper.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"groups": {
"default": {
"packages": [
"package.json",
"packages/shopping/package.json",
"packages/recommender/package.json"
]
}
},
"ignore": ["@types/node"]
}
30 changes: 30 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"lerna": "3.3.0",
"packages": [
"packages/*"
],
"command": {
"bootstrap": {
"concurrency": 8
},
"version": {
"conventionalCommits": true,
"message": "chore: publish release"
},
"publish": {
},
"run": {
"prefix": false,
"loglevel": "silent",
"stream": true,
"concurrency": 8,
"sort": false
},
"clean": {
"loglevel": "silent",
"concurrency": 8,
"yes": true
}
},
"version": "independent"
}
Loading

0 comments on commit ee557f0

Please sign in to comment.