Skip to content

Commit

Permalink
Add CachedValue and CachedFunction (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante authored Jul 24, 2023
1 parent 1ab9a3b commit 5255795
Show file tree
Hide file tree
Showing 22 changed files with 1,201 additions and 1,114 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/esm-lint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
env:
IMPORT_TEXT: import storageCache from
IMPORT_TEXT: import {CachedValue, CachedFunction, globalCache} from
NPM_MODULE_NAME: webext-storage-cache

# FILE GENERATED WITH: npx ghat fregante/ghatemplates/esm-lint
Expand Down Expand Up @@ -74,13 +74,15 @@ jobs:
- run: npm install ./artifact
- run: npx esbuild --bundle index.js
TypeScript:
if: false
runs-on: ubuntu-latest
needs: Pack
steps:
- uses: actions/download-artifact@v3
- run: npm install ./artifact
- run: echo "${{ env.IMPORT_TEXT }} '${{ env.NPM_MODULE_NAME }}'" > index.ts
- run: tsc index.ts
- run: npm install ./artifact @sindresorhus/tsconfig
- run: echo "${{ env.IMPORT_TEXT }} '${{ env.NPM_MODULE_NAME }}'" > index.mts
- run: echo '{"extends":"@sindresorhus/tsconfig","files":["index.mts"]}' > tsconfig.json
- run: tsc
- run: cat index.js
Node:
runs-on: ubuntu-latest
Expand Down
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,4 @@ Thumbs.db
*.bak
*.log
logs
*.map
/index.js
/index.test-d.js
*.d.ts
distribution
67 changes: 0 additions & 67 deletions index.test-d.ts

This file was deleted.

Loading

0 comments on commit 5255795

Please sign in to comment.