chore: Add monorepo setup
This commit is contained in:
14
lerna.json
Normal file
14
lerna.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"packages": [
|
||||
"packages/*"
|
||||
],
|
||||
"private": true,
|
||||
"version": "independent",
|
||||
"npmClient": "yarn",
|
||||
"useWorkspaces": true,
|
||||
"command": {
|
||||
"publish": {
|
||||
"registry": "http://localhost:5000"
|
||||
}
|
||||
}
|
||||
}
|
13
package.json
Normal file
13
package.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"name": "@automatisch/root",
|
||||
"private": true,
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
],
|
||||
"devDependencies": {
|
||||
"lerna": "^4.0.0"
|
||||
},
|
||||
"publishConfig": {
|
||||
"registry": "http://localhost:5000"
|
||||
}
|
||||
}
|
9
packages/cli/README.md
Normal file
9
packages/cli/README.md
Normal file
@@ -0,0 +1,9 @@
|
||||
# `@automatisch/cli`
|
||||
|
||||
> TODO: description
|
||||
|
||||
## Usage
|
||||
|
||||
```
|
||||
// TODO: DEMONSTRATE API
|
||||
```
|
7
packages/cli/__tests__/cli.test.js
Normal file
7
packages/cli/__tests__/cli.test.js
Normal file
@@ -0,0 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
const cli = require('..');
|
||||
|
||||
describe('cli', () => {
|
||||
it('needs tests');
|
||||
});
|
6
packages/cli/bin/automatisch
Normal file
6
packages/cli/bin/automatisch
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env node
|
||||
const packageJson = require('../package');
|
||||
const version = packageJson.version;
|
||||
|
||||
console.log(`Automatisch@${version} CLI tool`);
|
||||
process.exit(0);
|
7
packages/cli/lib/cli.js
Normal file
7
packages/cli/lib/cli.js
Normal file
@@ -0,0 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = cli;
|
||||
|
||||
function cli() {
|
||||
// TODO
|
||||
}
|
32
packages/cli/package.json
Normal file
32
packages/cli/package.json
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"name": "@automatisch/cli",
|
||||
"version": "0.0.0",
|
||||
"description": "> TODO: description",
|
||||
"contributors": [
|
||||
{
|
||||
"name": "automatisch contributors",
|
||||
"url": "https://github.com/automatisch/automatisch/graphs/contributors"
|
||||
}
|
||||
],
|
||||
"homepage": "https://github.com/automatisch/automatisch#readme",
|
||||
"main": "lib/cli.js",
|
||||
"directories": {
|
||||
"bin": "bin",
|
||||
"lib": "lib",
|
||||
"test": "__tests__"
|
||||
},
|
||||
"files": [
|
||||
"lib",
|
||||
"bin"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/automatisch/automatisch.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "echo \"Error: run tests from root\" && exit 1"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/automatisch/automatisch/issues"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user