Skip to content

Commit

Permalink
Properly implement unmount. Use rollup, degh, and browserslist. Resolves
Browse files Browse the repository at this point in the history
 #5 (#16)
  • Loading branch information
joeldenning authored Oct 12, 2021
1 parent 9a1a2c9 commit eba149c
Show file tree
Hide file tree
Showing 7 changed files with 210 additions and 152 deletions.
13 changes: 12 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
{
"presets": [
"@babel/preset-env"
]
],
"env": {
"test": {
"presets": [[
"@babel/preset-env", {
"targets": {
"node": "current"
}
}
]]
}
}
}
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ const config = {
testEnvironment: "jsdom",
};

module.exports = config;
export default config;
23 changes: 17 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
"name": "single-spa-dojo",
"version": "1.0.0",
"description": "single-spa adapter for dojo framework",
"main": "lib/single-spa-dojo.js",
"main": "dist/single-spa-dojo.js",
"type": "module",
"scripts": {
"build": "babel src --out-dir lib --source-maps",
"test": "jest",
"build": "rimraf dist && rollup -c",
"test": "cross-env NODE_OPTIONS=--experimental-vm-modules BABEL_ENV=test jest",
"format": "prettier --write .",
"check-format": "prettier --check .",
"coverage": "jest --coverage",
Expand All @@ -18,7 +19,10 @@
"url": "git+https://github.com/single-spa/single-spa-dojo.git"
},
"files": [
"lib"
"dist"
],
"browserslist": [
"extends browserslist-config-single-spa"
],
"keywords": [
"single-spa",
Expand All @@ -32,16 +36,23 @@
},
"homepage": "https://github.com/single-spa/single-spa-dojo#readme",
"devDependencies": {
"@babel/cli": "^7.8.4",
"@babel/core": "^7.8.4",
"@babel/eslint-parser": "^7.15.8",
"@babel/preset-env": "^7.8.4",
"@jest/globals": "^27.2.5",
"@rollup/plugin-node-resolve": "^13.0.5",
"@types/jest": "^27.0.2",
"browserslist-config-single-spa": "^1.0.1",
"cross-env": "^7.0.3",
"dom-element-getter-helpers": "^1.1.1",
"eslint": "^8.0.0",
"eslint-config-important-stuff": "^1.1.0",
"husky": "^7.0.0",
"jest": "^27.2.5",
"prettier": "^2.4.1",
"pretty-quick": "^3.1.1"
"pretty-quick": "^3.1.1",
"rimraf": "^3.0.2",
"rollup": "^2.58.0",
"rollup-plugin-terser": "^7.0.2"
}
}
Loading

0 comments on commit eba149c

Please # to comment.