diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..861b697 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,31 @@ +version: 2.1 + +executors: + node-docker-executor: + docker: + - image: cimg/node:18.20.4-browsers + working_directory: ~/project + +jobs: + # Job to publish to npm + npm-publish: + executor: node-docker-executor + steps: + - checkout + - run: + name: Install dependencies + command: yarn install + - run: + name: Set Up npm Credentials + command: | + echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc + - run: + name: Publish to npm + command: | + npm publish + +workflows: + version: 2 + publish: + jobs: + - npm-publish \ No newline at end of file diff --git a/.gitignore b/.gitignore index 12cddb2..f51c73f 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ # IDE .vscode +.idea # Lib /dist diff --git a/README.md b/README.md index 550565b..82c4431 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ -# @modusbox/redux-utils +# @pm4ml/redux-utils A collection of Typescript utilities for the frontend apps. -To install the module run `yarn add @modusbox/redux-utils`. +To install the module run `yarn add @pm4ml/redux-utils`. -Documentation is available at [https://modusintegration.github.io/redux-utils](https://modusintegration.github.io/redux-utils) +Documentation is available at [https://github.com/pm4ml/redux-utils](https://github.com/pm4ml/redux-utils) ### Development diff --git a/package.json b/package.json index 7ca5a1d..595b660 100644 --- a/package.json +++ b/package.json @@ -1,15 +1,18 @@ { - "name": "@modusbox/redux-utils", - "version": "0.0.11", + "name": "@pm4ml/redux-utils", + "version": "0.0.13", "main": "lib/index.js", - "license": "MIT", + "license": "Apache-2.0", "author": "Ivan Annovazzi ", "types": "lib/index.d.ts", "files": [ "lib/**/*" ], + "publishConfig": { + "access": "public" + }, "dependencies": { - "@modusbox/ts-utils": "^0.0.3", + "@pm4ml/ts-utils": "^0.0.6", "axios": "^0.21.1", "lodash": "^4.17.21", "object-hash": "^2.1.1", diff --git a/src/README.md b/src/README.md index d037c0a..f18d7f9 100644 --- a/src/README.md +++ b/src/README.md @@ -1,10 +1,10 @@ -# @modusbox/redux-utils +# @pm4ml/redux-utils A collection of Typescript utilities for the frontend apps. ### Installation -To install the module simply run `yarn add @modusbox/redux-utils`. +To install the module simply run `yarn add @pm4ml/redux-utils`. ### Usage diff --git a/src/api/utils.ts b/src/api/utils.ts index 4d27e6d..efeb2d2 100644 --- a/src/api/utils.ts +++ b/src/api/utils.ts @@ -1,4 +1,4 @@ -import sleep from '@modusbox/ts-utils/lib/async/sleep'; +import sleep from '@pm4ml/ts-utils/lib/async/sleep'; import { Method, MockCall, diff --git a/yarn.lock b/yarn.lock index 4b6cf38..92e61c4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1161,13 +1161,6 @@ "@types/yargs" "^15.0.0" chalk "^4.0.0" -"@modusbox/ts-utils@^0.0.3": - version "0.0.3" - resolved "https://registry.yarnpkg.com/@modusbox/ts-utils/-/ts-utils-0.0.3.tgz#8dd31001a3cb5eed08ff1cc42b37cc5796675b25" - integrity sha512-VcxVMMMmTpccy59uMw3GCf/vLeohRbm7cswoSu4WwksEDmjt+nNu1mf1mHDzf1HrSXTQnN/dLRh/r7ZlOkNTXw== - dependencies: - lodash "^4.17.21" - "@nodelib/fs.scandir@2.1.4": version "2.1.4" resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.4.tgz#d4b3549a5db5de2683e0c1071ab4f140904bbf69" @@ -1189,6 +1182,13 @@ "@nodelib/fs.scandir" "2.1.4" fastq "^1.6.0" +"@pm4ml/ts-utils@^0.0.6": + version "0.0.6" + resolved "https://registry.yarnpkg.com/@pm4ml/ts-utils/-/ts-utils-0.0.6.tgz#3727b2d6ccc5f665aa5b2a62e6f78bbef014de59" + integrity sha512-LmvaiY5xnmPzh/qTPFpSvINaSKBUBOa2smI0WJ8Z3ig9Z2gldPLO0SKaj6jAFjs5PM1sdk+AwZ6lOnq5gzv7HA== + dependencies: + lodash "^4.17.21" + "@redux-saga/core@^1.1.3": version "1.1.3" resolved "https://registry.yarnpkg.com/@redux-saga/core/-/core-1.1.3.tgz#3085097b57a4ea8db5528d58673f20ce0950f6a4" @@ -3228,8 +3228,6 @@ getpass@^0.1.1: version "0.1.7" resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" integrity sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo= - dependencies: - assert-plus "^1.0.0" glob-parent@^5.0.0, glob-parent@^5.1.0: version "5.1.2"