chore: Add monorepo setup

This commit is contained in:
Ali BARIN
2021-10-01 19:38:52 +02:00
commit b9a041b7b8
7 changed files with 88 additions and 0 deletions

14
lerna.json Normal file
View 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
View 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
View File

@@ -0,0 +1,9 @@
# `@automatisch/cli`
> TODO: description
## Usage
```
// TODO: DEMONSTRATE API
```

View File

@@ -0,0 +1,7 @@
'use strict';
const cli = require('..');
describe('cli', () => {
it('needs tests');
});

View 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
View File

@@ -0,0 +1,7 @@
'use strict';
module.exports = cli;
function cli() {
// TODO
}

32
packages/cli/package.json Normal file
View 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"
}
}