added monorepo lerna

This commit is contained in:
Christian Landgren 2020-12-06 00:18:01 +01:00
parent bfdb9ede20
commit 017a0ba242
10 changed files with 98 additions and 27 deletions

20
lerna-debug.log Normal file
View File

@ -0,0 +1,20 @@
0 silly argv { _: [ 'create' ],
0 silly argv lernaVersion: '3.22.1',
0 silly argv '$0': 'lerna',
0 silly argv name: 'app' }
1 notice cli v3.22.1
2 verbose rootPath /Users/cln/src/skolplattformen
3 warn ENOREMOTE No git remote found, skipping repository property
4 error Error: canceled
4 error at Interface.<anonymous> (/Users/cln/.nvm/versions/node/v10.11.0/lib/node_modules/lerna/node_modules/read/lib/read.js:66:13)
4 error at Interface.emit (events.js:182:13)
4 error at Interface._ttyWrite (readline.js:783:16)
4 error at ReadStream.onkeypress (readline.js:168:10)
4 error at ReadStream.emit (events.js:182:13)
4 error at emitKeys (internal/readline.js:424:14)
4 error at emitKeys.next (<anonymous>)
4 error at ReadStream.onData (readline.js:1022:36)
4 error at ReadStream.emit (events.js:182:13)
4 error at addChunk (_stream_readable.js:283:12)
4 error at readableAddChunk (_stream_readable.js:264:11)
4 error at ReadStream.Readable.push (_stream_readable.js:219:10)

6
lerna.json Normal file
View File

@ -0,0 +1,6 @@
{
"packages": [
"packages/*"
],
"version": "0.0.0"
}

View File

@ -1,24 +1,7 @@
{
"name": "skolplattformen",
"version": "1.0.0",
"description": "",
"main": "index.js",
"dependencies": {
"fetch-cookie": "^0.11.0",
"http-debug": "^0.1.2",
"moment": "^2.29.1",
"node-fetch": "^2.6.1"
},
"name": "root",
"private": true,
"devDependencies": {
"eslint": "^7.14.0",
"eslint-config-standard": "^16.0.2",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
"lerna": "^3.22.1"
}
}

View File

@ -1,5 +1,5 @@
{
"name": "skolplattformen",
"name": "skolplattformen-api",
"version": "1.0.0",
"lockfileVersion": 1,
"requires": true,
@ -822,11 +822,6 @@
"integrity": "sha512-f/wzC2QaWBs7t9IYqB4T3sR1xviIViXJRJTWBlx2Gf3g0Xi5vI7Yy4koXQ1c9OYDGHN9sBy1DQ2AB8fqZBWhUg==",
"dev": true
},
"http-debug": {
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/http-debug/-/http-debug-0.1.2.tgz",
"integrity": "sha1-qtv++ZvDnCBkOezhS5kEDFpLTW4="
},
"ignore": {
"version": "4.0.6",
"resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz",

23
packages/api/package.json Normal file
View File

@ -0,0 +1,23 @@
{
"name": "skolplattformen-api",
"version": "1.0.0",
"description": "",
"main": "index.js",
"dependencies": {
"fetch-cookie": "^0.11.0",
"moment": "^2.29.1",
"node-fetch": "^2.6.1"
},
"devDependencies": {
"eslint": "^7.14.0",
"eslint-config-standard": "^16.0.2",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
}

11
packages/app/README.md Normal file
View File

@ -0,0 +1,11 @@
# `app`
> TODO: description
## Usage
```
const app = require('app');
// TODO: DEMONSTRATE API
```

View File

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

7
packages/app/lib/app.js Normal file
View File

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

19
packages/app/package.json Normal file
View File

@ -0,0 +1,19 @@
{
"name": "skolplattformen-app",
"version": "0.0.1",
"description": "> TODO: description",
"author": "Christian Landgren <christian@landgren.nu>",
"homepage": "",
"license": "ISC",
"main": "lib/app.js",
"directories": {
"lib": "lib",
"test": "__tests__"
},
"files": [
"lib"
],
"scripts": {
"test": "echo \"Error: run tests from root\" && exit 1"
}
}