Update setup script (#137)

Handles changes in @google/clasp@2.4.1 affecting rooDir flag
This commit is contained in:
Elisha Nuchi
2022-08-12 23:19:12 -04:00
committed by GitHub
parent f16d7d3a66
commit a323926739
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -107,13 +107,13 @@ Alternatively, you can use an existing Google Spreadsheet and Script file instea
<details>
<summary>See instructions here for using an existing project.</summary>
You will need to update the `.clasp.json` file in the root of this project with the following three key/value pairs:
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):
```json
{
"scriptId": "1PY037hPcy................................................",
"parentId": ["1Df30......................................."],
"rootDir": "dist"
"rootDir": "./dist"
}
```
+1 -1
View File
@@ -10,7 +10,7 @@
"test:integration": "jest --forceExit test/local-development.test",
"test:integration:extended": "cross-env IS_EXTENDED=true jest --forceExit test/local-development.test",
"login": "clasp login",
"setup": "rimraf .clasp.json && clasp create --type sheets --title \"My React Project\" --rootDir ./dist",
"setup": "rimraf .clasp.json && mkdirp dist && clasp create --type sheets --title \"My React Project\" --rootDir ./dist && mv ./dist/.clasp.json ./.clasp.json && rimraf dist",
"open": "clasp open --addon",
"setup:https": "mkdirp certs && mkcert -key-file ./certs/key.pem -cert-file ./certs/cert.pem localhost 127.0.0.1",
"build:dev": "cross-env NODE_ENV=development webpack",