Skip to content

Commit b1e290e

Browse files
committed
refactoring project configuration
1 parent f7a4ab8 commit b1e290e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+34091
-6853
lines changed

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
14

Makefile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
STACK_NAME="mp"
2+
3+
bootstrap:
4+
lerna bootstrap
5+
6+
run:
7+
lerna run serve
8+
9+
docker-build:
10+
docker-compose -p ${STACK_NAME} build
11+
12+
docker-start:
13+
docker-compose -p ${STACK_NAME} up -d --remove-orphans
14+
15+
docker-stop:
16+
docker-compose -p ${STACK_NAME} stop
17+
18+
docker-down:
19+
docker-compose -p ${STACK_NAME} down -v

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
11
# vue-microportal
22
Microfrontend example with vuejs and single-spa.
33

4+
* node 14
5+
* make
6+
* docker
7+
* docker-compose
8+
49
# Usage
510

611
Execute the commands below inside all folders:
712
```bash
8-
$ npm i
9-
$ npm run serve
13+
$ nvm use
14+
$ make bootstrap
15+
$ make run
1016
```
1117

1218
# Docker
1319

1420
If you prefer, use docker to start all the projects, run these commands:
1521

1622
```bash
17-
$ ./mp.sh start
23+
$ make start
1824
```
1925

2026
___

docker-compose.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,25 @@ version: '3'
33
services:
44
portal-ui:
55
build:
6-
context: ./portal
6+
context: ./packages/portal
77
networks:
88
- mp
99

1010
dashboard-ui:
1111
build:
12-
context: ./dashboard
12+
context: ./packages/dashboard
1313
networks:
1414
- mp
1515

1616
settings-ui:
1717
build:
18-
context: ./settings
18+
context: ./packages/settings
1919
networks:
2020
- mp
2121

2222
root-ui:
2323
build:
24-
context: ./root
24+
context: ./packages/root
2525
networks:
2626
- mp
2727

@@ -35,7 +35,7 @@ services:
3535
ports:
3636
- '80:80'
3737
volumes:
38-
- ./proxy/nginx.conf:/etc/nginx/nginx.conf
38+
- ./docker/proxy/nginx.conf:/etc/nginx/nginx.conf
3939
networks:
4040
- mp
4141

File renamed without changes.

lerna.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"packages": [
3+
"packages/*"
4+
],
5+
"version": "0.0.0"
6+
}

package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "root",
3+
"private": true,
4+
"devDependencies": {
5+
"lerna": "^4.0.0"
6+
}
7+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)