@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 +15 -10
- package/package.json +1 -1
- package/templates/nest-template/bin/solid +2 -0
- package/templates/nest-template/dot-templates/dot.dockerignore.template +1 -0
- package/templates/nest-template/dot-templates/dot.gitignore.template +2 -1
- package/templates/next-template/dot-templates/dot.gitignore.template +2 -1
- package/templates/next-template/next.config.js +2 -0
- package/templates/next-template/package.json +2 -2
- package/templates/nest-template/rebuild-cli-ubuntu.sh +0 -5
- package/templates/nest-template/rebuild-cli.sh +0 -27
- package/templates/nest-template/rebuild.sh +0 -5
- package/templates/nest-template/refresh.bat +0 -15
- package/templates/upgrade.sh +0 -9
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('
|
|
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(
|
|
63
|
-
console.log(prettyOutput(
|
|
64
|
-
console.log(prettyOutput('
|
|
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('
|
|
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('
|
|
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(
|
|
72
|
+
console.log(chalk.cyan(`Api documentation is available on @http://localhost:${answers.solidApiPort}/docs`));
|
|
73
73
|
|
|
74
|
-
// console.log(prettyOutput('
|
|
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(
|
|
77
|
-
|
|
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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
**/node_modules
|
|
@@ -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,
|
|
@@ -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,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
|
package/templates/upgrade.sh
DELETED
|
@@ -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 ..
|