diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..b5698c2 --- /dev/null +++ b/.npmrc @@ -0,0 +1,13 @@ +audit=false +enable-pre-post-scripts=true +fund=false +package-lock=false +prefer-dedupe=true +prefer-offline=false +save-prefix=~ +save=false +strict-peer-dependencies=false +unsafe-perm=true +loglevel=error +shamefully-hoist=true +resolution-mode=highest diff --git a/package.json b/package.json index 0d6ab60..a4109e6 100644 --- a/package.json +++ b/package.json @@ -187,13 +187,14 @@ "devDependencies": { "@babel/core": "^7.13.0", "@babel/eslint-parser": "~7.12.1", - "@babel/plugin-proposal-private-property-in-object": "^7.21.11", + "@babel/plugin-proposal-private-property-in-object": "~7.21.11", "@babel/plugin-syntax-class-properties": "~7.12.1", "@babel/plugin-syntax-jsx": "~7.12.1", "@babel/register": "7.12.10", "@types/react": "^18.2.20", "babel-plugin-react-html-attrs": "~2.1.0", "chai": "~4.2.0", + "conventional-github-releaser": "latest", "css-loader": "~4.3.0", "enzyme": "~3.2.0", "enzyme-adapter-react-16": "~1.15.5", @@ -217,6 +218,7 @@ "sass": "~1.47.0", "sass-loader": "~10.1.1", "sinon": "~9.2.3", + "standard-version": "latest", "style-loader": "~1.3.0", "typescript": "^4.5.4", "webpack": "~4.46.0", @@ -238,7 +240,11 @@ "modules:debug": "./docker/debug.sh", "modules:size-analyzer": "webpack --config webpack/webpack.config.js --json | webpack-bundle-size-analyzer", "modules:tree": "webpack --config webpack/webpack.config.js --json ", - "prebuild": "NODE_ENV=test npm run test:unit", + "postrelease": "npm run release:tags && npm run release:github && npm publish", + "prerelease": "npm run build", + "release": "standard-version -a", + "release:github": "conventional-github-releaser -p angular", + "release:tags": "git push --follow-tags origin HEAD:master", "test": "npm run test:coverage", "test:coverage": "NODE_ENV=test nyc --reporter=text-lcov mocha test/**/*-test.js", "test:unit": "NODE_ENV=test nyc mocha test/**/*-test.js",