forked from google/clasp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 2.1.0 * Low impact changes (google#619) * dependencies clean-up * types for child_process' spawnSync * types for child_process' spawnSync + options fix * linting * Relative rootdir (google#620) * relative rootDir support * relative rootDir support (untrackedFiles behavior changed) * relative rootDir doc changes * Cleanup before next pr (google#621) * prettier + sort imports * splitLines types * unused package 'connect' * ucfirst, isOnline types * ellipsize types * redundant package 'fs-copy-file-sync' * removing extra line * // TODO * packages dependencies update * comment fix * fixes * nicer ellipsize typing * better? * Refactor `inquirer` package (google#622) * regroup `inquirer` into a single file * fix typo * linting * switch to `find-up` * switch to `find-up` & `strip-bom` * dependencies update * findUp implementation fix * enum accessor fix * fs-extra & typescript dependency fix * linting * dependencies clean-up (again) * non any cast * minor edits * local calsp & minor edits * moving local clasp to own doc * npm audit fix Co-authored-by: Grant Timmerman <granttimmerman@gmail.com>
- Loading branch information
1 parent
fffdcea
commit 29bac44
Showing
5 changed files
with
54 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Using clasp as a local dependency | ||
|
||
Typically `clasp` is installed as a global package for convinience when using the command line. | ||
|
||
Still there may be occassions when you want a project to use a specific version of `clasp` (i.e. to prevent potential breaking changes in future version) | ||
|
||
This can be achieved by simply adding clasp as a local dependency and a fixed version | ||
|
||
```sh | ||
npm install --save-exact @google/clasp | ||
``` | ||
|
||
Optionally, you can specify an older version. | ||
|
||
```sh | ||
npm install --save-exact @google/clasp@1.7.0 | ||
``` | ||
|
||
After this, any npm scripts using `clasp`will use the **local** version | ||
|
||
```json | ||
"scripts": { | ||
"push-project1": "cd src/GasProject1 && clasp push", | ||
}, | ||
``` | ||
|
||
From the command line, within your project, use the `npx` tool in order to use the **local** version of `clasp` rather than any global one. | ||
|
||
```sh | ||
npx clasp --version | ||
``` |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.