@spacemade/ui 0.0.1 → 0.0.3

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/app.sh CHANGED
@@ -122,7 +122,9 @@ write_package_json() {
122
122
  \"generate\": \"${CLI_BIN} generate ${schema_script_path}\"
123
123
  },
124
124
  \"dependencies\": {},
125
- \"devDependencies\": {}
125
+ \"devDependencies\": {
126
+ \"typescript\": \"^5.9.2\"
127
+ }
126
128
  }"
127
129
  }
128
130
 
@@ -139,6 +141,20 @@ yarn-debug.log*
139
141
  yarn-error.log*"
140
142
  }
141
143
 
144
+ write_dockerignore() {
145
+ write_file "${ROOT_DIR}/.dockerignore" "node_modules
146
+ api/node_modules
147
+ .next
148
+ api/.next
149
+ .git
150
+ dist
151
+ build
152
+ *.tsbuildinfo
153
+ npm-debug.log*
154
+ yarn-debug.log*
155
+ yarn-error.log*"
156
+ }
157
+
142
158
  write_env_example() {
143
159
  write_file "${ROOT_DIR}/.env.example" "NEXT_PUBLIC_APP_NAME=${APP_NAME}
144
160
  NEXT_PUBLIC_APP_BASE_PATH=/admin
@@ -498,6 +514,7 @@ init_app() {
498
514
 
499
515
  write_package_json
500
516
  write_gitignore
517
+ write_dockerignore
501
518
  write_env_example
502
519
  write_runtime_env
503
520
  write_schema
@@ -542,6 +559,9 @@ install_packages() {
542
559
  write_package_json
543
560
  fi
544
561
 
562
+ echo "write package dependency metadata"
563
+ npm install --package-lock-only "$UI_PACKAGE" "$API_PACKAGE"
564
+
545
565
  if maybe_link_packages; then
546
566
  return
547
567
  fi
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spacemade/ui",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "private": false,
5
5
  "description": "Reusable SaaS bootstrap with optional AI modules.",
6
6
  "bin": {
@@ -182,6 +182,18 @@ function validateSchema(schema) {
182
182
  function createDeploymentScaffold(schema, force) {
183
183
  const appName = schema?.app?.name || path.basename(cwd) || 'appstudio-app'
184
184
 
185
+ writeGeneratedFile('.dockerignore', `node_modules
186
+ api/node_modules
187
+ .next
188
+ api/.next
189
+ .git
190
+ dist
191
+ build
192
+ *.tsbuildinfo
193
+ npm-debug.log*
194
+ yarn-debug.log*
195
+ yarn-error.log*`, force)
196
+
185
197
  writeGeneratedFile('docker-compose.yml', `services:
186
198
  app:
187
199
  build: