-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
130 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
- name: npm install, build, and test | ||
run: | | ||
npm install | ||
npm run prepare --if-present | ||
npm test | ||
env: | ||
CI: true |
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,9 +1,7 @@ | ||
node_modules | ||
.DS_Store | ||
.cache | ||
.mocha-puppeteer | ||
*.log | ||
build | ||
dist | ||
package-lock.json | ||
yarn.lock | ||
dist | ||
coverage | ||
.DS_Store | ||
*.log |
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 |
---|---|---|
@@ -1,16 +1,20 @@ | ||
{ | ||
"name": "workerize-loader", | ||
"version": "1.0.4", | ||
"version": "1.2.1", | ||
"description": "Automatically move a module into a Web Worker (Webpack loader)", | ||
"main": "dist/index.js", | ||
"repository": "developit/workerize-loader", | ||
"scripts": { | ||
"build": "microbundle --target node --format cjs --no-compress src/*.js", | ||
"build": "microbundle --format cjs --no-compress --inline none src/*.js", | ||
"prepublishOnly": "npm run build", | ||
"dev": "karmatic watch --no-headless", | ||
"test": "npm run build && karmatic", | ||
"test": "npm run build && karmatic && NODE_ENV=production karmatic -p", | ||
"release": "npm t && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish" | ||
}, | ||
"browserslist": [ | ||
"IE 10", | ||
"node 8" | ||
], | ||
"eslintConfig": { | ||
"extends": "eslint-config-developit", | ||
"rules": { | ||
|
@@ -33,14 +37,14 @@ | |
"author": "Jason Miller <[email protected]> (http://jasonformat.com)", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"eslint": "^5.0.0", | ||
"eslint-config-developit": "^1.1.1", | ||
"karmatic": "^1.2.0", | ||
"microbundle": "^0.6.0", | ||
"webpack": "^4.17.1" | ||
"eslint": "^7.2.0", | ||
"eslint-config-developit": "^1.2.0", | ||
"karmatic": "^1.4.0", | ||
"microbundle": "^0.12.1", | ||
"webpack": "^4.43.0" | ||
}, | ||
"dependencies": { | ||
"loader-utils": "^1.1.0" | ||
"loader-utils": "^2.0.0" | ||
}, | ||
"peerDependencies": { | ||
"webpack": "*" | ||
|
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
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module.exports = function () { | ||
return { | ||
mode: process.env.NODE_ENV || 'development' | ||
}; | ||
} |