-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Expand file tree
/
Copy pathlefthook.yml
More file actions
21 lines (19 loc) · 634 Bytes
/
Copy pathlefthook.yml
File metadata and controls
21 lines (19 loc) · 634 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Sequential on purpose: readmes reads the plugin sources, so prettier has to
# finish rewriting them first.
pre-commit:
parallel: false
jobs:
- name: prettier
run: npx prettier --write --ignore-unknown {staged_files}
stage_fixed: true
# docs/ is generated from the @Plugin decorators and JSDoc of the plugin
# sources. Regenerate and stage it so it can never drift from the sources.
- name: readmes
glob:
- 'src/@awesome-cordova-plugins/plugins/**/*.ts'
- 'scripts/docs/**/*.ts'
run: npm run readmes && git add docs
pre-push:
jobs:
- name: test
run: npm test