commit b9a041b7b80d92e7c146d803116cab6831623899 Author: Ali BARIN Date: Fri Oct 1 19:38:52 2021 +0200 chore: Add monorepo setup diff --git a/lerna.json b/lerna.json new file mode 100644 index 00000000..40649715 --- /dev/null +++ b/lerna.json @@ -0,0 +1,14 @@ +{ + "packages": [ + "packages/*" + ], + "private": true, + "version": "independent", + "npmClient": "yarn", + "useWorkspaces": true, + "command": { + "publish": { + "registry": "http://localhost:5000" + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 00000000..264db6df --- /dev/null +++ b/package.json @@ -0,0 +1,13 @@ +{ + "name": "@automatisch/root", + "private": true, + "workspaces": [ + "packages/*" + ], + "devDependencies": { + "lerna": "^4.0.0" + }, + "publishConfig": { + "registry": "http://localhost:5000" + } +} diff --git a/packages/cli/README.md b/packages/cli/README.md new file mode 100644 index 00000000..8c2b8f9c --- /dev/null +++ b/packages/cli/README.md @@ -0,0 +1,9 @@ +# `@automatisch/cli` + +> TODO: description + +## Usage + +``` +// TODO: DEMONSTRATE API +``` diff --git a/packages/cli/__tests__/cli.test.js b/packages/cli/__tests__/cli.test.js new file mode 100644 index 00000000..79a6562a --- /dev/null +++ b/packages/cli/__tests__/cli.test.js @@ -0,0 +1,7 @@ +'use strict'; + +const cli = require('..'); + +describe('cli', () => { + it('needs tests'); +}); diff --git a/packages/cli/bin/automatisch b/packages/cli/bin/automatisch new file mode 100644 index 00000000..be79ccac --- /dev/null +++ b/packages/cli/bin/automatisch @@ -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); diff --git a/packages/cli/lib/cli.js b/packages/cli/lib/cli.js new file mode 100644 index 00000000..af3d5964 --- /dev/null +++ b/packages/cli/lib/cli.js @@ -0,0 +1,7 @@ +'use strict'; + +module.exports = cli; + +function cli() { + // TODO +} diff --git a/packages/cli/package.json b/packages/cli/package.json new file mode 100644 index 00000000..470fa4fc --- /dev/null +++ b/packages/cli/package.json @@ -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" + } +}