@ciderjs/gasbombe 0.2.4 → 0.2.6
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/README.ja.md +1 -1
- package/dist/cli.cjs +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/index.cjs +2 -1
- package/dist/index.mjs +2 -1
- package/dist/templates/react-tsx/package.json.ejs +1 -1
- package/dist/templates/react-tsx/vite.config.ts.ejs +12 -1
- package/dist/templates/vanilla-ts/package.json.ejs +1 -6
- package/package.json +1 -1
- package/dist/templates/react-tsx/gasnuki.config.ts.ejs +0 -7
- package/dist/templates/vanilla-ts/.env.ejs +0 -1
package/README.ja.md
CHANGED
package/dist/cli.cjs
CHANGED
package/dist/cli.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -16,10 +16,11 @@ const ejs__default = /*#__PURE__*/_interopDefaultCompat(ejs);
|
|
|
16
16
|
|
|
17
17
|
async function runCommand(command, args, cwd, capture = false) {
|
|
18
18
|
return new Promise((resolve, reject) => {
|
|
19
|
+
const isWindows = process.platform === "win32";
|
|
19
20
|
const child = node_child_process.spawn(command, args, {
|
|
20
21
|
cwd,
|
|
21
22
|
stdio: capture ? "pipe" : "inherit",
|
|
22
|
-
shell:
|
|
23
|
+
shell: isWindows
|
|
23
24
|
});
|
|
24
25
|
let stdout = "";
|
|
25
26
|
let stderr = "";
|
package/dist/index.mjs
CHANGED
|
@@ -17,10 +17,11 @@ const __dirname = __cjs_path__.dirname(__filename);
|
|
|
17
17
|
const require = __cjs_mod__.createRequire(import.meta.url);
|
|
18
18
|
async function runCommand(command, args, cwd, capture = false) {
|
|
19
19
|
return new Promise((resolve, reject) => {
|
|
20
|
+
const isWindows = process.platform === "win32";
|
|
20
21
|
const child = spawn(command, args, {
|
|
21
22
|
cwd,
|
|
22
23
|
stdio: capture ? "pipe" : "inherit",
|
|
23
|
-
shell:
|
|
24
|
+
shell: isWindows
|
|
24
25
|
});
|
|
25
26
|
let stdout = "";
|
|
26
27
|
let stderr = "";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="vitest" />
|
|
2
2
|
|
|
3
|
+
import { gasnuki } from '@ciderjs/gasnuki/vite';
|
|
3
4
|
import react from '@vitejs/plugin-react';
|
|
4
5
|
import { defineConfig } from 'vite';
|
|
5
6
|
import { gas } from 'vite-plugin-google-apps-script';
|
|
@@ -16,5 +17,15 @@ export default defineConfig({
|
|
|
16
17
|
include: ['src/**/*.ts', 'src/**/*.tsx', 'server/**/*.ts'],
|
|
17
18
|
},
|
|
18
19
|
},
|
|
19
|
-
plugins: [
|
|
20
|
+
plugins: [
|
|
21
|
+
react(),
|
|
22
|
+
tsconfigPaths(),
|
|
23
|
+
gasnuki({
|
|
24
|
+
srcDir: 'server',
|
|
25
|
+
outDir: 'types/appsscript',
|
|
26
|
+
outputFile: 'client.ts',
|
|
27
|
+
}),
|
|
28
|
+
gas(),
|
|
29
|
+
viteSingleFile(),
|
|
30
|
+
],
|
|
20
31
|
});
|
|
@@ -8,10 +8,7 @@
|
|
|
8
8
|
"check": "biome check --write",
|
|
9
9
|
"build": "tsc && rolldown -c && cpy src/*.json dist/",
|
|
10
10
|
"test": "vitest run --coverage",
|
|
11
|
-
"push": "clasp push"
|
|
12
|
-
"deploy": "clasp create-deployment",
|
|
13
|
-
"update": "dotenv cross-var \"clasp update-deployment $GAS_DEPLOYMENT_ID\"",
|
|
14
|
-
"preview": "clasp open-web-app"
|
|
11
|
+
"push": "clasp push"
|
|
15
12
|
},
|
|
16
13
|
"dependencies": {},
|
|
17
14
|
"devDependencies": {
|
|
@@ -22,8 +19,6 @@
|
|
|
22
19
|
"@types/node": "^24.5.2",
|
|
23
20
|
"@vitest/coverage-v8": "3.2.4",
|
|
24
21
|
"cpy-cli": "^6.0.0",
|
|
25
|
-
"cross-var": "^1.1.0",
|
|
26
|
-
"dotenv-cli": "^10.0.0",
|
|
27
22
|
"rolldown": "1.0.0-beta.40",
|
|
28
23
|
"rolldown-plugin-remove-export": "^0.1.3",
|
|
29
24
|
"typescript": "~5.9.2",
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
GAS_DEPLOYMENT_ID=input your deployment id
|