-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor!: Migrate from webpack to snowpack for build step (#583)
- Move to snowpack for faster more direct modern web build. - Use npm-force-resolution to update snowpack's esbuild version. This allows earlier access to new features like top level await. - Add `checktypes` script since build skips typechecking for speed. - Remove extraneous export from options.ts - Update supported chrome version in manifest due to explicit output change. - Add custom tsconfig.json just for `ts-node` scripts (`update-db`) since `ts-node` doesn't support ES modules. - Add code for removing test only exports in preparation for unit test setup coming soon. - Have LitToast shim interface extend Element explicitly since explicit typecheck fails otherwise. BREAKING CHANGE: This version includes optional chaining requiring Chrome >=80
- Loading branch information
Showing
12 changed files
with
2,740 additions
and
14,644 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,4 +21,5 @@ jobs: | |
node-version: '14' | ||
- run: npm ci | ||
- run: npm run lint | ||
- run: npm run checktypes | ||
- run: npm run build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
node_modules | ||
dist | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<html> | ||
<head> | ||
<script src="background.js"></script> | ||
<script type="module" src="background.js"></script> | ||
</head> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.