-
Notifications
You must be signed in to change notification settings - Fork 16
/
package.json
66 lines (66 loc) · 2.16 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{
"private": true,
"name": "ts-gas-project-starter",
"version": "1.1.0",
"description": "Sample repository for Typescript based Google Apps Script projects",
"author": "Guillaume Contesso a.k.a. PopGoesTheWza",
"license": "MIT",
"keywords": [
"gas",
"google-apps-script",
"ts",
"typescript",
"v8"
],
"scripts": {
"build-clean": "rimraf build && npm run config-all && npm run build && npm run postbuild",
"build": "tsc --build src",
"postbuild": "npm run postbuild-project2",
"build-project1": "tsc --build src/GasProject1",
"build-project2": "tsc --build src/GasProject2",
"postbuild-project2": "copyfiles -u 3 build/common-components/lib1/lib1.js build/gas/GasProject2",
"format": "prettier --write **.{ts,json}",
"lint": "xo --quiet",
"config-project1": "copyfiles -u 2 src/GasProject1/appsscript.json build/gas/project1",
"config-project2": "copyfiles -u 2 src/GasProject2/appsscript.json build/gas/GasProject2",
"config-all": "npm run config-project1 && npm run config-project2",
"push-project1": "cd src/GasProject1 && clasp push",
"push-project2": "cd src/GasProject2 && clasp push",
"push-all": "npm run config-all && npm run push-project1 && npm run push-project2"
},
"repository": "https://github.com/PopGoesTheWza/ts-gas-project-starter.git",
"devDependencies": {
"@types/google-apps-script": "^1.0.33",
"copyfiles": "^2.4.1",
"prettier": "^2.3.0",
"rimraf": "^3.0.2",
"typescript": "^4.2.4",
"xo": "^0.39.1"
},
"xo": {
"ignores": [
"build",
"**.js"
],
"space": 2,
"rules": {
"capitalized-comments": "warn",
"no-inner-declarations": "warn",
"no-undef": "off",
"@typescript-eslint/no-unsafe-argument": "warn",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/restrict-template-expressions": [
"warn",
{
"allowNumber": true,
"allowBoolean": false,
"allowAny": false,
"allowNullish": false
}
],
"@typescript-eslint/triple-slash-reference": "off",
"unicorn/filename-case": "off"
},
"prettier": true
}
}