create-lupine 1.0.4 → 1.0.5

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/index.js CHANGED
@@ -123,6 +123,8 @@ async function init() {
123
123
  console.log(`\nScaffolding project in ${root}...`);
124
124
 
125
125
  copyDir(commonDir, root);
126
+ fs.renameSync(path.join(root, '_gitignore'), path.join(root, '.gitignore'));
127
+ fs.renameSync(path.join(root, '_env'), path.join(root, '.env'));
126
128
 
127
129
  const appsDir = path.join(root, 'apps');
128
130
  if (!fs.existsSync(appsDir)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-lupine",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Scaffolding tool for Lupine.js projects",
5
5
  "bin": {
6
6
  "create-lupine": "index.js"
@@ -0,0 +1,58 @@
1
+ # start with WEB. will be exposed to the frontend file
2
+ WEB.API_PORT=11080
3
+ WEB.API_BASE_URL=
4
+
5
+ # start with “app_name.” will be assigned to the individual app's env object
6
+ # demo.app.WEB.test2=11aa
7
+ # demo.app.test2=11aa
8
+
9
+ # used by Server Side Renderring for fetch (can't be localhost)
10
+ API_BASE_URL=http://127.0.0.1:11080
11
+ HTTP_PORT=11080
12
+ HTTPS_PORT=11083
13
+ #'127.0.0.1' or for all ips: "::"
14
+ BIND_IP=0.0.0.0
15
+
16
+ NODE_TLS_REJECT_UNAUTHORIZED=0
17
+
18
+ LOG_FOLDER=./dist/log
19
+ LOG_FILENAME=log-%index%.log
20
+ # size can be ?kb or ?mb
21
+ LOG_MAX_SIZE=1mb
22
+ LOG_MAX_COUNT=5
23
+ LOG_OUT_TO_FILE=true
24
+ LOG_OUT_TO_CONSOLE=true
25
+
26
+ # use following command to generate random keys
27
+ #node -e "console.log(require('node:crypto').randomBytes(32).toString('hex'))"
28
+ # use following command to generate more complex strings
29
+ #node -e "l=32;c='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_!@&?-#$';console.log([...require('node:crypto').randomBytes(l)].map(x => c[x%c.length]).join(''))"
30
+
31
+ # server path for web (appName_web), server (server) and data (appName_data)
32
+ SERVER_ROOT_PATH=dist/server_root
33
+ ADMIN_USER=admin
34
+ ADMIN_PASS=
35
+ CRYPTO_KEY=
36
+
37
+ # for development
38
+ DEV_ADMIN_USER=admin
39
+ DEV_ADMIN_PASS=
40
+ DEV_CRYPTO_KEY=
41
+ DEV_TOKEN=
42
+
43
+ # define apps on the same port with different domains (locally or on a real server)
44
+ # in local, the domains should be added to the /etc/hosts (or C:\Windows\System32\drivers\etc\hosts) file
45
+ APPS={APP-NAME}
46
+ # below is empty that means all domains will come to this app
47
+ DOMAINS:{APP-NAME}=
48
+
49
+ # Https Keys and Crts are for domains (not apps), use following command to generate
50
+ # mkcert example.com "*.example.com" localhost 127.0.0.1 ::1
51
+ SSL_KEY_PATH=dev/example.com+4-key.pem
52
+ SSL_CRT_PATH=dev/example.com+4.pem
53
+ HTTPS_KEY_PATH:{APP-NAME}=dev/example.com+4-key.pem
54
+ HTTPS_CRT_PATH:{APP-NAME}=dev/example.com+4.pem
55
+
56
+ DB_TYPE=sqlite
57
+ DB_FILENAME=sqlite3.db
58
+ DB_TYPE:{APP-NAME}=sqlite
@@ -0,0 +1,25 @@
1
+ # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2
+
3
+ # dependencies
4
+ node_modules
5
+ /.pnp
6
+ .pnp.js
7
+ package-lock.json
8
+
9
+ # misc
10
+ .DS_Store
11
+
12
+ # debug
13
+ npm-debug.log*
14
+ yarn-debug.log*
15
+ yarn-error.log*
16
+ .pnpm-debug.log*
17
+
18
+ # local env files
19
+ .env
20
+
21
+ # typescript
22
+ *.tsbuildinfo
23
+
24
+ # build
25
+ /dist