From 2e254e06304be740531d0b19dbf9bba9afd5d184 Mon Sep 17 00:00:00 2001 From: BipanKishore Date: Sun, 19 May 2024 00:39:38 +0530 Subject: [PATCH 1/7] lerna version --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index d033d04..d1ec8c4 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,8 @@ "core:prod": "lerna run core:prod", "start": "lerna run start", "prod": "lerna run prod", - "patch": "lerna run patch" + "patch": "lerna run patch", + "version": "lerna version" }, "devDependencies": { "@babel/eslint-parser": "^7.22.11", From be0b150d927c604ab32a01a412fca177aa2c4d64 Mon Sep 17 00:00:00 2001 From: BipanKishore Date: Sun, 19 May 2024 13:11:08 +0530 Subject: [PATCH 2/7] testing-beta-for-code-coverage --- packages/resizable-core/build.script.js | 34 ++++++++++++--------- packages/resizable-core/package.json | 2 +- packages/resizable-core/src/index.ts | 1 + packages/resizable-panes-react/src/index.ts | 2 ++ 4 files changed, 23 insertions(+), 16 deletions(-) diff --git a/packages/resizable-core/build.script.js b/packages/resizable-core/build.script.js index 53b2532..e41240d 100644 --- a/packages/resizable-core/build.script.js +++ b/packages/resizable-core/build.script.js @@ -47,7 +47,11 @@ export const cjsOutOptionsDevelopment = { export const cjsOutOptionsProduction = { file: `${CJS_BUILD_PATH}${'index.cjs.js'}`, - format: 'cjs' + format: 'cjs', + sourcemap: true, + sourcemapPathTransform: (sourcePath) => { + return sourcePath.substring('../'.length) + } } export const esmOutOptionsDevelopment = { @@ -61,19 +65,25 @@ export const esmOutOptionsDevelopment = { export const esmOutOptionsProduction = { file: `${ESM_BUILD_PATH}${'index.esm.js'}`, - format: 'esm' + format: 'esm', + sourcemap: true, + sourcemapPathTransform: (sourcePath) => { + return sourcePath.substring('../'.length) + } } export const iffeOutOptionsProduction = { file: `${IFFE_BUILD_PATH}${'index.iffe.js'}`, name: 'resizablePanes', - format: 'iife' + format: 'iife', + globals } export const umdOutOptionsProduction = { file: `${UMD_BUILD_PATH}${'index.umd.js'}`, name: 'resizablePanes', - format: 'umd' + format: 'umd', + globals } export const developmentPlugins = [ @@ -116,24 +126,18 @@ export const typesRollupConfig = { export const developmentConfig = { input: 'src/index.ts', output: [ - { - ...cjsOutOptionsDevelopment - }, - { - ...esmOutOptionsDevelopment - } + cjsOutOptionsDevelopment, + esmOutOptionsDevelopment ], plugins: developmentPlugins, external: EXTERNALS } -const productionOutput = [cjsOutOptionsProduction, +const productionOutput = [ + cjsOutOptionsProduction, esmOutOptionsProduction, iffeOutOptionsProduction, - umdOutOptionsProduction].map((outputConfig) => ({ - ...outputConfig, - globals -})) + umdOutOptionsProduction] export const productionConfigMinSet = { input: 'src/index.ts', diff --git a/packages/resizable-core/package.json b/packages/resizable-core/package.json index 23abbe9..547d381 100644 --- a/packages/resizable-core/package.json +++ b/packages/resizable-core/package.json @@ -115,7 +115,7 @@ "url": "https://github.com/BipanKishore/resizable-panes-react.git" }, "bugs": { - "url": "https://github.com/BipanKishore/resizable-panes-react/issues", + "url": "https://github.com/BipanKishore/resizable-panes/issues", "email": "bipankishore@gmail.com" }, "homepage": "https://bipankishore.github.io/resizable-panes-demo/" diff --git a/packages/resizable-core/src/index.ts b/packages/resizable-core/src/index.ts index 6201458..c7d424c 100644 --- a/packages/resizable-core/src/index.ts +++ b/packages/resizable-core/src/index.ts @@ -14,3 +14,4 @@ export * from './services/detection-service' export * from './utils/constant' export * from './@types' +console.log('Hey') diff --git a/packages/resizable-panes-react/src/index.ts b/packages/resizable-panes-react/src/index.ts index 81b5ac2..0a68df7 100644 --- a/packages/resizable-panes-react/src/index.ts +++ b/packages/resizable-panes-react/src/index.ts @@ -7,3 +7,5 @@ export { } from './components/resizable-pane-provider' export {RATIO, BUTTOM_FIRST, TOP_FIRST} from '../../resizable-core' + +console.log('Hey') From de41fe4c5b061a42b8a627adf12291f66036b6fd Mon Sep 17 00:00:00 2001 From: BipanKishore Date: Sun, 19 May 2024 13:32:39 +0530 Subject: [PATCH 3/7] source map issue fix for lib --- .github/workflows/build-n-deploy.yml | 6 +++++- packages/demo-app/package.json | 1 - packages/resizable-core/build.script.js | 14 +++++--------- packages/resizable-panes-react/package.json | 2 +- 4 files changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build-n-deploy.yml b/.github/workflows/build-n-deploy.yml index c2136ba..e1a5b22 100644 --- a/.github/workflows/build-n-deploy.yml +++ b/.github/workflows/build-n-deploy.yml @@ -43,9 +43,13 @@ jobs: run: | npm run core:prod - - name: Resizable React/JS/Next/Demo App Builds + - name: Resizable React/JS/Next Builds run: | npm run prod + + - name: Resizable Demo App Build + run: | + npm run build - name: Resizable React Testing run: | diff --git a/packages/demo-app/package.json b/packages/demo-app/package.json index 6e80abe..7268bf7 100644 --- a/packages/demo-app/package.json +++ b/packages/demo-app/package.json @@ -29,7 +29,6 @@ "scripts": { "demo": "react-scripts start", "build": "react-scripts build", - "prod": "react-scripts build", "eject": "react-scripts eject", "prelink-local": "rimraf node_modules/.cache", "link-local": "npm link resizable-panes-react react", diff --git a/packages/resizable-core/build.script.js b/packages/resizable-core/build.script.js index e41240d..face4ce 100644 --- a/packages/resizable-core/build.script.js +++ b/packages/resizable-core/build.script.js @@ -72,18 +72,15 @@ export const esmOutOptionsProduction = { } } -export const iffeOutOptionsProduction = { - file: `${IFFE_BUILD_PATH}${'index.iffe.js'}`, - name: 'resizablePanes', - format: 'iife', - globals -} - export const umdOutOptionsProduction = { file: `${UMD_BUILD_PATH}${'index.umd.js'}`, name: 'resizablePanes', format: 'umd', - globals + globals, + sourcemap: true, + sourcemapPathTransform: (sourcePath) => { + return sourcePath.substring('../'.length) + } } export const developmentPlugins = [ @@ -136,7 +133,6 @@ export const developmentConfig = { const productionOutput = [ cjsOutOptionsProduction, esmOutOptionsProduction, - iffeOutOptionsProduction, umdOutOptionsProduction] export const productionConfigMinSet = { diff --git a/packages/resizable-panes-react/package.json b/packages/resizable-panes-react/package.json index e706ffa..f36b9d3 100644 --- a/packages/resizable-panes-react/package.json +++ b/packages/resizable-panes-react/package.json @@ -1,6 +1,6 @@ { "name": "resizable-panes-react", - "version": "6.0.21", + "version": "6.0.22-1", "description": "A straightforward library that enables dynamic resizing of layouts and saves the layout configurations.", "module": "./lib/esm/index.esm.js", "main": "./lib/cjs/index.cjs.js", From d57af6596fcf6f9b14f0d194231c2787c08de872 Mon Sep 17 00:00:00 2001 From: BipanKishore Date: Sun, 19 May 2024 13:36:12 +0530 Subject: [PATCH 4/7] demo:prod --- .github/workflows/build-n-deploy.yml | 2 +- package.json | 1 + packages/demo-app/package.json | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-n-deploy.yml b/.github/workflows/build-n-deploy.yml index e1a5b22..1d33fd8 100644 --- a/.github/workflows/build-n-deploy.yml +++ b/.github/workflows/build-n-deploy.yml @@ -43,7 +43,7 @@ jobs: run: | npm run core:prod - - name: Resizable React/JS/Next Builds + - name: Resizable React/JS/Next libs Builds run: | npm run prod diff --git a/package.json b/package.json index d1ec8c4..b71d217 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "scripts": { "lint": "lerna run lint", "demo": "lerna run demo", + "demo:prod": "lerna run demo:prod" , "core": "lerna run core", "core:prod": "lerna run core:prod", "start": "lerna run start", diff --git a/packages/demo-app/package.json b/packages/demo-app/package.json index 7268bf7..d6f1344 100644 --- a/packages/demo-app/package.json +++ b/packages/demo-app/package.json @@ -28,7 +28,7 @@ }, "scripts": { "demo": "react-scripts start", - "build": "react-scripts build", + "demo:prod": "react-scripts build", "eject": "react-scripts eject", "prelink-local": "rimraf node_modules/.cache", "link-local": "npm link resizable-panes-react react", From 525ea63d20a4a5e7a3d44783d1dffefd63929127 Mon Sep 17 00:00:00 2001 From: BipanKishore Date: Sun, 19 May 2024 13:38:36 +0530 Subject: [PATCH 5/7] removed console.log('Hey') --- packages/resizable-core/src/index.ts | 1 - packages/resizable-panes-react/src/index.ts | 2 -- 2 files changed, 3 deletions(-) diff --git a/packages/resizable-core/src/index.ts b/packages/resizable-core/src/index.ts index c7d424c..6201458 100644 --- a/packages/resizable-core/src/index.ts +++ b/packages/resizable-core/src/index.ts @@ -14,4 +14,3 @@ export * from './services/detection-service' export * from './utils/constant' export * from './@types' -console.log('Hey') diff --git a/packages/resizable-panes-react/src/index.ts b/packages/resizable-panes-react/src/index.ts index 0a68df7..81b5ac2 100644 --- a/packages/resizable-panes-react/src/index.ts +++ b/packages/resizable-panes-react/src/index.ts @@ -7,5 +7,3 @@ export { } from './components/resizable-pane-provider' export {RATIO, BUTTOM_FIRST, TOP_FIRST} from '../../resizable-core' - -console.log('Hey') From 8ec4ff6fa265e65bad6882b1063feed027671e37 Mon Sep 17 00:00:00 2001 From: BipanKishore Date: Sun, 19 May 2024 13:39:50 +0530 Subject: [PATCH 6/7] patch --- packages/resizable-core/package.json | 2 +- packages/resizable-panes-js/package.json | 2 +- packages/resizable-panes-next/package.json | 2 +- packages/resizable-panes-react/package.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/resizable-core/package.json b/packages/resizable-core/package.json index 547d381..b7526d3 100644 --- a/packages/resizable-core/package.json +++ b/packages/resizable-core/package.json @@ -1,6 +1,6 @@ { "name": "resizable-core", - "version": "6.0.9", + "version": "6.0.10", "description": "A straightforward library that enables dynamic resizing of layouts and saves the layout configurations.", "module": "./lib/esm/index.esm.js", "main": "./lib/cjs/index.cjs.js", diff --git a/packages/resizable-panes-js/package.json b/packages/resizable-panes-js/package.json index 59a0e2f..4df7e44 100644 --- a/packages/resizable-panes-js/package.json +++ b/packages/resizable-panes-js/package.json @@ -1,6 +1,6 @@ { "name": "resizable-panes-js", - "version": "6.0.21", + "version": "6.0.22", "description": "A straightforward library that enables dynamic resizing of layouts and saves the layout configurations.", "module": "./lib/esm/index.esm.js", "main": "./lib/cjs/index.cjs.js", diff --git a/packages/resizable-panes-next/package.json b/packages/resizable-panes-next/package.json index db1463a..ee7e96a 100644 --- a/packages/resizable-panes-next/package.json +++ b/packages/resizable-panes-next/package.json @@ -1,6 +1,6 @@ { "name": "resizable-panes-next", - "version": "6.0.23", + "version": "6.0.24", "description": "A straightforward library that enables dynamic resizing of layouts and saves the layout configurations.", "module": "./lib/esm/index.esm.js", "main": "./lib/cjs/index.cjs.js", diff --git a/packages/resizable-panes-react/package.json b/packages/resizable-panes-react/package.json index f36b9d3..421b5e9 100644 --- a/packages/resizable-panes-react/package.json +++ b/packages/resizable-panes-react/package.json @@ -1,6 +1,6 @@ { "name": "resizable-panes-react", - "version": "6.0.22-1", + "version": "6.0.22", "description": "A straightforward library that enables dynamic resizing of layouts and saves the layout configurations.", "module": "./lib/esm/index.esm.js", "main": "./lib/cjs/index.cjs.js", From 3a7b84062d5747c317fc75fc5a42438d8970e2ea Mon Sep 17 00:00:00 2001 From: BipanKishore Date: Sun, 19 May 2024 13:51:40 +0530 Subject: [PATCH 7/7] Update build-n-deploy.yml --- .github/workflows/build-n-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-n-deploy.yml b/.github/workflows/build-n-deploy.yml index 1d33fd8..aba14b6 100644 --- a/.github/workflows/build-n-deploy.yml +++ b/.github/workflows/build-n-deploy.yml @@ -49,7 +49,7 @@ jobs: - name: Resizable Demo App Build run: | - npm run build + npm run demo:prod - name: Resizable React Testing run: |