Skip to content

Commit

Permalink
Merge pull request #227 from google/grant-script
Browse files Browse the repository at this point in the history
Add build-fresh script and publish script
  • Loading branch information
campionfellin authored Jun 21, 2018
2 parents 1d94eb2 + 633a4bf commit 4a0c511
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,8 @@ sudo npm run build;
clasp <command>
```

(If you see build errors, run `sudo npm run build-fresh`)

#### Run Tests (experimental)

Change `describe.skip(...)` to `describe(...)` for relevant tests.
Expand All @@ -369,7 +371,7 @@ Run `npm run docs` to build the "How To" section. Copy/paste that section into t

1. Build `index.js` locally. `.gitignore`/`.npmignore` will hide js/ts files appropriately.
1. Bump version: `npm version [major|minor|patch] -m "Bump version to %s"`
1. Publish with: `npm publish --access public && git push --follow-tags`
1. Publish with: `npm run publish`

### Contributing

Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"description": "Develop Apps Script Projects locally",
"main": "index.js",
"scripts": {
"build": "npm i; tsc --project tsconfig.json; npm i -g --loglevel=error;",
"build": "tsc --project tsconfig.json; npm i -g --loglevel=error;",
"build-fresh": "npm cache clean --force; npm i; npm run build;",
"publish": "npm publish --access public && git push --follow-tags",
"docs": "tsc docs.ts && node docs.js",
"lint": "tslint --project tslint.json && echo 'No lint errors. All good!'",
"test": "nyc --cache false mocha --timeout 100000 -- tests/*.js",
Expand Down

0 comments on commit 4a0c511

Please sign in to comment.