create-satin 0.1.0-beta.0 → 0.1.0-beta.2
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": "create-satin",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.2",
|
|
4
4
|
"description": "Create a Satin iPhone Home Screen app.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"oxlint": "^1.79.0"
|
|
33
33
|
},
|
|
34
|
+
"homepage": "https://satin.build",
|
|
34
35
|
"scripts": {
|
|
35
36
|
"build": "node scripts/build.mjs",
|
|
36
37
|
"typecheck": "node --check bin/create-satin.mjs && node --check scripts/build.mjs",
|
|
@@ -10,18 +10,20 @@ Use Node 22.12 or later in the 22.x series, or Node 24 or later, and pnpm 10. Th
|
|
|
10
10
|
pnpm install --frozen-lockfile
|
|
11
11
|
PREVIEW_DIR="$(mktemp -d "${TMPDIR:-/tmp}/satin-preview.XXXXXX")"
|
|
12
12
|
mkdir -p "$PREVIEW_DIR/packages" "$PREVIEW_DIR/scaffolder"
|
|
13
|
+
KIT_ARCHIVE="$(node -p "const { name, version } = require('./packages/pwakit/package.json'); name.replace(/^@/, '').replaceAll('/', '-') + '-' + version + '.tgz'")"
|
|
14
|
+
CREATE_ARCHIVE="$(node -p "const { name, version } = require('./packages/create-pwakit/package.json'); name.replace(/^@/, '').replaceAll('/', '-') + '-' + version + '.tgz'")"
|
|
13
15
|
pnpm --filter @satinhq/kit pack --pack-destination "$PREVIEW_DIR/packages"
|
|
14
16
|
pnpm --filter create-satin pack --pack-destination "$PREVIEW_DIR/packages"
|
|
15
|
-
tar -xzf "$PREVIEW_DIR/packages
|
|
17
|
+
tar -xzf "$PREVIEW_DIR/packages/$CREATE_ARCHIVE" -C "$PREVIEW_DIR/scaffolder"
|
|
16
18
|
```
|
|
17
19
|
|
|
18
|
-
Packing builds the framework and copies the current starter and guide into the scaffolder. The filenames
|
|
20
|
+
Packing builds the framework and copies the current starter and guide into the scaffolder. The archive filenames are derived from the package manifests, so the commands follow the configured package names and version. Keep the temporary directory while using this preview, since the app's local dependency points into it.
|
|
19
21
|
|
|
20
22
|
In the same shell, create the app outside the repository and install its dependencies:
|
|
21
23
|
|
|
22
24
|
```sh
|
|
23
25
|
cd "$PREVIEW_DIR"
|
|
24
|
-
node scaffolder/package/bin/create-satin.mjs my-app --yes --name "My App" --id
|
|
26
|
+
node scaffolder/package/bin/create-satin.mjs my-app --yes --name "My App" --id my-app --satin-package "$PREVIEW_DIR/packages/$KIT_ARCHIVE"
|
|
25
27
|
cd my-app
|
|
26
28
|
npm install
|
|
27
29
|
npm run typecheck
|