@solidstarters/create-solid-app 1.2.35 → 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/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 -9
- package/templates/nest-template/refresh.bat +0 -15
- package/templates/upgrade.sh +0 -9
- package/upgrade-local.sh +0 -69
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 ..
|
package/upgrade-local.sh
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
|
|
3
|
-
set -e
|
|
4
|
-
|
|
5
|
-
# Ensure required environment variables are set
|
|
6
|
-
if [[ -z "$SOLID_CORE_MODULE_PATH" || -z "$SOLID_UI_PATH" ]]; then
|
|
7
|
-
echo "Error: SOLID_CORE_MODULE_PATH and SOLID_UI_PATH environment variables must be set."
|
|
8
|
-
exit 1
|
|
9
|
-
fi
|
|
10
|
-
|
|
11
|
-
pack_and_install() {
|
|
12
|
-
local PACKAGE_PATH=$1
|
|
13
|
-
local INSTALL_PATH=$2
|
|
14
|
-
|
|
15
|
-
# 🔥 Delete old .tgz files before packing
|
|
16
|
-
rm -f *.tgz
|
|
17
|
-
|
|
18
|
-
echo "Packing $PACKAGE_PATH"
|
|
19
|
-
pushd "$PACKAGE_PATH" > /dev/null || exit 1
|
|
20
|
-
npm pack
|
|
21
|
-
local PACKAGE_TGZ=$(ls *.tgz | tail -n 1)
|
|
22
|
-
popd > /dev/null || exit 1
|
|
23
|
-
|
|
24
|
-
echo "Installing $PACKAGE_TGZ into $INSTALL_PATH"
|
|
25
|
-
pushd "$INSTALL_PATH" > /dev/null || exit 1
|
|
26
|
-
npm i "$PACKAGE_PATH/$PACKAGE_TGZ"
|
|
27
|
-
popd > /dev/null || exit 1
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
# Handle arguments
|
|
31
|
-
build_core=false
|
|
32
|
-
build_ui=false
|
|
33
|
-
skip_seed=false
|
|
34
|
-
|
|
35
|
-
while [[ "$#" -gt 0 ]]; do
|
|
36
|
-
case "$1" in
|
|
37
|
-
--core) build_core=true ;;
|
|
38
|
-
--ui) build_ui=true ;;
|
|
39
|
-
--skip-seed) skip_seed=true ;;
|
|
40
|
-
*) echo "Unknown option: $1"; exit 1 ;;
|
|
41
|
-
esac
|
|
42
|
-
shift
|
|
43
|
-
done
|
|
44
|
-
|
|
45
|
-
# Default behavior: build both if no args given
|
|
46
|
-
if [[ $build_core == false && $build_ui == false ]]; then
|
|
47
|
-
build_core=true
|
|
48
|
-
build_ui=true
|
|
49
|
-
fi
|
|
50
|
-
|
|
51
|
-
if [[ $build_core == true ]]; then
|
|
52
|
-
echo "=== Building & installing solid-core-module into solid-api ==="
|
|
53
|
-
pack_and_install "$SOLID_CORE_MODULE_PATH" "./solid-api"
|
|
54
|
-
fi
|
|
55
|
-
|
|
56
|
-
if [[ $build_ui == true ]]; then
|
|
57
|
-
echo "=== Building & installing solid-ui into solid-ui ==="
|
|
58
|
-
pack_and_install "$SOLID_UI_PATH" "./solid-ui"
|
|
59
|
-
fi
|
|
60
|
-
|
|
61
|
-
echo "✅ Done, upgrading from local dependencies."
|
|
62
|
-
if [[ $build_core == true ]]; then
|
|
63
|
-
if [[ $skip_seed == false ]]; then
|
|
64
|
-
cd ./solid-api
|
|
65
|
-
./rebuild.sh
|
|
66
|
-
solid seed
|
|
67
|
-
echo "✅ Solid seed completed."
|
|
68
|
-
fi
|
|
69
|
-
fi
|