Move non-Node script from package.json to workflow (#485) [skip ci]

* Move non-Node script from `package.json` to workflow

Module `dprint` is not used in a Node context so should not be placed in `package.json`.

* Unformat
This commit is contained in:
Nixinova
2021-08-17 21:59:04 +12:00
committed by GitHub
parent 2d7fc5638a
commit f14ab9bd98
2 changed files with 4 additions and 4 deletions

View File

@@ -40,12 +40,12 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Dprint
- name: Format code with dprint
run: |
curl -fsSL https://dprint.dev/install.sh | sh
echo "$HOME/.dprint/bin" >> $GITHUB_PATH
- name: Format code
run: npm run fmt
dprint fmt --config .github/config/dprint.json
npm run format
- name: Build lowlighter/metrics:${{ github.head_ref || 'master' }}
run: docker build -t lowlighter/metrics:$(echo ${{ github.head_ref || 'master' }} | sed 's/\//-/g') .
- name: Run tests

View File

@@ -10,9 +10,9 @@
"quickstart": "node .github/quickstart/index.mjs",
"preview": "node .github/preview.mjs",
"linter": "eslint source/**/*.mjs --quiet",
"format": "eslint source/**/*.mjs --fix",
"dev": "nodemon source/app/web/index.mjs -e mjs,css,ejs,json",
"postinstall": "node node_modules/puppeteer/install.js",
"fmt": "dprint fmt --config .github/config/dprint.json && npx eslint source/**/*.mjs --fix",
"indepth": "node source/plugins/languages/analyzers.mjs"
},
"repository": {