@fullstackunicorn/create-root 1.0.25 → 1.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/root.fullstackunicorn.dev/assets/package.md +12 -3
- package/assets/root.fullstackunicorn.dev/config.cmd.sh +4 -3
- package/assets/root.fullstackunicorn.dev/frontend/templates/root.js +2 -0
- package/assets/root.fullstackunicorn.dev/package.md +60 -24
- package/modules/init.js +4 -3
- package/package.json +1 -1
|
@@ -1,11 +1,19 @@
|
|
|
1
|
+
Create-root local flow:
|
|
2
|
+
|
|
3
|
+
```bash
|
|
4
|
+
yarn cmd website local-push
|
|
5
|
+
yarn cmd website local-assets
|
|
6
|
+
yarn cmd website local-workers
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Other supported commands:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
1
12
|
yarn cmd website workspace-cleanup
|
|
2
13
|
yarn cmd website develop-cleanup
|
|
3
14
|
|
|
4
15
|
yarn cmd website local-config
|
|
5
|
-
yarn cmd website local-push
|
|
6
16
|
yarn cmd website local-pull
|
|
7
|
-
yarn cmd website local-assets
|
|
8
|
-
yarn cmd website local-workers
|
|
9
17
|
|
|
10
18
|
yarn cmd website sv1-config
|
|
11
19
|
yarn cmd website sv1-push
|
|
@@ -18,3 +26,4 @@ yarn cmd website stage-push
|
|
|
18
26
|
yarn cmd website stage-pull
|
|
19
27
|
yarn cmd website stage-assets
|
|
20
28
|
yarn cmd website stage-workers
|
|
29
|
+
```
|
|
@@ -128,13 +128,14 @@ initialize_all() {
|
|
|
128
128
|
echo "✅ Initialize All done!"
|
|
129
129
|
echo "👉 Now edit the root.config.app.js file"
|
|
130
130
|
echo "yarn root upgrade"
|
|
131
|
+
echo "👉 Start /vagrant/minderable/api.websites.minderable.com in a new terminal with yarn start"
|
|
131
132
|
echo "👉 Start /manager in a new terminal with yarn start"
|
|
132
|
-
echo "👉 Start /backend in a new terminal with yarn start"
|
|
133
133
|
echo "👉 Put your icons and trademarks in workspace/volume/media"
|
|
134
134
|
echo "cd assets"
|
|
135
|
-
echo "yarn cmd website local-
|
|
135
|
+
echo "yarn cmd website local-push"
|
|
136
136
|
echo "yarn cmd website local-assets"
|
|
137
137
|
echo "yarn cmd website local-workers"
|
|
138
|
+
echo "👉 Start /backend in a new terminal with yarn start"
|
|
138
139
|
echo "👉 Start /frontend in a new terminal with yarn start"
|
|
139
140
|
}
|
|
140
141
|
# ============================================================
|
|
@@ -179,4 +180,4 @@ if declare -F "$cmd" >/dev/null && [[ "$cmd" != "info" ]]; then
|
|
|
179
180
|
else
|
|
180
181
|
info "$cmd"
|
|
181
182
|
fi
|
|
182
|
-
# ============================================================
|
|
183
|
+
# ============================================================
|
|
@@ -8,6 +8,8 @@ export const getRoot = (s, c, t) => {
|
|
|
8
8
|
root.main = {}
|
|
9
9
|
root.main.title = [s.fs28, s.lh32, s.fw500, c.item_NN_B600]
|
|
10
10
|
root.main.description = [s.fs16, s.lh24, s.fw500, c.item_NN_B600]
|
|
11
|
+
root.page = {}
|
|
12
|
+
root.page.title = [s.fs28, s.lh32, s.fw500, c.item_NN_B600]
|
|
11
13
|
|
|
12
14
|
// text button font
|
|
13
15
|
root.button = {}
|
|
@@ -1,40 +1,76 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
1. Create the project in the target parent folder
|
|
2
|
+
|
|
3
|
+
```bash
|
|
4
|
+
cd /vagrant/parent-folder
|
|
5
|
+
yarn create @fullstackunicorn/root foldername
|
|
6
|
+
```
|
|
7
|
+
|
|
8
|
+
2. Enter the new folder and initialize everything
|
|
4
9
|
|
|
5
|
-
|
|
10
|
+
```bash
|
|
11
|
+
cd foldername
|
|
6
12
|
yarn initialize:all
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
3. Before doing anything else, check all existing `root.config.app.js` files in the workspace and pick a free `app.dev.port`
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
find /vagrant -path '*/root.config.app.js' | sort
|
|
19
|
+
rg -n "app\\.dev\\.port\\s*=" /vagrant --glob 'root.config.app.js'
|
|
20
|
+
```
|
|
7
21
|
|
|
8
|
-
|
|
9
|
-
echo "👉 Now edit the root.config.app.js file"
|
|
22
|
+
4. Replace `root.config.app.js` with the prepared project config and adjust the port if needed
|
|
10
23
|
|
|
11
|
-
|
|
12
|
-
|
|
24
|
+
5. Put prepared media in the source folder
|
|
25
|
+
|
|
26
|
+
```txt
|
|
27
|
+
workspace/volume/media/icons
|
|
28
|
+
workspace/volume/media/trademarks
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
6. Apply the config
|
|
32
|
+
|
|
33
|
+
```bash
|
|
13
34
|
yarn root upgrade
|
|
35
|
+
```
|
|
14
36
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
37
|
+
7. Start the local workspace server
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
cd /vagrant/minderable/api.websites.minderable.com
|
|
18
41
|
yarn start
|
|
42
|
+
```
|
|
19
43
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
44
|
+
8. Start the project manager in another terminal
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
cd manager
|
|
23
48
|
yarn start
|
|
49
|
+
```
|
|
24
50
|
|
|
25
|
-
|
|
26
|
-
# MEDIA
|
|
27
|
-
# 👉 Put your icons and trademarks in:
|
|
28
|
-
# workspace/volume/media
|
|
51
|
+
9. Run the local workspace flow
|
|
29
52
|
|
|
30
|
-
|
|
31
|
-
# TERMINAL 3 → ASSETS
|
|
53
|
+
```bash
|
|
32
54
|
cd assets
|
|
33
|
-
yarn cmd website local-
|
|
55
|
+
yarn cmd website local-push
|
|
34
56
|
yarn cmd website local-assets
|
|
35
57
|
yarn cmd website local-workers
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
10. Start the project apps when needed
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
cd backend
|
|
64
|
+
yarn start
|
|
65
|
+
```
|
|
36
66
|
|
|
37
|
-
|
|
38
|
-
# TERMINAL 4 → FRONTEND
|
|
67
|
+
```bash
|
|
39
68
|
cd frontend
|
|
40
|
-
yarn start
|
|
69
|
+
yarn start
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Notes:
|
|
73
|
+
|
|
74
|
+
- `local-push`, `local-assets`, and `local-workers` use `api.websites.minderable.com` on `localhost:9030`
|
|
75
|
+
- `local-workers` also needs the project manager running on `localhost:app.dev.port+2`
|
|
76
|
+
- do not use `local-config` in this local create-root flow
|
package/modules/init.js
CHANGED
|
@@ -21,17 +21,18 @@ class Init {
|
|
|
21
21
|
F3.logs(`cd ${this.def.folders.target} && yarn initialize:all`)
|
|
22
22
|
F3.logs(`👉 Now edit the root.config.app.js file`)
|
|
23
23
|
F3.logs(`yarn root upgrade`)
|
|
24
|
+
F3.logs(`👉 Start /vagrant/minderable/api.websites.minderable.com in a new terminal with yarn start`)
|
|
24
25
|
F3.logs(`👉 Start /manager in a new terminal with yarn start`)
|
|
25
|
-
F3.logs(`👉 Start /backend in a new terminal with yarn start`)
|
|
26
26
|
F3.logs(`👉 Put your icons and trademarks in workspace/volume/media`)
|
|
27
27
|
F3.logs(`cd ${this.def.folders.target}/assets`)
|
|
28
|
-
F3.logs(`yarn cmd website local-
|
|
28
|
+
F3.logs(`yarn cmd website local-push`)
|
|
29
29
|
F3.logs(`yarn cmd website local-assets`)
|
|
30
30
|
F3.logs(`yarn cmd website local-workers`)
|
|
31
|
+
F3.logs(`👉 Start /backend in a new terminal with yarn start`)
|
|
31
32
|
F3.logs(`👉 Start /frontend in a new terminal with yarn start`)
|
|
32
33
|
|
|
33
34
|
} catch (e) { F3.catch.throw(e) }
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
37
|
|
|
37
|
-
export const init = new Init()
|
|
38
|
+
export const init = new Init()
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.0.
|
|
2
|
+
"version": "1.0.27",
|
|
3
3
|
"name": "@fullstackunicorn/create-root",
|
|
4
4
|
"author": "lucanigido (https://fullstackunicorn.dev/author/lucanigido)",
|
|
5
5
|
"description": "create-root: bootstrapper that writes config assets and installs @fullstackunicorn/root",
|