@ciderjs/gasbombe 0.4.1 → 0.4.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/dist/cli.cjs +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/index.cjs +5 -4
- package/dist/index.mjs +6 -5
- package/dist/templates/server-js/README.md.ejs +3 -3
- package/dist/templates/server-js/package.json.ejs +1 -2
- package/dist/templates/server-js/vitest.config.js.ejs +5 -2
- package/package.json +1 -1
- package/dist/templates/server-js/tsconfig.json.ejs +0 -34
package/dist/cli.cjs
CHANGED
package/dist/cli.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -52,7 +52,7 @@ async function handleClaspSetup(claspOption, projectName, outputDir, claspProjec
|
|
|
52
52
|
if (claspOption === "skip") {
|
|
53
53
|
return;
|
|
54
54
|
}
|
|
55
|
-
const npxLikeCommand = packageManager === "npm" ? "npx" : packageManager === "pnpm" ? "
|
|
55
|
+
const npxLikeCommand = packageManager === "npm" ? "npx" : packageManager === "pnpm" ? "pnpm dlx" : "yarn dlx";
|
|
56
56
|
consola.consola.start(
|
|
57
57
|
`Setting up .clasp.json with \`${npxLikeCommand} @google/clasp\`...`
|
|
58
58
|
);
|
|
@@ -190,9 +190,10 @@ async function generateProject({
|
|
|
190
190
|
const files = await fs__default.readdir(outputDir);
|
|
191
191
|
const relevantFiles = files.filter((file) => !file.startsWith("."));
|
|
192
192
|
if (relevantFiles.length > 0) {
|
|
193
|
-
const proceed = await confirm(
|
|
194
|
-
"Current directory is not empty. Proceed anyway?"
|
|
195
|
-
|
|
193
|
+
const proceed = await prompts.confirm({
|
|
194
|
+
message: "Current directory is not empty. Proceed anyway?",
|
|
195
|
+
default: false
|
|
196
|
+
});
|
|
196
197
|
if (!proceed) {
|
|
197
198
|
consola.consola.warn("Operation cancelled.");
|
|
198
199
|
process.exit(0);
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { spawn } from 'node:child_process';
|
|
2
2
|
import fs from 'node:fs/promises';
|
|
3
3
|
import path from 'node:path';
|
|
4
|
-
import { select } from '@inquirer/prompts';
|
|
4
|
+
import { confirm, select } from '@inquirer/prompts';
|
|
5
5
|
import { consola } from 'consola';
|
|
6
6
|
import ejs from 'ejs';
|
|
7
7
|
import { glob } from 'glob';
|
|
@@ -53,7 +53,7 @@ async function handleClaspSetup(claspOption, projectName, outputDir, claspProjec
|
|
|
53
53
|
if (claspOption === "skip") {
|
|
54
54
|
return;
|
|
55
55
|
}
|
|
56
|
-
const npxLikeCommand = packageManager === "npm" ? "npx" : packageManager === "pnpm" ? "
|
|
56
|
+
const npxLikeCommand = packageManager === "npm" ? "npx" : packageManager === "pnpm" ? "pnpm dlx" : "yarn dlx";
|
|
57
57
|
consola.start(
|
|
58
58
|
`Setting up .clasp.json with \`${npxLikeCommand} @google/clasp\`...`
|
|
59
59
|
);
|
|
@@ -191,9 +191,10 @@ async function generateProject({
|
|
|
191
191
|
const files = await fs.readdir(outputDir);
|
|
192
192
|
const relevantFiles = files.filter((file) => !file.startsWith("."));
|
|
193
193
|
if (relevantFiles.length > 0) {
|
|
194
|
-
const proceed = await confirm(
|
|
195
|
-
"Current directory is not empty. Proceed anyway?"
|
|
196
|
-
|
|
194
|
+
const proceed = await confirm({
|
|
195
|
+
message: "Current directory is not empty. Proceed anyway?",
|
|
196
|
+
default: false
|
|
197
|
+
});
|
|
197
198
|
if (!proceed) {
|
|
198
199
|
consola.warn("Operation cancelled.");
|
|
199
200
|
process.exit(0);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# JavaScript + AppsScript
|
|
2
2
|
|
|
3
|
-
This template provides a minimal setup to get
|
|
3
|
+
This template provides a minimal setup to get JavaScript working for Apps Script Backend.
|
|
4
4
|
|
|
5
5
|
Currently, these plugins are available:
|
|
6
6
|
|
|
7
|
-
- [rolldown](https://github.com/rolldown/rolldown) for transpile
|
|
7
|
+
- [rolldown](https://github.com/rolldown/rolldown) for transpile JavaScript files and bundle files
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"main": "./dist/app.js",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"check": "biome check --write",
|
|
9
|
-
"build": "
|
|
9
|
+
"build": "rolldown -c && cpy src/*.json dist/",
|
|
10
10
|
"test": "vitest run --coverage",
|
|
11
11
|
"push": "clasp push"
|
|
12
12
|
},
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
"cpy-cli": "^6.0.0",
|
|
20
20
|
"rolldown": "1.0.0-rc.2",
|
|
21
21
|
"rolldown-plugin-remove-export": "^0.1.3",
|
|
22
|
-
"vite-tsconfig-paths": "^6.0.5",
|
|
23
22
|
"vitest": "^4.0.18"
|
|
24
23
|
}
|
|
25
24
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import tsconfigPaths from "vite-tsconfig-paths";
|
|
2
1
|
import { defineConfig } from "vitest/config";
|
|
3
2
|
|
|
4
3
|
export default defineConfig({
|
|
@@ -7,5 +6,9 @@ export default defineConfig({
|
|
|
7
6
|
include: ["src/**/*"],
|
|
8
7
|
},
|
|
9
8
|
},
|
|
10
|
-
|
|
9
|
+
resolver: {
|
|
10
|
+
alias: {
|
|
11
|
+
"@": "./src",
|
|
12
|
+
},
|
|
13
|
+
},
|
|
11
14
|
});
|
package/package.json
CHANGED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "es2022",
|
|
4
|
-
"useDefineForClassFields": true,
|
|
5
|
-
"module": "esnext",
|
|
6
|
-
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
7
|
-
"skipLibCheck": true,
|
|
8
|
-
|
|
9
|
-
/* Bundler mode */
|
|
10
|
-
"moduleResolution": "bundler",
|
|
11
|
-
"allowImportingTsExtensions": true,
|
|
12
|
-
"isolatedModules": true,
|
|
13
|
-
"moduleDetection": "force",
|
|
14
|
-
"noEmit": true,
|
|
15
|
-
|
|
16
|
-
/* Linting */
|
|
17
|
-
"strict": true,
|
|
18
|
-
"noUnusedLocals": true,
|
|
19
|
-
"noUnusedParameters": true,
|
|
20
|
-
"noFallthroughCasesInSwitch": true,
|
|
21
|
-
"noUncheckedSideEffectImports": true,
|
|
22
|
-
|
|
23
|
-
"allowJs": true,
|
|
24
|
-
"checkJs": false,
|
|
25
|
-
"types": ["node", "google-apps-script"],
|
|
26
|
-
|
|
27
|
-
// Aliases
|
|
28
|
-
"paths": {
|
|
29
|
-
"@/*": ["./src/*"],
|
|
30
|
-
"~/*": ["./*"]
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"include": ["src", "tests", "types", "./*.ts"]
|
|
34
|
-
}
|