Skip to content

Commit

Permalink
Merge branch 'master' into pr/1
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-labs committed Jan 20, 2023
2 parents ed63817 + 24cf632 commit 9acc46e
Show file tree
Hide file tree
Showing 13 changed files with 12,227 additions and 4,696 deletions.
32 changes: 19 additions & 13 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,23 @@ jobs:
runs-on: ubuntu-18.04

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: '${{ env.NODE }}'
- uses: actions/cache@v2

- uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
- run: npm ci

- run: npm run lint

- run: npm run typecheck

test:
Expand All @@ -37,26 +42,27 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macOS-10.15, ubuntu-18.04, windows-2019]
node: [10.x, 14.x, 16.x]
os: [macOS-11, ubuntu-20.04, windows-2019]
node: [14.x, 16.x, 18.x, 19.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Get npm cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- uses: actions/cache@v2

- uses: actions/cache@v3
with:
path: ${{ steps.npm-cache.outputs.dir }}
path: ~/.npm
key: ${{ matrix.os }}-node-v${{ matrix.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ matrix.os }}-node-v${{ matrix.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
${{ matrix.os }}-node-v${{ matrix.node }}-
- run: npm ci

- run: npm run build

- run: npm test
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,12 @@ module.exports = {
// select what kind of types you want to generate (default `['enum', 'constant', 'literalId', 'literalKey']`)
types: ['constant', 'literalId'],
// render the types with `'` instead of `"` (default is `"`)
singleQuotes: true
singleQuotes: true,
// customise names used for the generated types and constants
enumName: 'MyIconType',
constantName: 'MY_CODEPOINTS'
// literalIdName: 'IconId',
// literalKeyName: 'IconKey'
}
},
// Use a custom Handlebars template
Expand Down
Loading

0 comments on commit 9acc46e

Please sign in to comment.