Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] 616 #688

Closed
wants to merge 39 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
5bdc1b4
Merge pull request #17 from google/master
PopGoesTheWza May 13, 2019
ed24bb7
Merge pull request #18 from google/master
PopGoesTheWza May 14, 2019
807729c
2.1.0
grant Mar 19, 2019
83b9e78
Low impact changes (#619)
PopGoesTheWza May 17, 2019
a89ab84
Relative rootdir (#620)
PopGoesTheWza May 17, 2019
19a2fd6
Cleanup before next pr (#621)
PopGoesTheWza May 20, 2019
2abec30
Refactor `inquirer` package (#622)
PopGoesTheWza May 21, 2019
4829c18
Merge branch 'master' of https://github.com/google/clasp
PopGoesTheWza May 22, 2019
4b77408
Merge branch 'master' of https://github.com/google/clasp
PopGoesTheWza May 23, 2019
cd4b7cc
Merge branch 'master' of https://github.com/google/clasp
PopGoesTheWza May 24, 2019
5279445
Merge branch 'master' of https://github.com/google/clasp
PopGoesTheWza May 29, 2019
4b0fe1c
Merge branch 'master' of https://github.com/google/clasp
PopGoesTheWza Jun 3, 2019
6aca82a
Merge branch 'master' of https://github.com/google/clasp
PopGoesTheWza Jun 14, 2019
ec9f3e8
Merge branch 'master' of https://github.com/google/clasp
PopGoesTheWza Jun 14, 2019
81d3792
Merge branch 'master' of https://github.com/google/clasp
PopGoesTheWza Jun 26, 2019
9a911f5
Merge branch 'master' of https://github.com/google/clasp
PopGoesTheWza Jul 1, 2019
4cd43a9
Merge branch 'master' of https://github.com/google/clasp
PopGoesTheWza Jul 3, 2019
8018780
Merge branch 'master' of https://github.com/google/clasp
PopGoesTheWza Jul 3, 2019
f3706ea
Merge branch 'master' of https://github.com/google/clasp
PopGoesTheWza Jul 4, 2019
f468920
Merge branch 'master' of https://github.com/google/clasp
PopGoesTheWza Jul 15, 2019
9cac474
Merge branch 'master' of https://github.com/google/clasp
PopGoesTheWza Jul 22, 2019
e852032
Merge branch 'master' of https://github.com/google/clasp
PopGoesTheWza Jul 26, 2019
df340af
Merge branch 'master' of https://github.com/google/clasp
PopGoesTheWza Aug 1, 2019
dc88dd2
Merge branch 'master' of https://github.com/google/clasp
PopGoesTheWza Aug 8, 2019
f498dba
Merge branch 'master' of https://github.com/google/clasp
PopGoesTheWza Aug 16, 2019
7518cff
imports cleanup
PopGoesTheWza Aug 18, 2019
76ca5eb
Question to @grant
PopGoesTheWza Aug 19, 2019
66b7a07
package cleanup
PopGoesTheWza Aug 19, 2019
94e8b71
documentation
PopGoesTheWza Aug 19, 2019
ad1eb29
class to handle path to conf files
PopGoesTheWza Aug 19, 2019
d109218
handles config files (replaces DOT)
PopGoesTheWza Aug 19, 2019
e5bc510
add options for config files
PopGoesTheWza Aug 19, 2019
cae6f97
use Conf object
PopGoesTheWza Aug 19, 2019
d7851da
`DOT` replaced with Conf object
PopGoesTheWza Aug 19, 2019
e7645a9
bump Travis - update packages
PopGoesTheWza Aug 21, 2019
1aa4a33
Merge branch 'master' into 616
PopGoesTheWza Aug 21, 2019
cc1e15d
revert `commander`
PopGoesTheWza Aug 21, 2019
6d4d700
Merge branch '616' of https://github.com/PopGoesTheWza/clasp into 616
PopGoesTheWza Aug 21, 2019
1b601d7
upgrade to `commander` v3.0.0
PopGoesTheWza Aug 21, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions docs/config-files.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Clasp configuration files

A Clasp project uses the following configuration files:

File | Default | Description
--- | --- | ---
Clasp project file | `./.clasp.json` | Define which Apps Script project to interact with (and how)
Clasp ignore file | `.claspignore` in the same directory as the Clasp project file | Specifies files to ignore by `push` and `watch` Clasp commands
Google Auth file | `~/.clasprc.json` (global) or `.clasprc.json` in the same directory as the Clasp project file (local) | OAuth 2.0 authentication and authorization to access Google APIs. Authentication is global by default.
Apps Script project manifest | `<rootDir>/appsscript.json` | Specifies basic project information (cf. [Manifests](https://developers.google.com/apps-script/concepts/manifests))
Typescript configuration file | `<rootDir>/tsconfig.json` | Used for user specific compiling options. Limited support.

## Environment variables

Environment variables can be set in order to set the following default files:

File | Environment varaiable | Comment
--- | --- | ---
Clasp project file | `clasp_config_project` | The filename must start with a dot '.'
Clasp ignore file | `clasp_config_ignore` |
Google Auth file | `clasp_config_auth` | The filename must start with a dot '.'

## Command line options

Command line options can be used in order to set the following default files:

File | Environment varaiable | Comment
--- | --- | ---
Clasp project file | `-P <path>` or `--project <path>` | The filename must start with a dot '.'
Clasp ignore file | `-I <path>` or `--ignore <path>` |
Google Auth file | `-A <path>` or `--auth <path>` | The filename must start with a dot '.'

> Note: command line options have precedence over environment variables

## Usage of configuration files per command

Command | Project file | ignore file | Auth file | Manifest file
--- | --- | --- | --- | ---
login | | | Write (`--creds` option) |
logout | | | Delete |
create | Write | | Read | Write
clone | Write | | Read | Write
pull | Read | | Read | Write
push | Read | Read | Read | Read
status | Read | Read | | Read
open | Read | | Read | ???
deployments | Read | | Read | ???
deploy | Read | | Read | Read
undeploy | Read | | Read | ???
version | Read | | Read | ???
versions | Read | | Read | ???
list | | | Read |
logs | ??? | | Read | ???
run | Read | | Read | ???
apis | ??? | | Read | ???
setting | Read | | ??? | ???
Loading