@ciderjs/gasbombe 0.2.2 → 0.2.4

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 CHANGED
@@ -11,7 +11,7 @@ require('consola');
11
11
  require('ejs');
12
12
  require('glob');
13
13
 
14
- const version = "0.2.2";
14
+ const version = "0.2.4";
15
15
 
16
16
  async function main() {
17
17
  const program = new commander.Command();
package/dist/cli.mjs CHANGED
@@ -9,7 +9,7 @@ import 'consola';
9
9
  import 'ejs';
10
10
  import 'glob';
11
11
 
12
- const version = "0.2.2";
12
+ const version = "0.2.4";
13
13
 
14
14
  async function main() {
15
15
  const program = new Command();
package/dist/index.cjs CHANGED
@@ -18,7 +18,8 @@ async function runCommand(command, args, cwd, capture = false) {
18
18
  return new Promise((resolve, reject) => {
19
19
  const child = node_child_process.spawn(command, args, {
20
20
  cwd,
21
- stdio: capture ? "pipe" : "inherit"
21
+ stdio: capture ? "pipe" : "inherit",
22
+ shell: true
22
23
  });
23
24
  let stdout = "";
24
25
  let stderr = "";
package/dist/index.mjs CHANGED
@@ -19,7 +19,8 @@ async function runCommand(command, args, cwd, capture = false) {
19
19
  return new Promise((resolve, reject) => {
20
20
  const child = spawn(command, args, {
21
21
  cwd,
22
- stdio: capture ? "pipe" : "inherit"
22
+ stdio: capture ? "pipe" : "inherit",
23
+ shell: true
23
24
  });
24
25
  let stdout = "";
25
26
  let stderr = "";
@@ -1,69 +1,10 @@
1
- # React + TypeScript + Vite
1
+ # React + TypeScript + Vite + AppsScript
2
2
 
3
- This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
3
+ This template provides a minimal setup to get React working in Vite with HMR and Apps Script Backend.
4
4
 
5
- Currently, two official plugins are available:
5
+ Currently, these plugins are available:
6
6
 
7
7
  - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) for Fast Refresh
8
8
  - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9
-
10
- ## Expanding the ESLint configuration
11
-
12
- If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
13
-
14
- ```js
15
- export default defineConfig([
16
- globalIgnores(['dist']),
17
- {
18
- files: ['**/*.{ts,tsx}'],
19
- extends: [
20
- // Other configs...
21
-
22
- // Remove tseslint.configs.recommended and replace with this
23
- tseslint.configs.recommendedTypeChecked,
24
- // Alternatively, use this for stricter rules
25
- tseslint.configs.strictTypeChecked,
26
- // Optionally, add this for stylistic rules
27
- tseslint.configs.stylisticTypeChecked,
28
-
29
- // Other configs...
30
- ],
31
- languageOptions: {
32
- parserOptions: {
33
- project: ['./tsconfig.node.json', './tsconfig.app.json'],
34
- tsconfigRootDir: import.meta.dirname,
35
- },
36
- // other options...
37
- },
38
- },
39
- ])
40
- ```
41
-
42
- You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
43
-
44
- ```js
45
- // eslint.config.js
46
- import reactX from 'eslint-plugin-react-x'
47
- import reactDom from 'eslint-plugin-react-dom'
48
-
49
- export default defineConfig([
50
- globalIgnores(['dist']),
51
- {
52
- files: ['**/*.{ts,tsx}'],
53
- extends: [
54
- // Other configs...
55
- // Enable lint rules for React
56
- reactX.configs['recommended-typescript'],
57
- // Enable lint rules for React DOM
58
- reactDom.configs.recommended,
59
- ],
60
- languageOptions: {
61
- parserOptions: {
62
- project: ['./tsconfig.node.json', './tsconfig.app.json'],
63
- tsconfigRootDir: import.meta.dirname,
64
- },
65
- // other options...
66
- },
67
- },
68
- ])
69
- ```
9
+ - [@ciderjs/gasnuki](https://github.com/luthpg/gasnuki) for Type Definition Bridge
10
+ - [rolldown](https://github.com/rolldown/rolldown) for transpile TypeScript files and bundle files
@@ -1 +1,7 @@
1
- # Starter Template for Google Apps Script with TypeScript
1
+ # TypeScript + AppsScript
2
+
3
+ This template provides a minimal setup to get TypeScript working for Apps Script Backend.
4
+
5
+ Currently, these plugins are available:
6
+
7
+ - [rolldown](https://github.com/rolldown/rolldown) for transpile TypeScript files and bundle files
@@ -0,0 +1,8 @@
1
+ {
2
+ "timeZone": "Asia/Tokyo",
3
+ "dependencies": {
4
+ "libraries": []
5
+ },
6
+ "exceptionLogging": "STACKDRIVER",
7
+ "runtimeVersion": "V8"
8
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ciderjs/gasbombe",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "A TypeScript Project Generator for GoogleAppsScript, available as CLI",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",