updated readme; upgraded @google/clasp to v1.5.3
This commit is contained in:
committed by
Elisha Nuchi
parent
461c78c21e
commit
118af27cc0
@@ -23,19 +23,16 @@ Paste the **scriptId** into the .clasp.json file as below:
|
|||||||
{"rootDir": "dist",
|
{"rootDir": "dist",
|
||||||
"scriptId":"...paste scriptId here..."}
|
"scriptId":"...paste scriptId here..."}
|
||||||
```
|
```
|
||||||
|
If you have not enabled Google's Apps Script API, do so by visiting https://script.google.com/home/usersettings.
|
||||||
Log into CLASP to push code to the server from the command line:
|
Log into CLASP to push code to the server from the command line:
|
||||||
```
|
```
|
||||||
npx clasp login
|
npx clasp login
|
||||||
```
|
```
|
||||||
Modify the server-side and client-side source code in the `src` folder using ES6/7 and React. Change the scopes in `appsscript.json` if needed. When you're ready, build the app!
|
Modify the server-side and client-side source code in the `src` folder using ES6/7 and React. Change the scopes in `appsscript.json` if needed. When you're ready, build the app and deploy!
|
||||||
```
|
```
|
||||||
npm run build
|
npm run deploy
|
||||||
```
|
```
|
||||||
Webpack will display any linting errors, and then bundle your files in `dist`. Finally, push your files to Google's servers using CLASP:
|
Webpack will display any linting errors, bundle your files in `dist`, and push your files to Google's servers using CLASP. You can run `npm run build` to just build.
|
||||||
```
|
|
||||||
clasp push
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
## The sample app
|
## The sample app
|
||||||
Insert/activate/delete sheets through a simple HTML dialog, built with React. Access the dialog through the new menu item that appears. You may need to refresh the spreadsheet and approve the app's permissions the first time you use it.
|
Insert/activate/delete sheets through a simple HTML dialog, built with React. Access the dialog through the new menu item that appears. You may need to refresh the spreadsheet and approve the app's permissions the first time you use it.
|
||||||
|
|||||||
Generated
+30
-30
@@ -140,9 +140,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@google/clasp": {
|
"@google/clasp": {
|
||||||
"version": "1.5.2",
|
"version": "1.5.3",
|
||||||
"resolved": "https://registry.npmjs.org/@google/clasp/-/clasp-1.5.2.tgz",
|
"resolved": "https://registry.npmjs.org/@google/clasp/-/clasp-1.5.3.tgz",
|
||||||
"integrity": "sha1-p8f+EaOZr3qn8+CxFIKXzyalJpY=",
|
"integrity": "sha512-rnDx6LS8KttymesRJtpPekrQWM0EsObI99PmZLpIGqcnmU+P7PP0cgXo7zfZJNBt7E4abqv81d+w8gqow8/Srw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"anymatch": "1.3.2",
|
"anymatch": "1.3.2",
|
||||||
@@ -181,12 +181,12 @@
|
|||||||
"integrity": "sha1-U+z2mf/LyzljdpGrE7rxYIGXZuU=",
|
"integrity": "sha1-U+z2mf/LyzljdpGrE7rxYIGXZuU=",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"globby": "6.1.0",
|
"globby": "^6.1.0",
|
||||||
"is-path-cwd": "1.0.0",
|
"is-path-cwd": "^1.0.0",
|
||||||
"is-path-in-cwd": "1.0.1",
|
"is-path-in-cwd": "^1.0.0",
|
||||||
"p-map": "1.2.0",
|
"p-map": "^1.1.1",
|
||||||
"pify": "3.0.0",
|
"pify": "^3.0.0",
|
||||||
"rimraf": "2.6.2"
|
"rimraf": "^2.2.8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"globby": {
|
"globby": {
|
||||||
@@ -195,11 +195,11 @@
|
|||||||
"integrity": "sha1-9abXDoOV4hyFj7BInWTfAkJNUGw=",
|
"integrity": "sha1-9abXDoOV4hyFj7BInWTfAkJNUGw=",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"array-union": "1.0.2",
|
"array-union": "^1.0.1",
|
||||||
"glob": "7.1.2",
|
"glob": "^7.0.3",
|
||||||
"object-assign": "4.1.1",
|
"object-assign": "^4.0.1",
|
||||||
"pify": "2.3.0",
|
"pify": "^2.0.0",
|
||||||
"pinkie-promise": "2.0.1"
|
"pinkie-promise": "^2.0.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"pify": {
|
"pify": {
|
||||||
@@ -666,7 +666,7 @@
|
|||||||
"integrity": "sha1-MtU+SFHv3AoRmTts0AB4nXDAUQI=",
|
"integrity": "sha1-MtU+SFHv3AoRmTts0AB4nXDAUQI=",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"follow-redirects": "1.5.2",
|
"follow-redirects": "1.5.8",
|
||||||
"is-buffer": "1.1.6"
|
"is-buffer": "1.1.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1977,9 +1977,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"capture-stack-trace": {
|
"capture-stack-trace": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/capture-stack-trace/-/capture-stack-trace-1.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/capture-stack-trace/-/capture-stack-trace-1.0.1.tgz",
|
||||||
"integrity": "sha1-Sm+gc5nCa7pH8LJJa00PtAjFVQ0=",
|
"integrity": "sha512-mYQLZnx5Qt1JgB1WEiMCf2647plpGeQ2NMR/5L0HNZzGQo4fuSPnK+wjfPnKZV0aiJDgzmWqqkV/g7JD+DW0qw==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"chain-function": {
|
"chain-function": {
|
||||||
@@ -2747,7 +2747,7 @@
|
|||||||
"integrity": "sha1-Br56vvlHo/FKMP1hBnHUAbyot7Y=",
|
"integrity": "sha1-Br56vvlHo/FKMP1hBnHUAbyot7Y=",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"capture-stack-trace": "1.0.0"
|
"capture-stack-trace": "1.0.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"create-hash": {
|
"create-hash": {
|
||||||
@@ -4119,9 +4119,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"follow-redirects": {
|
"follow-redirects": {
|
||||||
"version": "1.5.2",
|
"version": "1.5.8",
|
||||||
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.5.2.tgz",
|
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.5.8.tgz",
|
||||||
"integrity": "sha512-kssLorP/9acIdpQ2udQVTiCS5LQmdEz9mvdIfDcl1gYX2tPKFADHSyFdvJS040XdFsPzemWtgI3q8mFVCxtX8A==",
|
"integrity": "sha512-sy1mXPmv7kLAMKW/8XofG7o9T+6gAjzdZK4AJF6ryqQYUa/hnzgiypoeUecZ53x7XiqKNEpNqLtS97MshW2nxg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"debug": "3.1.0"
|
"debug": "3.1.0"
|
||||||
@@ -4915,7 +4915,7 @@
|
|||||||
"integrity": "sha512-+EuKr4CLlGsnXx4XIJIVkcKYrsa2xkAmCvxRhX2HsazJzUBAJ35wARGeApHUn4nNfPD03Vl057FskNr20VaCyg==",
|
"integrity": "sha512-+EuKr4CLlGsnXx4XIJIVkcKYrsa2xkAmCvxRhX2HsazJzUBAJ35wARGeApHUn4nNfPD03Vl057FskNr20VaCyg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"node-forge": "0.7.5",
|
"node-forge": "0.7.6",
|
||||||
"pify": "3.0.0"
|
"pify": "3.0.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -5426,7 +5426,7 @@
|
|||||||
"lodash": "4.17.10",
|
"lodash": "4.17.10",
|
||||||
"mute-stream": "0.0.7",
|
"mute-stream": "0.0.7",
|
||||||
"run-async": "2.3.0",
|
"run-async": "2.3.0",
|
||||||
"rxjs": "5.5.11",
|
"rxjs": "5.5.12",
|
||||||
"string-width": "2.1.1",
|
"string-width": "2.1.1",
|
||||||
"strip-ansi": "4.0.0",
|
"strip-ansi": "4.0.0",
|
||||||
"through": "2.3.8"
|
"through": "2.3.8"
|
||||||
@@ -6444,9 +6444,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node-forge": {
|
"node-forge": {
|
||||||
"version": "0.7.5",
|
"version": "0.7.6",
|
||||||
"resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.7.5.tgz",
|
"resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.7.6.tgz",
|
||||||
"integrity": "sha512-MmbQJ2MTESTjt3Gi/3yG1wGpIMhUfcIypUCGtTizFR9IiccFwxSpfp0vtIZlkFclEqERemxfnSdZEMR9VqqEFQ==",
|
"integrity": "sha512-sol30LUpz1jQFBjOKwbjxijiE3b6pjd74YwfD0fJOKPjF+fONKb2Yg8rYgS6+bK6VDl+/wfr4IYpC7jDzLUIfw==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node-libs-browser": {
|
"node-libs-browser": {
|
||||||
@@ -7873,9 +7873,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rxjs": {
|
"rxjs": {
|
||||||
"version": "5.5.11",
|
"version": "5.5.12",
|
||||||
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.5.11.tgz",
|
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.5.12.tgz",
|
||||||
"integrity": "sha512-3bjO7UwWfA2CV7lmwYMBzj4fQ6Cq+ftHc2MvUe+WMS7wcdJ1LosDWmdjPQanYp2dBRj572p7PeU81JUxHKOcBA==",
|
"integrity": "sha512-xx2itnL5sBbqeeiVgNPVuQQ1nC8Jp2WfNJhXWHmElW9YmrpS9UVnNzhP3EH3HFqexO5Tlp8GhYY+WEcqcVMvGw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"symbol-observable": "1.0.1"
|
"symbol-observable": "1.0.1"
|
||||||
|
|||||||
+2
-2
@@ -6,7 +6,7 @@
|
|||||||
"test": "test",
|
"test": "test",
|
||||||
"start": "webpack --mode development",
|
"start": "webpack --mode development",
|
||||||
"build": "webpack --mode production",
|
"build": "webpack --mode production",
|
||||||
"deploy": "clasp push"
|
"deploy": "npm run build && npx clasp push"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"react",
|
"react",
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {},
|
"dependencies": {},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@google/clasp": "^1.5.0",
|
"@google/clasp": "^1.5.3",
|
||||||
"@types/google-apps-script": "0.0.26",
|
"@types/google-apps-script": "0.0.26",
|
||||||
"babel-cli": "^6.26.0",
|
"babel-cli": "^6.26.0",
|
||||||
"babel-core": "^6.26.3",
|
"babel-core": "^6.26.3",
|
||||||
|
|||||||
Reference in New Issue
Block a user