diff --git a/CHANGELOG.md b/CHANGELOG.md index edbe404a..5ac88d5c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [4.1.2](https://github.com/asmyshlyaev177/react-horizontal-scrolling-menu/compare/v4.1.1...v4.1.2) (2023-10-30) + ### [4.1.1](https://github.com/asmyshlyaev177/react-horizontal-scrolling-menu/compare/v4.1.0...v4.1.1) (2023-10-04) diff --git a/package.json b/package.json index 3b3ab150..234b2186 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-horizontal-scrolling-menu", - "version": "4.1.1", + "version": "4.1.2", "author": "asmyshlyaev177", "description": "Scrolling horizontal menu component for React, support mouse and touch devices.", "license": "ISC", @@ -33,34 +33,125 @@ } }, "scripts": { - "test:unit": "jest", - "test:e2e": "run-p -r demo:test cypress:run-with-wait", - "cypress:run-with-wait": "run-s wait cypress:run", - "cypress:run": "cypress run", - "dev": "cross-env IS_DEVELOPMENT=true rollup -c rollup.config.js -w", + "test:unit": "wireit", + "test:e2e": "wireit", + "dev": "wireit", "dev2": "webpack -w", - "kill-rollup": "sleep 3 && ps aux | grep rollup | awk '{print $2}' | xargs kill -9 &", - "postbuild": "wait-on dist/index.cjs dist/index.mjs dist/types && sleep 5 && yarn kill-rollup", - "build": "rm -rf dist && rollup -c rollup.config.js &", - "example": "cd example-nextjs && yarn dev", - "example-cra": "cd example-cra && yarn start", - "example:test": "cd example-nextjs && NEXT_PUBLIC_IS_TEST=true CHOKIDAR_USEPOLLING=1 yarn dev", - "wait": "wait-on http://localhost:3003 && sleep 10", - "demo": "run-p dev example", - "demo:test": "run-s build example:test", + "build": "wireit", + "demo": "wireit", "commit": "cz", - "release": "yarn test:unit && yarn test:e2e && standard-version", - "publish": "yarn build && git push --follow-tags origin main && npm publish", + "release": "standard-version", + "publish1": "wireit", "setup-yarn": "yarn cache clean && yarn set version 1.22.1", - "install-deps": "cd example-nextjs && yarn install && cd ../ && yarn install", - "setup-husky": "husky install", - "cz-install": "commitizen init cz-conventional-changelog --dev --exact --yarn", - "link-react": "rm -rf node_modules/react && rm -rf node_modules/react-dom && cd example-nextjs/node_modules/react && yarn link && cd ../react-dom && yarn link && cd ../../../ && yarn link react && yarn link react-dom && rm -rf node_modules/react && rm -rf node_modules/react-dom", - "prepare": "yarn link-react", - "setup": "yarn setup-yarn && yarn install-deps && yarn setup-husky && yarn cz-install", - "cz-husky-init": "husky add .husky/commit-msg 'npx --no-install commitlint --edit \"$1\"'", + "install-deps": "wireit", + "setup-husky": "wireit", + "cz-install": "wireit", + "link-react": "wireit", + "setup-tooling": "wireit", + "setup": "yarn setup-yarn && yarn install && yarn setup-tooling", + "cz-husky-init": "wireit", "deploy-gp": "babel-node deploy-gp.js" }, + "wireit": { + "release": { + "command": "standard-version", + "dependencies": [ + "test:unit", + "test:e2e" + ] + }, + "publish1": { + "command": "npm publish", + "dependencies": [ + "build", + "push" + ] + }, + "push": { + "command": "git push --follow-tags origin main" + }, + "test:unit": { + "command": "jest" + }, + "test:e2e": { + "command": "wait-on http://localhost:3003 && cypress run", + "dependencies": [ + "demo:test" + ] + }, + "dev": { + "command": "cross-env IS_DEVELOPMENT=true rollup -c rollup.config.js -w", + "service": true + }, + "demo": { + "command": "cd example-nextjs && yarn dev", + "service": true, + "dependencies": [ + "dev" + ] + }, + "demo:test": { + "command": "cd example-nextjs && NEXT_PUBLIC_IS_TEST=true CHOKIDAR_USEPOLLING=1 yarn dev", + "dependencies": [ + "dev" + ], + "service": true + }, + "install-deps": { + "command": "yarn install" + }, + "install-example-deps": { + "command": "cd example-nextjs && yarn install", + "dependencies": [ + "install-deps" + ] + }, + "link-react": { + "command": "rm -rf node_modules/react && rm -rf node_modules/react-dom && cd example-nextjs/node_modules/react && yarn link && cd ../react-dom && yarn link && cd ../../../ && yarn link react && yarn link react-dom && rm -rf node_modules/react && rm -rf node_modules/react-dom", + "dependencies": [ + "install-example-deps", + "install-deps" + ] + }, + "setup-tooling": { + "command": "echo 'setup tooling'", + "dependencies": [ + "install-example-deps", + "setup-husky", + "cz-husky-init", + "cz-install", + "link-react" + ] + }, + "setup-husky": { + "command": "husky install", + "dependencies": [ + "install-deps" + ] + }, + "cz-husky-init": { + "command": "husky add .husky/commit-msg 'npx --no-install commitlint --edit \"$1\"'", + "dependencies": [ + "install-deps", + "setup-husky" + ] + }, + "cz-install": { + "command": "commitizen init cz-conventional-changelog --dev --exact --yarn", + "dependencies": [ + "install-deps" + ] + }, + "rm-build": { + "command": "rm -rf dist" + }, + "build": { + "command": "rollup -c rollup.config.js", + "dependencies": [ + "rm-build" + ] + } + }, "keywords": [ "react", "react-component", @@ -153,7 +244,8 @@ "wait-on": "^7.0.1", "webpack": "^5.72.0", "webpack-cli": "^4.7.2", - "webpack-merge": "^5.8.0" + "webpack-merge": "^5.8.0", + "wireit": "^0.14.1" }, "peerDependencies": { "react": ">=16.8"