create-rari-app 0.2.10 → 0.2.12
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/dist/index.mjs
CHANGED
|
@@ -92,9 +92,6 @@ async function createProject(options) {
|
|
|
92
92
|
s.start("Installing dependencies...");
|
|
93
93
|
await installDependencies(projectPath, options.packageManager);
|
|
94
94
|
s.stop("Dependencies installed.");
|
|
95
|
-
s.start("Building project...");
|
|
96
|
-
await buildProject(projectPath, options.packageManager);
|
|
97
|
-
s.stop("Project built.");
|
|
98
95
|
}
|
|
99
96
|
} catch (error) {
|
|
100
97
|
s.stop("Error occurred.");
|
|
@@ -149,19 +146,6 @@ async function installDependencies(projectPath, packageManager) {
|
|
|
149
146
|
child.on("error", reject);
|
|
150
147
|
});
|
|
151
148
|
}
|
|
152
|
-
async function buildProject(projectPath, packageManager) {
|
|
153
|
-
return new Promise((resolve, reject) => {
|
|
154
|
-
const child = spawn(packageManager, ["run", "build"], {
|
|
155
|
-
cwd: projectPath,
|
|
156
|
-
stdio: "pipe"
|
|
157
|
-
});
|
|
158
|
-
child.on("close", (code) => {
|
|
159
|
-
if (code === 0) resolve();
|
|
160
|
-
else reject(/* @__PURE__ */ new Error(`${packageManager} run build failed with code ${code}`));
|
|
161
|
-
});
|
|
162
|
-
child.on("error", reject);
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
149
|
main().catch((error) => {
|
|
166
150
|
console.error(pc.red("Error:"), error.message);
|
|
167
151
|
process.exit(1);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-rari-app",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.12",
|
|
5
5
|
"description": "Create Runtime Accelerated Rendering Infrastructure (Rari) applications with no build configuration",
|
|
6
6
|
"author": "Ryan Skinner",
|
|
7
7
|
"license": "MIT",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"project-template"
|
|
32
32
|
],
|
|
33
33
|
"bin": {
|
|
34
|
-
"create-rari-app": "dist/index.
|
|
34
|
+
"create-rari-app": "dist/index.mjs"
|
|
35
35
|
},
|
|
36
36
|
"files": [
|
|
37
37
|
"dist",
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"picocolors": "^1.1.1"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@types/node": "^25.0.
|
|
54
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
55
|
-
"eslint": "^9.39.
|
|
56
|
-
"oxlint": "^1.
|
|
53
|
+
"@types/node": "^25.0.3",
|
|
54
|
+
"@typescript/native-preview": "7.0.0-dev.20251219.1",
|
|
55
|
+
"eslint": "^9.39.2",
|
|
56
|
+
"oxlint": "^1.34.0",
|
|
57
57
|
"tsdown": "^0.17.3"
|
|
58
58
|
}
|
|
59
59
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"scripts": {
|
|
11
11
|
"build": "{{PACKAGE_MANAGER}} run clean && {{PACKAGE_MANAGER}} run typecheck && vite build",
|
|
12
12
|
"dev": "vite",
|
|
13
|
+
"predev": "{{PACKAGE_MANAGER}} run build",
|
|
13
14
|
"start": "NODE_ENV=production rari start",
|
|
14
15
|
"deploy:railway": "rari deploy railway",
|
|
15
16
|
"deploy:render": "rari deploy render",
|
|
@@ -25,14 +26,14 @@
|
|
|
25
26
|
},
|
|
26
27
|
"devDependencies": {
|
|
27
28
|
"@tailwindcss/vite": "^4.1.18",
|
|
28
|
-
"@types/node": "^25.0.
|
|
29
|
+
"@types/node": "^25.0.3",
|
|
29
30
|
"@types/react": "^19.2.7",
|
|
30
31
|
"@types/react-dom": "^19.2.3",
|
|
31
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
32
|
+
"@typescript/native-preview": "7.0.0-dev.20251219.1",
|
|
32
33
|
"@vitejs/plugin-react": "^5.1.2",
|
|
33
|
-
"eslint": "^9.39.
|
|
34
|
-
"oxlint": "^1.
|
|
35
|
-
"rolldown-vite": "^7.
|
|
34
|
+
"eslint": "^9.39.2",
|
|
35
|
+
"oxlint": "^1.34.0",
|
|
36
|
+
"rolldown-vite": "^7.3.0",
|
|
36
37
|
"tailwindcss": "^4.1.18"
|
|
37
38
|
}
|
|
38
39
|
}
|
|
@@ -10,8 +10,14 @@
|
|
|
10
10
|
|
|
11
11
|
/* Bundler mode */
|
|
12
12
|
"moduleResolution": "bundler",
|
|
13
|
-
"allowImportingTsExtensions": true,
|
|
14
13
|
|
|
14
|
+
/* Path aliases */
|
|
15
|
+
"paths": {
|
|
16
|
+
"*": ["./*"],
|
|
17
|
+
"@/*": ["./src/*"]
|
|
18
|
+
},
|
|
19
|
+
|
|
20
|
+
"allowImportingTsExtensions": true,
|
|
15
21
|
/* Linting */
|
|
16
22
|
"strict": true,
|
|
17
23
|
"noFallthroughCasesInSwitch": true,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import path from 'node:path'
|
|
1
2
|
import tailwindcss from '@tailwindcss/vite'
|
|
2
3
|
import react from '@vitejs/plugin-react'
|
|
3
4
|
import { rari, rariRouter } from 'rari/vite'
|
|
@@ -5,4 +6,9 @@ import { defineConfig } from 'rolldown-vite'
|
|
|
5
6
|
|
|
6
7
|
export default defineConfig({
|
|
7
8
|
plugins: [rari(), rariRouter(), react(), tailwindcss()],
|
|
9
|
+
resolve: {
|
|
10
|
+
alias: {
|
|
11
|
+
'@': path.resolve(__dirname, 'src'),
|
|
12
|
+
},
|
|
13
|
+
},
|
|
8
14
|
})
|