@fullstackunicorn/create-root 1.0.24 → 1.0.26

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.
@@ -1,20 +1,3 @@
1
- yarn cmd website workspace-cleanup
2
- yarn cmd website develop-cleanup
3
-
4
- yarn cmd website local-config
5
1
  yarn cmd website local-push
6
- yarn cmd website local-pull
7
2
  yarn cmd website local-assets
8
3
  yarn cmd website local-workers
9
-
10
- yarn cmd website sv1-config
11
- yarn cmd website sv1-push
12
- yarn cmd website sv1-pull
13
- yarn cmd website sv1-assets
14
- yarn cmd website sv1-workers
15
-
16
- yarn cmd website stage-config
17
- yarn cmd website stage-push
18
- yarn cmd website stage-pull
19
- yarn cmd website stage-assets
20
- yarn cmd website stage-workers
@@ -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-config"
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
- # Enter the new folder
3
- cd foldername
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
- # Run initialize all
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
- echo "✅ Initialize All done!"
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
- # Edit config
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
- # TERMINAL 1 → MANAGER
17
- cd manager
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
- # TERMINAL 2 → BACKEND
22
- cd backend
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-config
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-config`)
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.24",
2
+ "version": "1.0.26",
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",