Skip to content

Commit 47b080f

Browse files
chore: starter tests for plugin hooks (#22)
* chore: starter tests for plugin hooks * chore: add test command to github workflow
1 parent 86823cc commit 47b080f

File tree

8 files changed

+17989
-10899
lines changed

8 files changed

+17989
-10899
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
node_modules
2+
test

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,5 @@ jobs:
3232
- name: Linting
3333
run: npm run format:ci
3434
if: "${{ matrix.node-version == '*' }}"
35+
- name: Run tests
36+
run: npm run test

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@ node_modules
1414

1515
# Optional REPL history
1616
.node_repl_history
17+
18+
# Tests
19+
test

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ Create a `netlify.toml` in the root of your project. Your file should include th
3131
If you'd like to install this plugin at a fixed version, install it via your package manager:
3232

3333
```bash
34-
npm install @netlify/plugin-angular-universal
34+
npm install -D @netlify/plugin-angular-universal
3535
# or
36-
yarn add @netlify/plugin-angular-universal
36+
yarn add -D @netlify/plugin-angular-universal
3737
```
3838

3939
Read more about [file-based plugin installation](https://docs.netlify.com/configure-builds/build-plugins/#file-based-installation)
@@ -43,7 +43,7 @@ in our docs.
4343

4444
### Plugin Side Effects
4545

46-
This plugin will make direct changes to your project source when run via the CLI:
46+
When this plugin is run as part of the build process using the Netlify CLI, direct changes will be made to your project source:
4747

4848
1. It will modify your angular.json to add a `serverless` project configuration.
4949
2. It will add `serverless.ts` and `tsconfig.serverless.json` files.

0 commit comments

Comments
 (0)