Skip to content

Commit

Permalink
chore: expand Prettier glob to all files (#701)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Robert Kieffer <robert@broofa.com>
Co-authored-by: Christoph Tavan <dev@tavan.de>
  • Loading branch information
3 people committed Oct 12, 2023
1 parent e267b90 commit bc46e19
Show file tree
Hide file tree
Showing 5 changed files with 85 additions and 83 deletions.
62 changes: 31 additions & 31 deletions .github/ISSUE_TEMPLATE/bug_report.yml
@@ -1,39 +1,39 @@
name: Bug report
description: File a bug against the `uuid` project
labels: ["bug"]
title: "[BUG] <title>"
labels: ['bug']
title: '[BUG] <title>'

body:
- type: checkboxes
attributes:
label: Before you begin...
options:
- label: I have searched the existing issues
required: true
- label: I am not using version 13.x of node (if so, please upgrade)
required: true
- type: checkboxes
attributes:
label: Before you begin...
options:
- label: I have searched the existing issues
required: true
- label: I am not using version 13.x of node (if so, please upgrade)
required: true

- type: textarea
attributes:
label: Description of the problem
validations:
required: false
- type: textarea
attributes:
label: Description of the problem
validations:
required: false

- type: textarea
attributes:
label: Recipe for reproducing
description: "**IMPORTANT**: Failure to provide a [Minimal, Complete, and Verifiable](https://stackoverflow.com/help/minimal-reproducible-example) example will result in this issue being closed without further review."
render: bash
validations:
required: false
- type: textarea
attributes:
label: Recipe for reproducing
description: '**IMPORTANT**: Failure to provide a [Minimal, Complete, and Verifiable](https://stackoverflow.com/help/minimal-reproducible-example) example will result in this issue being closed without further review.'
render: bash
validations:
required: false

- type: textarea
attributes:
label: Additional information
- type: textarea
attributes:
label: Additional information

- type: textarea
attributes:
label: Environment
description: "Output of `npx envinfo --system --browsers --npmPackages --binaries` goes here:"
validations:
required: false
- type: textarea
attributes:
label: Environment
description: 'Output of `npx envinfo --system --browsers --npmPackages --binaries` goes here:'
validations:
required: false
16 changes: 8 additions & 8 deletions .github/ISSUE_TEMPLATE/feature_request.yml
@@ -1,13 +1,13 @@
name: Feature request
description: Suggest an idea for this project
labels: ["feature"]
labels: ['feature']

body:
- type: textarea
attributes:
label: Feature description
- type: textarea
attributes:
label: Feature description

- type: textarea
attributes:
label: Additional information
description: E.g. alternatives you've considered, examples, screenshots, or anything else that may be helpful
- type: textarea
attributes:
label: Additional information
description: E.g. alternatives you've considered, examples, screenshots, or anything else that may be helpful
31 changes: 17 additions & 14 deletions .github/workflows/browser.yml
Expand Up @@ -12,17 +12,20 @@ jobs:
timeout-minutes: 30

steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
- run: npm ci
- name: Test Browser
run: npm run test:browser
env:
BROWSERSTACK_USER: ${{ secrets.BROWSERSTACK_USER }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
- run: npx bundlewatch --config bundlewatch.config.json
env:
BUNDLEWATCH_GITHUB_TOKEN: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}
- uses: actions/checkout@v3
with:
fetch-depth: 10
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
- run: npm ci
- name: Test Browser
run: npm run test:browser
env:
CI: true
BROWSERSTACK_USER: ${{ secrets.BROWSERSTACK_USER }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
- run: npx bundlewatch --config bundlewatch.config.json
env:
BUNDLEWATCH_GITHUB_TOKEN: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}
53 changes: 26 additions & 27 deletions .github/workflows/ci.yml
Expand Up @@ -4,37 +4,36 @@ on: [push, pull_request]

jobs:
ci:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x, 14.x, 16.x, 18.x, 20.x]

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 10
- name: Use Node.js 18.x to build
uses: actions/setup-node@v3
with:
node-version: 18.x
- run: npm install
- run: npm run build
- run: rm -rf node_modules
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run test
env:
CI: true
- run: npm run lint
if: matrix.node-version == '18.x'
- run: npm run docs:diff
if: matrix.node-version == '18.x'
- run: npm run test:node
if: matrix.node-version >= '18.x'
- run: npm run test:pack
if: matrix.node-version >= '18.x'
- uses: actions/checkout@v4
with:
fetch-depth: 10
- name: Use Node.js 18.x to build
uses: actions/setup-node@v3
with:
node-version: 18.x
- run: npm install
- run: npm run build
- run: rm -rf node_modules
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run test
env:
CI: true
- run: npm run lint
if: matrix.node-version == '18.x'
- run: npm run docs:diff
if: matrix.node-version == '18.x'
- run: npm run test:node
if: matrix.node-version >= '18.x'
- run: npm run test:pack
if: matrix.node-version >= '18.x'
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -105,8 +105,8 @@
"test:pack": "./scripts/testpack.sh",
"pretest:benchmark": "npm run build",
"test:benchmark": "cd examples/benchmark && npm install && npm test",
"prettier:check": "prettier --check '**/*.{js,jsx,json,md}'",
"prettier:fix": "prettier --write '**/*.{js,jsx,json,md}'",
"prettier:check": "prettier --check .",
"prettier:fix": "prettier --write .",
"bundlewatch": "npm run pretest:browser && bundlewatch --config bundlewatch.config.json",
"md": "runmd --watch --output=README.md README_js.md",
"docs": "( node --version | grep -q 'v18' ) && ( npm run build && npx runmd --output=README.md README_js.md )",
Expand All @@ -120,7 +120,7 @@
"url": "https://github.com/uuidjs/uuid.git"
},
"lint-staged": {
"*.{js,jsx,json,md}": [
"*": [
"prettier --write"
],
"*.{js,jsx}": [
Expand Down

0 comments on commit bc46e19

Please sign in to comment.