-
Notifications
You must be signed in to change notification settings - Fork 20
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
175 additions
and
100 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// eslint-disable-next-line | ||
module.exports = { | ||
env: { | ||
node: true, | ||
browser: true, | ||
es2021: true, | ||
}, | ||
extends: ['eslint-config-developit', 'prettier', 'eslint:recommended'], | ||
ignorePatterns: ['**/dist/**'], | ||
}; |
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,55 +1,80 @@ | ||
{ | ||
"name": "jsdom-worker", | ||
"version": "0.2.1", | ||
"description": "Experimental Web Worker API implementation for JSDOM.", | ||
"main": "dist/jsdom-worker.js", | ||
"module": "dist/jsdom-worker.module.js", | ||
"unpkg": "dist/jsdom-worker.umd.js", | ||
"scripts": { | ||
"build": "microbundle --external all", | ||
"test": "eslint src test && npm run -s build && jest", | ||
"prepare": "npm run -s build && npm t", | ||
"release": "npm t && git commit -am \"$npm_package_version\" && git tag $npm_package_version && git push && git push --tags && npm publish" | ||
}, | ||
"repository": "developit/jsdom-worker", | ||
"babel": { | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"targets": { | ||
"node": "8" | ||
} | ||
} | ||
] | ||
] | ||
}, | ||
"keywords": [ | ||
"jsdom", | ||
"web worker" | ||
], | ||
"eslintConfig": { | ||
"extends": "eslint-config-developit" | ||
}, | ||
"author": "Jason Miller <[email protected]> (http://jasonformat.com)", | ||
"license": "MIT", | ||
"files": [ | ||
"dist" | ||
], | ||
"devDependencies": { | ||
"@babel/preset-env": "^7.10.2", | ||
"babel-jest": "^26.0.1", | ||
"eslint": "^7.2.0", | ||
"eslint-config-developit": "^1.1.1", | ||
"jest": "^26.0.1", | ||
"microbundle": "^0.12.1", | ||
"node-fetch": "^2.6.0" | ||
}, | ||
"peerDependencies": { | ||
"node-fetch": "*" | ||
}, | ||
"dependencies": { | ||
"mitt": "^1.1.3", | ||
"uuid-v4": "^0.1.0" | ||
} | ||
"name": "jsdom-worker", | ||
"version": "0.2.1", | ||
"description": "Experimental Web Worker API implementation for JSDOM.", | ||
"main": "./dist/jsdom-worker.js", | ||
"module": "./dist/jsdom-worker.mjs", | ||
"unpkg": "./dist/jsdom-worker.umd.js", | ||
"exports": { | ||
"import": "./dist/jsdom-worker.mjs", | ||
"default": "./dist/jsdom-worker.js" | ||
}, | ||
"scripts": { | ||
"build": "microbundle --external all -f esm,cjs,umd", | ||
"test": "eslint '{src,test}/**/*.js' && npm run -s build && jest", | ||
"prepare": "npm run -s build && npm t", | ||
"release": "npm t && git commit -am \"$npm_package_version\" && git tag $npm_package_version && git push && git push --tags && npm publish" | ||
}, | ||
"repository": "developit/jsdom-worker", | ||
"babel": { | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"targets": { | ||
"node": "12" | ||
} | ||
} | ||
] | ||
] | ||
}, | ||
"jest": { | ||
"testEnvironment": "jsdom" | ||
}, | ||
"keywords": [ | ||
"jsdom", | ||
"web worker" | ||
], | ||
"author": "Jason Miller <[email protected]> (http://jasonformat.com)", | ||
"license": "MIT", | ||
"files": [ | ||
"dist" | ||
], | ||
"prettier": { | ||
"useTabs": true, | ||
"arrowParens": "avoid", | ||
"singleQuote": true | ||
}, | ||
"lint-staged": { | ||
"**/*.{js,jsx,ts,tsx,yml}": [ | ||
"prettier --write" | ||
] | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "lint-staged" | ||
} | ||
}, | ||
"devDependencies": { | ||
"@babel/preset-env": "^7.10.2", | ||
"@types/jest": "^28.1.8", | ||
"babel-jest": "^29.0.1", | ||
"eslint": "^7.2.0", | ||
"eslint-config-developit": "^1.1.1", | ||
"eslint-config-prettier": "^8.5.0", | ||
"husky": "^8.0.1", | ||
"jest": "^29.0.1", | ||
"jest-environment-jsdom": "^29.0.1", | ||
"lint-staged": "^13.0.3", | ||
"microbundle": "^0.15.1", | ||
"node-fetch": "^2.6.7", | ||
"prettier": "^2.7.1" | ||
}, | ||
"peerDependencies": { | ||
"node-fetch": "*" | ||
}, | ||
"dependencies": { | ||
"mitt": "^3.0.0", | ||
"uuid-v4": "^0.1.0" | ||
} | ||
} |
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.