Skip to content

Commit 90216fa

Browse files
enuchipunkch
authored andcommitted
Update setup script (enuchi#137)
Handles changes in @google/[email protected] affecting rooDir flag
1 parent 5a6f0cb commit 90216fa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,13 @@ Alternatively, you can use an existing Google Spreadsheet and Script file instea
107107
<details>
108108
<summary>See instructions here for using an existing project.</summary>
109109

110-
You will need to update the `.clasp.json` file in the root of this project with the following three key/value pairs:
110+
You will need to update the `.clasp.json` file in the root of this project with the following three key/value pairs (see .clasp.json.SAMPLE for reference):
111111

112112
```json
113113
{
114114
"scriptId": "1PY037hPcy................................................",
115115
"parentId": ["1Df30......................................."],
116-
"rootDir": "dist"
116+
"rootDir": "./dist"
117117
}
118118
```
119119

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"test:integration": "jest --forceExit test/local-development.test",
1111
"test:integration:extended": "cross-env IS_EXTENDED=true jest --forceExit test/local-development.test",
1212
"login": "clasp login",
13-
"setup": "rimraf .clasp.json && clasp create --type sheets --title \"My React Project\" --rootDir ./dist",
13+
"setup": "rimraf .clasp.json && mkdirp dist && clasp create --type sheets --title \"My React Project\" --rootDir ./dist && mv ./dist/.clasp.json ./.clasp.json && rimraf dist",
1414
"open": "clasp open --addon",
1515
"setup:https": "mkdirp certs && mkcert -key-file ./certs/key.pem -cert-file ./certs/cert.pem localhost 127.0.0.1",
1616
"build:dev": "cross-env NODE_ENV=development webpack",

0 commit comments

Comments
 (0)