@solidstarters/create-solid-app 1.2.34 → 1.2.36

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
@@ -30,7 +30,7 @@ async function main() {
30
30
  }
31
31
 
32
32
  // Step 2: Setup the sub projects from the templates
33
- console.log(prettyOutput('Step 1','Setting up boilerplate for the backend'));
33
+ console.log(prettyOutput('\nStep 1','Setting up boilerplate for the backend'));
34
34
  const templatesPath = getSourceFolderPath('templates');
35
35
  await copyTemplate(templatesPath, targetPath, EXCLUDED_DIRS_FOR_INITIAL_COPY);
36
36
 
@@ -59,22 +59,27 @@ async function main() {
59
59
  console.log(chalk.green(`Project ${chalk.cyan(projectName)} created successfully!`));
60
60
  console.log(chalk.cyan(`\nEnsure the database is created and connection is established correctly.`));
61
61
  console.log(chalk.cyan(`\nNext steps:`));
62
- console.log(chalk.cyan(`Run the api:`));
63
- console.log(prettyOutput('',`cd ${projectName}/${TARGET_FOLDER_API}`));
64
- console.log(prettyOutput('','solid seed','This will seed the database with the required metadata'));
62
+ console.log(chalk.cyan(`\nRun the api:`));
63
+ console.log(prettyOutput(`cd ${projectName}/${TARGET_FOLDER_API}`,'Navigate into api directory'));
64
+ console.log(prettyOutput('solid seed','This will seed the database with the required metadata'));
65
65
 
66
66
  // Development mode (with watch )
67
- console.log(prettyOutput('', 'npm run solidx:dev', `Starts the backend in development mode with live reload on @http://localhost:${answers.solidApiPort}`));
67
+ console.log(prettyOutput('npm run solidx:dev', `Starts the backend in development mode with live reload on @http://localhost:${answers.solidApiPort}`));
68
68
 
69
69
  // Production mode
70
- console.log(prettyOutput('', 'npm run start', `Starts the backend in production mode on @http://localhost:${answers.solidApiPort}`));
70
+ console.log(prettyOutput('npm run build && npm run start', `Builds and starts the backend in production mode on @http://localhost:${answers.solidApiPort}`));
71
71
 
72
- console.log(prettyOutput('',`api documentation is available on @http://localhost:${answers.solidApiPort}/docs`));
72
+ console.log(chalk.cyan(`Api documentation is available on @http://localhost:${answers.solidApiPort}/docs`));
73
73
 
74
- // console.log(prettyOutput('','npm run start',`This will start the backend server @http://localhost:${answers.solidApiPort}`));
74
+ // console.log(prettyOutput('npm run start',`This will start the backend server @http://localhost:${answers.solidApiPort}`));
75
75
  console.log(chalk.cyan(`\nRun the frontend:`));
76
- console.log(prettyOutput('',`cd ${projectName}/${TARGET_FOLDER_UI}`));
77
- console.log(prettyOutput('','npm run dev',`This will start the frontend server @http://localhost:${answers.solidUiPort}`));
76
+ console.log(prettyOutput(`cd ${projectName}/${TARGET_FOLDER_UI}`,'Navigate into ui directory'));
77
+
78
+ // Development mode (with watch )
79
+ console.log(prettyOutput('npm run dev',`Starts the frontend in development mode with live reload on @http://localhost:${answers.solidUiPort}`));
80
+
81
+ // Production mode
82
+ console.log(prettyOutput('npm run build && npm run start', `Builds and starts the frontend in production mode on @http://localhost:${answers.solidUiPort}`));
78
83
  }
79
84
  catch (err) {
80
85
  console.error('Error:', err);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidstarters/create-solid-app",
3
- "version": "1.2.34",
3
+ "version": "1.2.36",
4
4
  "main": "index.js",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ require('../dist/main-cli');
@@ -52,4 +52,5 @@ pids
52
52
  report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
53
53
 
54
54
  media-uploads
55
- media-files-storage
55
+ media-files-storage
56
+ local_packages
@@ -40,4 +40,5 @@ yarn-error.log*
40
40
  *.tsbuildinfo
41
41
  next-env.d.ts
42
42
 
43
- public/themes
43
+ public/themes
44
+ local_packages
@@ -14,6 +14,8 @@ const nextConfig = {
14
14
  NEXTAUTH_URL: process.env.NEXTAUTH_URL,
15
15
  NEXT_PUBLIC_BACKEND_API_URL: process.env.NEXT_PUBLIC_BACKEND_API_URL,
16
16
  DB_LOCAL_URI: "mongodb://root:Unicorn3214@127.0.0.1:27017/bookit-v2",
17
+ SOLIDX_ON_APPLICATION_MOUNT_HANDLER:process.env.SOLIDX_ON_APPLICATION_MOUNT_HANDLER,
18
+
17
19
  DB_URI: "",
18
20
 
19
21
  NEXT_PUBLIC_ENABLE_CUSTOM_HEADER_FOOTER: process.env.NEXT_PUBLIC_ENABLE_CUSTOM_HEADER_FOOTER,
@@ -70,8 +70,8 @@
70
70
  "@types/react": "18.3.18",
71
71
  "@types/react-dom": "18.3.5",
72
72
  "@types/react-js-pagination": "^3.0.7",
73
- "next": "^14.2.7",
73
+ "next": "^14.2.35",
74
74
  "@types/node": "20.5.9",
75
75
  "@types/uuid": "^10.0.0"
76
76
  }
77
- }
77
+ }
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env bash
2
- npm install
3
- npm run build
4
- npm uninstall -g solid
5
- npm install -g .
@@ -1,27 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- # nvm
4
- export NVM_DIR="$HOME/.nvm"
5
- [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
6
- [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
7
-
8
- # Actual build.
9
- nvm use v21.2.0
10
- npm install
11
- npm run build
12
- npm uninstall -g solid
13
-
14
- # Get the current terminal user
15
- current_user=$(whoami)
16
-
17
- # Define the filename to search for
18
- filename="solid"
19
-
20
- # Construct the path to the user's home directory
21
- user_directory="/Users/$current_user/.nvm"
22
-
23
- # Find and delete the specified files under the user's home directory
24
- echo Deleting old executables...
25
- find "$user_directory" -name "$filename" -type l -print -delete
26
-
27
- npm install -g .
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env bash
2
- npm i
3
- npm run build
4
- rm ~/.nvm/versions/node/v22.13.1/bin/solid
5
- npm i -g
@@ -1,15 +0,0 @@
1
- @echo off
2
- echo Installing dependencies...
3
- call npm i
4
-
5
- echo Building the project...
6
- call npm run build
7
-
8
- echo Removing Solid binary...
9
- del "C:\Users\Lenovo\AppData\Roaming\npm\solid" 2>nul
10
-
11
- echo Installing global dependencies...
12
- call npm i -g
13
-
14
- echo Refresh complete!
15
- pause
@@ -1,9 +0,0 @@
1
- # Upgrade solid api dependencies
2
- npm upgrade --prefix solid-api @solidstarters/solid-core
3
- npm upgrade --prefix solid-api @solidstarters/solid-code-builder
4
- # Upgrade solid ui dependencies
5
- npm upgrade --prefix solid-ui @solidstarters/solid-core-ui
6
- ## copy the theme files from node modules to the public/themes folder within solid-ui
7
- npm run --prefix solid-ui postinstall
8
- # cd into solid-api directory and run the rebuild.sh & solid seed command
9
- cd solid-api && ./rebuild.sh && solid seed && cd ..