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

better file extension support for both server side script and HTML #885

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,8 @@ If no `.claspignore` is specified, a default set of patterns is applied. This de
node_modules/**
```

_Note_: The `fileExtension` and `htmlExtension` settings from `.clasp.json` are automatically included as allowed/included to ensure your local files with their custom file extension are included in the push.

## Project Settings File (`.clasp.json`)

When running `clone` or `create`, a file named `.clasp.json` is created in the current directory to describe `clasp`'s configuration for the current project. Example `.clasp.json`:
Expand All @@ -503,6 +505,7 @@ When running `clone` or `create`, a file named `.clasp.json` is created in the c
"rootDir": "build/",
"projectId": "project-id-xxxxxxxxxxxxxxxxxxx",
"fileExtension": "ts",
"htmlExtension": "ghtml",
"filePushOrder": ["file1.ts", "file2.ts"]
}
```
Expand Down Expand Up @@ -536,6 +539,10 @@ Even if you do not set this manually, clasp will ask this via a prompt to you at

Specifies the file extension for **local** script files in your Apps Script project.

### `htmlExtension` (optional)

Specifies the file extension for **local** html files in your Apps Script project.

### `filePushOrder` (optional)

Specifies the files that should be pushed first, useful for scripts that rely on order of execution. All other files are pushed after this list of files.
Expand Down
Loading