Skip to content

Commit

Permalink
feat(cli): add fmt script to plugin template (#3354)
Browse files Browse the repository at this point in the history
  • Loading branch information
imhoffd committed Jul 29, 2020
1 parent 676917e commit 9ca1e72
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cli/src/tasks/new-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ function generatePackageJSON(answers: NewPluginAnswers, cliVersion: string) {
types: 'dist/esm/index.d.ts',
scripts: {
lint: 'npm run prettier -- --check && npm run swiftlint -- lint',
fmt: 'npm run prettier -- --write && npm run swiftlint -- autocorrect',
prettier: 'prettier "**/*.{css,html,ts,js,java}"',
swiftlint: 'node-swiftlint',
build: 'npm run clean && tsc && rollup -c rollup.config.js',
Expand Down

0 comments on commit 9ca1e72

Please sign in to comment.