Skip to content

Commit

Permalink
feat(node): added support for npm7, node16
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiří Fencl committed Aug 20, 2021
1 parent 587e0ef commit 2c43159
Show file tree
Hide file tree
Showing 20 changed files with 40 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: node_js
node_js:
- "14"
- "16"

notifications:
email: false
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@
[![Known Vulnerabilities](https://snyk.io/test/github/seznam/IMA.js-plugins/badge.svg)](https://snyk.io/test/github/seznam/IMA.js-plugins)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)


---
**NOTE**

npm6 users: the root postinstall npm script has been removed and have to be executed manually by `npx lerna bootstrap` after `npm install`
npm7 users may notice shorter output from `npm install`, package dependecies are optimized using npm workspaces
---

## Release

For release new version of packages use lerna. Use following script:

`npm run release`
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@
"lint:fix": "npm run lint -- --fix",
"doc": "lerna run doc",
"audit": "lerna run audit",
"postinstall": "lerna bootstrap --no-ci",
"precommit": "lint-staged",
"release": "lerna version",
"release:publish": "lerna publish from-package --yes"
},
"workspaces": [
"./packages/*"
],
"devDependencies": {
"@babel/core": "^7.11.1",
"@babel/plugin-transform-modules-commonjs": "^7.10.4",
Expand Down Expand Up @@ -52,8 +54,8 @@
"lerna": "^3.22.1",
"lint-staged": "^10.2.11",
"prettier": "^2.0.5",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react": "^16.14.0",
"react-dom": "^16.14.0",
"rollup": "^2.23.0",
"rollup-plugin-copy": "^3.3.0",
"rollup-plugin-peer-deps-external": "^2.2.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-analytic-fb-pixel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@ima/plugin-analytic": "^4.0.1"
},
"peerDependencies": {
"@ima/plugin-script-loader": "1.x"
"@ima/plugin-script-loader": ">= 1.0.0"
},
"browserify": {
"transform": [
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-analytic-google/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@ima/plugin-script-loader": "^2.0.1"
},
"peerDependencies": {
"@ima/plugin-script-loader": "1.x"
"@ima/plugin-script-loader": ">= 1.0.0"
},
"browserify": {
"transform": [
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-halson-rest-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"uri-template": "1.0.1"
},
"peerDependencies": {
"@ima/core": "17.x"
"@ima/core": ">= 17.0.0"
},
"browserify": {
"transform": [
Expand Down
6 changes: 3 additions & 3 deletions packages/plugin-hot-reload/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@
"@ima/plugin-websocket": "^1.0.2"
},
"peerDependencies": {
"@ima/core": "17.x",
"@ima/plugin-websocket": "*"
"@ima/core": ">= 17.0.0",
"@ima/plugin-websocket": ">= 1.0.2"
},
"browserify": {
"transform": [
"babelify"
]
},
"engines": {
"npm": ">=4 <7"
"npm": ">=4 <8"
}
}
2 changes: 1 addition & 1 deletion packages/plugin-local-storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"license": "MIT",
"peerDependencies": {
"@ima/core": "17.x"
"@ima/core": ">= 17.0.0"
},
"browserify": {
"transform": [
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-managed-component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
},
"homepage": "https://github.com/seznam/IMA.js-plugins/tree/master/packages/plugin-managed-component#readme",
"peerDependencies": {
"@ima/core": "17.x",
"react-dom": "^16.13.1"
"@ima/core": ">= 17.0.0",
"react-dom": ">= 16.13.1"
},
"engines": {
"node": ">=12",
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-merkur/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
]
},
"peerDependencies": {
"@ima/core": "^17.x"
"@ima/core": ">= 17.0.0"
},
"engines": {
"npm": ">=4 <7"
"npm": ">=4 <8"
}
}
2 changes: 1 addition & 1 deletion packages/plugin-resource-loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"license": "MIT",
"engines": {
"node": ">=6",
"npm": ">=4 <7"
"npm": ">=4 <8"
},
"browserify": {
"transform": [
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-rest-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"engines": {
"node": ">=6",
"npm": ">=4 <7"
"npm": ">=4 <8"
},
"browserify": {
"transform": [
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-script-loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"engines": {
"node": ">=6",
"npm": ">=4 <7"
"npm": ">=4 <8"
},
"browserify": {
"transform": [
Expand Down
6 changes: 3 additions & 3 deletions packages/plugin-select/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@
]
},
"peerDependencies": {
"@ima/core": "17.x",
"react": "16.x"
"@ima/core": ">= 17.0.0",
"react": ">= 16.0.0"
},
"engines": {
"node": ">=6",
"npm": ">=4 <7"
"npm": ">=4 <8"
},
"dependencies": {
"hoist-non-react-statics": "^3.3.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-self-xss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@
},
"engines": {
"node": ">=6",
"npm": ">=4 <7"
"npm": ">=4 <8"
}
}
2 changes: 1 addition & 1 deletion packages/plugin-shared-cache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"engines": {
"node": ">=6",
"npm": ">=4 <7"
"npm": ">=4 <8"
},
"browserify": {
"transform": [
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-style-loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
"engines": {
"node": ">=6",
"npm": ">=4 <7"
"npm": ">=4 <8"
},
"browserify": {
"transform": [
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-testing-integration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"license": "MIT",
"engines": {
"node": ">=6",
"npm": ">=4 <7"
"npm": ">=4 <8"
},
"browserify": {
"transform": [
Expand All @@ -52,6 +52,6 @@
"to-aop": "^0.5.3"
},
"peerDependencies": {
"@ima/core": "*"
"@ima/core": ">= 17.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/plugin-useragent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ oc.bind('UserAgent', UserAgent);

```javascript
// /app/config/bind.js
oc.bind('Foo', ns.App.Foo, ['UserAgent');
oc.bind('Foo', ns.App.Foo, ['UserAgent']);

```

Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-websocket/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@
]
},
"engines": {
"npm": ">=4 <7"
"npm": ">=4 <8"
}
}

0 comments on commit 2c43159

Please sign in to comment.