cc-core-cli 1.0.117 → 1.0.119

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-core-cli",
3
- "version": "1.0.117",
3
+ "version": "1.0.119",
4
4
  "description": "Command Line Interface tool for generating project templates for the (Your Platform's Name) platform.",
5
5
  "main": "bin/index.js",
6
6
  "scripts": {
@@ -28,3 +28,9 @@ Thumbs.db
28
28
 
29
29
  # Environment file
30
30
  .env
31
+
32
+ # Log fiels
33
+ *.log
34
+
35
+ # Package lock file
36
+ package-lock.json
@@ -15,7 +15,7 @@
15
15
  "author": "",
16
16
  "license": "ISC",
17
17
  "dependencies": {
18
- "@shopstack/cc-admin-lib": "^2.5.177"
18
+ "@shopstack/cc-admin-lib": "^2.5.206"
19
19
  },
20
20
  "devDependencies": {
21
21
  "identity-obj-proxy": "^3.0.0",
@@ -17,6 +17,7 @@ storage/public/system/*
17
17
  !storage/public/system/menu/
18
18
  storage/public/system/menu/*
19
19
  !storage/public/system/menu/icons/
20
+ !storage/documents/
20
21
 
21
22
  # Generated by MacOS
22
23
  .DS_Store
@@ -39,3 +40,9 @@ Thumbs.db
39
40
 
40
41
  # Environment file
41
42
  .env
43
+
44
+ # Log fiels
45
+ *.log
46
+
47
+ # Package lock file
48
+ package-lock.json
@@ -17,7 +17,7 @@
17
17
  "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix"
18
18
  },
19
19
  "dependencies": {
20
- "@shopstack/cc-core-lib": "^2.5.193"
20
+ "@shopstack/cc-core-lib": "^2.5.234"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/bull": "^3.14.4",
@@ -253,6 +253,14 @@ async function bootstrap() {
253
253
  prefix: `/public`
254
254
  });
255
255
 
256
+ // Serve specific file for "/"
257
+ fastify.get("/", (request, reply) => {
258
+ console.log("Serving / from custom route");
259
+ reply
260
+ .type("text/html")
261
+ .sendFile("index.html", path.join(process.cwd(), "storage/documents"));
262
+ });
263
+
256
264
  _.set(CONST, "app", app);
257
265
  await initial(app);
258
266
 
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <meta charset="UTF-8">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+ <title>Document</title>
8
+ </head>
9
+
10
+ <body>
11
+ <h1>Welcome to Commerce Suite.</h1>
12
+ </body>
13
+
14
+ </html>