From 5ecbd7cbb28a1aec55c446febf8c3e0de922e831 Mon Sep 17 00:00:00 2001 From: Juan Correa Date: Thu, 13 Feb 2025 02:16:06 -0500 Subject: [PATCH 01/10] chore: add circleci config to publish to npm --- .circleci/config.yml | 31 +++++++++++++++++++++++++++++++ .gitignore | 1 + 2 files changed, 32 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..139a72e --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,31 @@ +version: 2.1 + +executors: + node-docker-executor: + docker: + - image: circleci/node:11-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 # Ensure all dependencies are installed, including webpack + - 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 From 61e6e3d07dcf96648e859d9b0137a1dd9e8d00e8 Mon Sep 17 00:00:00 2001 From: Juan Correa Date: Thu, 13 Feb 2025 10:14:21 -0500 Subject: [PATCH 02/10] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 139a72e..c74da26 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,7 +3,7 @@ version: 2.1 executors: node-docker-executor: docker: - - image: circleci/node:11-browsers + - image: circleci/node:18.20.4-browsers working_directory: ~/project jobs: From cbc58564e7e8599d2f131ab744293fe964fcaa43 Mon Sep 17 00:00:00 2001 From: Juan Correa Date: Thu, 13 Feb 2025 10:20:01 -0500 Subject: [PATCH 03/10] chore: use pm4ml prefix --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 3562a43..ebd83e8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "@modusbox/microfrontend-utils", - "version": "0.0.3", + "name": "@pm4ml/microfrontend-utils", + "version": "0.0.4", "main": "lib/index.js", "license": "MIT", "author": "Ivan Annovazzi ", From 560df5e6083649b33726be1bc29548f7b8229d9c Mon Sep 17 00:00:00 2001 From: Juan Correa Date: Thu, 13 Feb 2025 10:21:40 -0500 Subject: [PATCH 04/10] chore: update image --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c74da26..c6822a3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,7 +3,7 @@ version: 2.1 executors: node-docker-executor: docker: - - image: circleci/node:18.20.4-browsers + - image: cimg/node:18.20.4-browsers working_directory: ~/project jobs: From 62f55dbdb1d8338ad742379b90c0deebb0a85a9d Mon Sep 17 00:00:00 2001 From: Juan Correa Date: Thu, 13 Feb 2025 10:26:28 -0500 Subject: [PATCH 05/10] chore: update npm token var name --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c6822a3..7dc134f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -18,7 +18,7 @@ jobs: - run: name: Set Up npm Credentials command: | - echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc + echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc - run: name: Publish to npm command: | From ec93b2149df9ee9497de0f52019b43c3a6327aeb Mon Sep 17 00:00:00 2001 From: Juan Correa Date: Thu, 13 Feb 2025 11:08:54 -0500 Subject: [PATCH 06/10] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 7dc134f..c6822a3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -18,7 +18,7 @@ jobs: - run: name: Set Up npm Credentials command: | - echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc + echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc - run: name: Publish to npm command: | From c4db2a2f090a9717ae87fe386442cf81ef93cfb8 Mon Sep 17 00:00:00 2001 From: Juan Correa Date: Thu, 13 Feb 2025 11:11:22 -0500 Subject: [PATCH 07/10] chore: set to public package --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index ebd83e8..38c877c 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,9 @@ "dependencies": { "lodash": "^4.17.21" }, + "publishConfig": { + "access": "public" + }, "devDependencies": { "@babel/core": "^7.13.16", "@babel/preset-env": "^7.13.15", From 6dec1822588f79985723645fa315e8721c319906 Mon Sep 17 00:00:00 2001 From: Juan Correa Date: Thu, 13 Feb 2025 11:25:11 -0500 Subject: [PATCH 08/10] chore: sync migration to pm4ml --- .eslintignore | 1 + README.md | 4 ++-- package.json | 2 +- src/README.md | 18 +++++++++--------- 4 files changed, 13 insertions(+), 12 deletions(-) diff --git a/.eslintignore b/.eslintignore index e69de29..2e1fa2d 100644 --- a/.eslintignore +++ b/.eslintignore @@ -0,0 +1 @@ +*.md \ No newline at end of file diff --git a/README.md b/README.md index a9021f3..5e83538 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ -# @modusbox/microfrontend-utils +# @pm4ml/microfrontend-utils A collection of Typescript utilities for the frontend apps. -To install the module run `yarn add @modusbox/microfrontend-utils`. +To install the module run `yarn add @pm4ml/microfrontend-utils`. Documentation is available at [https://modusintegration.github.io/microfrontend-utils](https://modusintegration.github.io/microfrontend-utils) diff --git a/package.json b/package.json index 38c877c..97e088b 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@pm4ml/microfrontend-utils", "version": "0.0.4", "main": "lib/index.js", - "license": "MIT", + "license": "Apache-2.0", "author": "Ivan Annovazzi ", "types": "lib/index.d.ts", "files": [ diff --git a/src/README.md b/src/README.md index 174ad7f..1257ccb 100644 --- a/src/README.md +++ b/src/README.md @@ -1,34 +1,34 @@ -# @modusbox/microfrontend-utils +# @pm4ml/microfrontend-utils A collection of Typescript utilities for the frontend apps. ### Installation -To install the module simply run `yarn add @modusbox/microfrontend-utils`. +To install the module simply run `yarn add @pm4ml/microfrontend-utils`. ### Usage ```ts // import everything -import * as utils from '@modusbox/microfrontend-utils'; +import * as utils from '@pm4ml/microfrontend-utils'; await utils.async.sleep(10); // import all from module -import * as async from '@modusbox/microfrontend-utils/lib/async'; +import * as async from '@pm4ml/microfrontend-utils/lib/async'; await async.sleep(10); -// import from module as named export -import { sleep } from '@modusbox/microfrontend-utils/lib/async'; +// import from module as named export +import { sleep } from '@pm4ml/microfrontend-utils/lib/async'; await sleep(10); // import a single utility -import sleep from '@modusbox/microfrontend-utils/lib/async/sleep'; +import sleep from '@pm4ml/microfrontend-utils/lib/async/sleep'; await sleep(10); // import a type -import { TextFileContent } from '@modusbox/microfrontend-utils/lib/file'; +import { TextFileContent } from '@pm4ml/microfrontend-utils/lib/file'; ``` Modules available: -- [async](./async/README.md) \ No newline at end of file +- [async](./async/README.md) From adf7bd1eb95b559c46656abc2aacc55fdf17346e Mon Sep 17 00:00:00 2001 From: Juan Correa Date: Thu, 13 Feb 2025 16:17:45 -0500 Subject: [PATCH 09/10] chore: update repo url --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5e83538..afc5f72 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ A collection of Typescript utilities for the frontend apps. To install the module run `yarn add @pm4ml/microfrontend-utils`. -Documentation is available at [https://modusintegration.github.io/microfrontend-utils](https://modusintegration.github.io/microfrontend-utils) +Documentation is available at [https://github.com/pm4ml/microfrontend-utils](https://github.com/pm4ml/microfrontend-utils) ### Development From cda8f594ebc4e4d7f898c8df056c4ed08b8779e5 Mon Sep 17 00:00:00 2001 From: Juan Correa Date: Thu, 13 Feb 2025 16:21:49 -0500 Subject: [PATCH 10/10] chore: bump package version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 97e088b..06c6d9d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@pm4ml/microfrontend-utils", - "version": "0.0.4", + "version": "0.0.5", "main": "lib/index.js", "license": "Apache-2.0", "author": "Ivan Annovazzi ",