feat: install lerna

pull/10/head
sundowndev 2019-10-24 22:30:06 +02:00
parent ea235159fb
commit 5bb221ea75
4 changed files with 15 additions and 5 deletions

View File

@ -1,7 +1,7 @@
{ {
"name": "api-directory", "name": "client",
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": false,
"scripts": { "scripts": {
"serve": "vue-cli-service serve", "serve": "vue-cli-service serve",
"build": "vue-cli-service build", "build": "vue-cli-service build",

7
lerna.json Normal file
View File

@ -0,0 +1,7 @@
{
"packages": [
"./client",
"./server"
],
"version": "0.0.0"
}

View File

@ -4,7 +4,7 @@
"description": "Plus Eemien ou Héticien ? Le jeu qui ne fait pas rire les élèves.", "description": "Plus Eemien ou Héticien ? Le jeu qui ne fait pas rire les élèves.",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"install": "npm run server:install && npm run client:install", "bootstrap": "lerna bootstrap",
"server:install": "cd server && npm i", "server:install": "cd server && npm i",
"client:install": "cd client && npm i", "client:install": "cd client && npm i",
"client:build": "cd client && npm build", "client:build": "cd client && npm build",
@ -22,5 +22,8 @@
"bugs": { "bugs": {
"url": "https://github.com/sundowndev/HETICvsEEMI/issues" "url": "https://github.com/sundowndev/HETICvsEEMI/issues"
}, },
"homepage": "https://github.com/sundowndev/HETICvsEEMI#readme" "homepage": "https://github.com/sundowndev/HETICvsEEMI#readme",
"devDependencies": {
"lerna": "^3.16.4"
}
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "server", "name": "server",
"private": true, "private": false,
"version": "1.0.0", "version": "1.0.0",
"description": "", "description": "",
"main": "index.js", "main": "index.js",