diff --git a/package.json b/package.json index b71d217..76e20ee 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "scripts": { "lint": "lerna run lint", "demo": "lerna run demo", - "demo:prod": "lerna run demo:prod" , + "demo:prod": "lerna run demo:prod", "core": "lerna run core", "core:prod": "lerna run core:prod", "start": "lerna run start", @@ -47,6 +47,7 @@ "rollup-plugin-dts": "^5.3.0", "rollup-plugin-peer-deps-external": "^2.2.4", "rollup-plugin-postcss": "^4.0.2", + "rollup-plugin-sourcemaps": "^0.6.3", "rollup-plugin-typescript2": "^0.36.0", "sass-loader": "^14.2.0", "ts-loader": "^9.4.4", diff --git a/packages/resizable-core/build.script.js b/packages/resizable-core/build.script.js index face4ce..c0f3a0b 100644 --- a/packages/resizable-core/build.script.js +++ b/packages/resizable-core/build.script.js @@ -5,6 +5,7 @@ import typescript from 'rollup-plugin-typescript2' import postcss from 'rollup-plugin-postcss' import terser from '@rollup/plugin-terser' import {dts} from 'rollup-plugin-dts' +import sourcemaps from 'rollup-plugin-sourcemaps' // import copy from 'rollup-plugin-copy' import path from 'path' import {fileURLToPath} from 'url' @@ -21,7 +22,6 @@ const ESM_EXTENTION = 'esm.js' const CJS_BUILD_PATH = './lib/cjs/' const ESM_BUILD_PATH = './lib/esm/' -const IFFE_BUILD_PATH = './lib/iffe/' const UMD_BUILD_PATH = './lib/umd/' export const LIB_FILE_NAME_DEVELOPMENT_CJS = `${LIB_NAME}.${DEVELOPMENT}.${CJS_EXTENTION}` @@ -88,7 +88,8 @@ export const developmentPlugins = [ resolve(), commonjs(), typescript(), - postcss() + postcss(), + sourcemaps() // copy({ // targets: [{ // src: 'scripts/include-scripts.cjs.js', @@ -109,7 +110,8 @@ export const productionPlugins = [ commonjs(), typescript(), postcss(), - terser() + terser(), + sourcemaps() ] export const EXTERNALS = ['react'] diff --git a/packages/resizable-core/package.json b/packages/resizable-core/package.json index b7526d3..031a7d5 100644 --- a/packages/resizable-core/package.json +++ b/packages/resizable-core/package.json @@ -1,6 +1,6 @@ { "name": "resizable-core", - "version": "6.0.10", + "version": "6.0.11", "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-core/tasks.md b/packages/resizable-core/tasks.md deleted file mode 100644 index 8e872e5..0000000 --- a/packages/resizable-core/tasks.md +++ /dev/null @@ -1,7 +0,0 @@ - -1. visibility-operation-with-partial-visibility=>(i) when i uncheck only one box(p0) =>p2 and p3 panes also hide with p0 -(ii) when i uncheck only one box(p1) =>p2 and p3 panes also hide with p1(but when i check again p1 then p2 and p3 did not unhide again).note:i test all the check box but after unhide p2 and p3 did not shown again. -() - -Cypress Cloud free license expires after running 500 test cases -[![Cypress Tests](https://github.com/BipanKishore/resizable-panes-react/actions/workflows/cypress.yml/badge.svg?branch=master)](https://cloud.cypress.io/projects/2xc7po/branches/master/overview) diff --git a/packages/resizable-panes-js/build.script.js b/packages/resizable-panes-js/build.script.js deleted file mode 100644 index c0ffa0a..0000000 --- a/packages/resizable-panes-js/build.script.js +++ /dev/null @@ -1,96 +0,0 @@ -import peerDepsExternal from 'rollup-plugin-peer-deps-external' -import resolve from '@rollup/plugin-node-resolve' -import commonjs from '@rollup/plugin-commonjs' -import typescript from 'rollup-plugin-typescript2' -import postcss from 'rollup-plugin-postcss' -import {dts} from 'rollup-plugin-dts' -// import copy from 'rollup-plugin-copy' -import path from 'path' -import {fileURLToPath} from 'url' -import {productionConfigMinSet} from '../resizable-core/build.script' - -const __filename = fileURLToPath(import.meta.url) // get the resolved path to the file -const __dirname = path.dirname(__filename) // get the name of the directory - -export const LIB_NAME = 'resizable-panes-react' -export const DEVELOPMENT = 'development' -export const PRODUCTION = 'production' - -const CJS_EXTENTION = 'cjs.js' -const ESM_EXTENTION = 'esm.js' - -const CJS_BUILD_PATH = './lib/cjs/' -const ESM_BUILD_PATH = './lib/esm/' - -export const LIB_FILE_NAME_DEVELOPMENT_CJS = `${LIB_NAME}.${DEVELOPMENT}.${CJS_EXTENTION}` -export const LIB_FILE_NAME_PRODUCTION_CJS = `${LIB_NAME}.${PRODUCTION}.min.${CJS_EXTENTION}` - -export const LIB_FILE_NAME_DEVELOPMENT_ESM = `${LIB_NAME}.${DEVELOPMENT}.${ESM_EXTENTION}` -export const LIB_FILE_NAME_PRODUCTION_ESM = `${LIB_NAME}.${PRODUCTION}.min.${ESM_EXTENTION}` - -export const BUILD_INPUT_FILE_PATH = path.resolve(__dirname, '../src/index.ts') - -export const cjsOutOptionsDevelopment = { - file: `${CJS_BUILD_PATH}${'index.cjs.js'}`, - format: 'cjs', - sourcemap: true, - sourcemapPathTransform: (sourcePath) => { - return sourcePath.substring('../'.length) - } -} - -export const esmOutOptionsDevelopment = { - file: `${ESM_BUILD_PATH}${'index.esm.js'}`, - format: 'esm', - sourcemap: true, - sourcemapPathTransform: (sourcePath) => { - return sourcePath.substring('../'.length) - } -} - -export const developmentPlugins = [ - peerDepsExternal(), - resolve(), - commonjs(), - typescript(), - postcss() - // copy({ - // targets: [{ - // src: 'scripts/include-scripts.cjs.js', - // dest: `${CJS_BUILD_PATH}`, - // rename: 'index.cjs.js' - // }, - // { - // src: 'scripts/include-scripts.esm.js', - // dest: `${ESM_BUILD_PATH}`, - // rename: 'index.esm.js' - // }] - // }) -] - -export const EXTERNALS = ['react'] - -export const typesRollupConfig = { - input: 'src/index.ts', - output: [{file: 'lib/index.d.ts', format: 'es'}], - plugins: [dts()] -} - -export const developmentConfig = { - input: 'src/index.ts', - output: [ - { - ...cjsOutOptionsDevelopment - }, - { - ...esmOutOptionsDevelopment - } - ], - plugins: developmentPlugins, - external: EXTERNALS -} - -export const productionConfig = [ - productionConfigMinSet, - typesRollupConfig -] diff --git a/packages/resizable-panes-js/package.json b/packages/resizable-panes-js/package.json index 4df7e44..368dda6 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.22", + "version": "6.0.23", "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/rollup.config.js b/packages/resizable-panes-js/rollup.config.js index 97f4a70..228ab69 100644 --- a/packages/resizable-panes-js/rollup.config.js +++ b/packages/resizable-panes-js/rollup.config.js @@ -1,5 +1,5 @@ import {config} from 'dotenv' -import {developmentConfig, productionConfig, typesRollupConfig} from './build.script' +import {typesRollupConfig, productionConfig, developmentConfig} from '../resizable-core/build.script' let isProduction = false diff --git a/packages/resizable-panes-js/tasks.md b/packages/resizable-panes-js/tasks.md deleted file mode 100644 index 8e872e5..0000000 --- a/packages/resizable-panes-js/tasks.md +++ /dev/null @@ -1,7 +0,0 @@ - -1. visibility-operation-with-partial-visibility=>(i) when i uncheck only one box(p0) =>p2 and p3 panes also hide with p0 -(ii) when i uncheck only one box(p1) =>p2 and p3 panes also hide with p1(but when i check again p1 then p2 and p3 did not unhide again).note:i test all the check box but after unhide p2 and p3 did not shown again. -() - -Cypress Cloud free license expires after running 500 test cases -[![Cypress Tests](https://github.com/BipanKishore/resizable-panes-react/actions/workflows/cypress.yml/badge.svg?branch=master)](https://cloud.cypress.io/projects/2xc7po/branches/master/overview) diff --git a/packages/resizable-panes-next/.github/workflows/beta.yml b/packages/resizable-panes-next/.github/workflows/beta.yml deleted file mode 100644 index 141bd15..0000000 --- a/packages/resizable-panes-next/.github/workflows/beta.yml +++ /dev/null @@ -1,60 +0,0 @@ -name: Launch Beta - -on: - workflow_dispatch: - -jobs: - build: - - - strategy: - matrix: - node-version: [20.x] - os: [ubuntu-latest] - - runs-on: ${{matrix.os}} - steps: - - uses: actions/checkout@v3 - - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - - - name: Echo - run: | - pwd - myVar=$(pwd) - echo $myVar - - - name: Install - run: | - npm install - - - name: Lint/EsLint - run: | - npm run lint - - - name: Build - run: | - npm run build - - - name: Component Testing - run: | - npm test - - - name: Check Coverage - run: | - npm run coverage - - - name: SonarCloud Scan - uses: SonarSource/sonarcloud-github-action@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - - - name: NPM Publish - uses: JS-DevTools/npm-publish@v3 - with: - token: ${{ secrets.NPM_TOKEN }} - tag: beta diff --git a/packages/resizable-panes-next/.github/workflows/build.yml b/packages/resizable-panes-next/.github/workflows/build.yml deleted file mode 100644 index b0300b0..0000000 --- a/packages/resizable-panes-next/.github/workflows/build.yml +++ /dev/null @@ -1,58 +0,0 @@ -name: Build - -on: - pull_request: - branches: [ "master" ] - -jobs: - build: - - strategy: - matrix: - node-version: [20.x] - os: [ubuntu-latest] - - runs-on: ${{matrix.os}} - - steps: - - uses: actions/checkout@v3 - - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - - - name: Install - run: | - npm install - - - name: Lint/EsLint - run: | - npm run lint - - - name: Build - run: | - npm run prod - - - name: Component Testing - run: | - npm test - - - name: Check Coverage - run: | - npm run coverage - - - name: Upload artifacts - if: always() - uses: actions/upload-artifact@v4 - with: - path: cypress/screenshots - retention-days: 30 - - - - name: SonarCloud Scan - uses: SonarSource/sonarcloud-github-action@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - diff --git a/packages/resizable-panes-next/.github/workflows/cypress.yml b/packages/resizable-panes-next/.github/workflows/cypress.yml deleted file mode 100644 index c1778ea..0000000 --- a/packages/resizable-panes-next/.github/workflows/cypress.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: Cypress Cloud -on: - schedule: - - cron: "0 0 * * THU" - workflow_dispatch: - -jobs: - cypress-run: - strategy: - matrix: - node-version: [20.x] - os: [ubuntu-latest] - - runs-on: ${{matrix.os}} - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Install - run: | - npm install - - - name: Cypress run - # Uses the official Cypress GitHub action https://github.com/cypress-io/github-action - uses: cypress-io/github-action@v6 - with: - # Starts web server for E2E tests - replace with your own server invocation - # https://docs.cypress.io/guides/continuous-integration/introduction#Boot-your-server - # start: npm run test:cloud - # wait-on: 'http://localhost:3000' # Waits for above - # Records to Cypress Cloud - # https://docs.cypress.io/guides/cloud/projects#Set-up-a-project-to-record - record: true - parallel: true # Runs test in parallel using settings above - component: true - browser: chrome - env: - # For recording and parallelization to work you must set your CYPRESS_RECORD_KEY - # in GitHub repo → Settings → Secrets → Actions - CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} - # Creating a token https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/packages/resizable-panes-next/.github/workflows/publish.yml b/packages/resizable-panes-next/.github/workflows/publish.yml deleted file mode 100644 index 6480c14..0000000 --- a/packages/resizable-panes-next/.github/workflows/publish.yml +++ /dev/null @@ -1,54 +0,0 @@ -name: Build - -on: - push: - branches: [ "master" ] - -jobs: - build: - - - strategy: - matrix: - node-version: [20.x] - os: [ubuntu-latest] - - runs-on: ${{matrix.os}} - steps: - - uses: actions/checkout@v3 - - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - - - name: Install - run: | - npm install - - - name: Lint/EsLint - run: | - npm run lint - - - name: Build - run: | - npm run prod - - - name: Component Testing - run: | - npm test - - - name: Check Coverage - run: | - npm run coverage - - - name: SonarCloud Scan - uses: SonarSource/sonarcloud-github-action@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - - - name: NPM Publish - uses: JS-DevTools/npm-publish@v3 - with: - token: ${{ secrets.NPM_TOKEN }} diff --git a/packages/resizable-panes-next/build.script.js b/packages/resizable-panes-next/build.script.js deleted file mode 100644 index dca3a94..0000000 --- a/packages/resizable-panes-next/build.script.js +++ /dev/null @@ -1,97 +0,0 @@ -import peerDepsExternal from 'rollup-plugin-peer-deps-external' -import resolve from '@rollup/plugin-node-resolve' -import commonjs from '@rollup/plugin-commonjs' -import typescript from 'rollup-plugin-typescript2' -import postcss from 'rollup-plugin-postcss' -import {dts} from 'rollup-plugin-dts' -// import copy from 'rollup-plugin-copy' -import path from 'path' -import {fileURLToPath} from 'url' -import {productionConfigMinSet} from '../resizable-core/build.script' - -const __filename = fileURLToPath(import.meta.url) // get the resolved path to the file -const __dirname = path.dirname(__filename) // get the name of the directory - -export const LIB_NAME = 'resizable-panes-next' -export const DEVELOPMENT = 'development' -export const PRODUCTION = 'production' - -const CJS_EXTENTION = 'cjs.js' -const ESM_EXTENTION = 'esm.js' - -const CJS_BUILD_PATH = './lib/cjs/' -const ESM_BUILD_PATH = './lib/esm/' - -export const LIB_FILE_NAME_DEVELOPMENT_CJS = `${LIB_NAME}.${DEVELOPMENT}.${CJS_EXTENTION}` -export const LIB_FILE_NAME_PRODUCTION_CJS = `${LIB_NAME}.${PRODUCTION}.min.${CJS_EXTENTION}` - -export const LIB_FILE_NAME_DEVELOPMENT_ESM = `${LIB_NAME}.${DEVELOPMENT}.${ESM_EXTENTION}` -export const LIB_FILE_NAME_PRODUCTION_ESM = `${LIB_NAME}.${PRODUCTION}.min.${ESM_EXTENTION}` - -export const BUILD_INPUT_FILE_PATH = path.resolve(__dirname, '../src/index.ts') - -export const cjsOutOptionsDevelopment = { - file: `${CJS_BUILD_PATH}${'index.cjs.js'}`, - format: 'cjs', - sourcemap: true, - sourcemapPathTransform: (sourcePath) => { - return sourcePath.substring('../'.length) - } -} - -export const esmOutOptionsDevelopment = { - file: `${ESM_BUILD_PATH}${'index.esm.js'}`, - format: 'esm', - sourcemap: true, - sourcemapPathTransform: (sourcePath) => { - return sourcePath.substring('../'.length) - } -} - -export const developmentPlugins = [ - peerDepsExternal(), - resolve(), - commonjs(), - typescript(), - postcss() - // copy({ - // targets: [{ - // src: 'scripts/include-scripts.cjs.js', - // dest: `${CJS_BUILD_PATH}`, - // rename: 'index.cjs.js' - // }, - // { - // src: 'scripts/include-scripts.esm.js', - // dest: `${ESM_BUILD_PATH}`, - // rename: 'index.esm.js' - // }] - // }) -] - -export const EXTERNALS = ['react'] - -export const typesRollupConfig = { - input: 'src/index.ts', - output: [{file: 'lib/index.d.ts', format: 'es'}], - plugins: [dts()] -} - -export const developmentConfig = { - input: 'src/index.ts', - output: [ - { - ...cjsOutOptionsDevelopment - }, - { - ...esmOutOptionsDevelopment - } - ], - plugins: developmentPlugins, - external: EXTERNALS -} - -export const productionConfig = [ - // developmentConfig, - productionConfigMinSet, - typesRollupConfig -] diff --git a/packages/resizable-panes-next/package.json b/packages/resizable-panes-next/package.json index ee7e96a..75e29c8 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.24", + "version": "6.0.25", "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/rollup.config.js b/packages/resizable-panes-next/rollup.config.js index 97f4a70..d313a93 100644 --- a/packages/resizable-panes-next/rollup.config.js +++ b/packages/resizable-panes-next/rollup.config.js @@ -1,5 +1,6 @@ import {config} from 'dotenv' -import {developmentConfig, productionConfig, typesRollupConfig} from './build.script' + +import {typesRollupConfig, productionConfig, developmentConfig} from '../resizable-core/build.script' let isProduction = false diff --git a/packages/resizable-panes-next/tasks.md b/packages/resizable-panes-next/tasks.md deleted file mode 100644 index 8e872e5..0000000 --- a/packages/resizable-panes-next/tasks.md +++ /dev/null @@ -1,7 +0,0 @@ - -1. visibility-operation-with-partial-visibility=>(i) when i uncheck only one box(p0) =>p2 and p3 panes also hide with p0 -(ii) when i uncheck only one box(p1) =>p2 and p3 panes also hide with p1(but when i check again p1 then p2 and p3 did not unhide again).note:i test all the check box but after unhide p2 and p3 did not shown again. -() - -Cypress Cloud free license expires after running 500 test cases -[![Cypress Tests](https://github.com/BipanKishore/resizable-panes-react/actions/workflows/cypress.yml/badge.svg?branch=master)](https://cloud.cypress.io/projects/2xc7po/branches/master/overview) diff --git a/packages/resizable-panes-react/.github/workflows/beta.yml b/packages/resizable-panes-react/.github/workflows/beta.yml deleted file mode 100644 index 141bd15..0000000 --- a/packages/resizable-panes-react/.github/workflows/beta.yml +++ /dev/null @@ -1,60 +0,0 @@ -name: Launch Beta - -on: - workflow_dispatch: - -jobs: - build: - - - strategy: - matrix: - node-version: [20.x] - os: [ubuntu-latest] - - runs-on: ${{matrix.os}} - steps: - - uses: actions/checkout@v3 - - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - - - name: Echo - run: | - pwd - myVar=$(pwd) - echo $myVar - - - name: Install - run: | - npm install - - - name: Lint/EsLint - run: | - npm run lint - - - name: Build - run: | - npm run build - - - name: Component Testing - run: | - npm test - - - name: Check Coverage - run: | - npm run coverage - - - name: SonarCloud Scan - uses: SonarSource/sonarcloud-github-action@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - - - name: NPM Publish - uses: JS-DevTools/npm-publish@v3 - with: - token: ${{ secrets.NPM_TOKEN }} - tag: beta diff --git a/packages/resizable-panes-react/.github/workflows/build.yml b/packages/resizable-panes-react/.github/workflows/build.yml deleted file mode 100644 index b0300b0..0000000 --- a/packages/resizable-panes-react/.github/workflows/build.yml +++ /dev/null @@ -1,58 +0,0 @@ -name: Build - -on: - pull_request: - branches: [ "master" ] - -jobs: - build: - - strategy: - matrix: - node-version: [20.x] - os: [ubuntu-latest] - - runs-on: ${{matrix.os}} - - steps: - - uses: actions/checkout@v3 - - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - - - name: Install - run: | - npm install - - - name: Lint/EsLint - run: | - npm run lint - - - name: Build - run: | - npm run prod - - - name: Component Testing - run: | - npm test - - - name: Check Coverage - run: | - npm run coverage - - - name: Upload artifacts - if: always() - uses: actions/upload-artifact@v4 - with: - path: cypress/screenshots - retention-days: 30 - - - - name: SonarCloud Scan - uses: SonarSource/sonarcloud-github-action@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - diff --git a/packages/resizable-panes-react/.github/workflows/cypress.yml b/packages/resizable-panes-react/.github/workflows/cypress.yml deleted file mode 100644 index c1778ea..0000000 --- a/packages/resizable-panes-react/.github/workflows/cypress.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: Cypress Cloud -on: - schedule: - - cron: "0 0 * * THU" - workflow_dispatch: - -jobs: - cypress-run: - strategy: - matrix: - node-version: [20.x] - os: [ubuntu-latest] - - runs-on: ${{matrix.os}} - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Install - run: | - npm install - - - name: Cypress run - # Uses the official Cypress GitHub action https://github.com/cypress-io/github-action - uses: cypress-io/github-action@v6 - with: - # Starts web server for E2E tests - replace with your own server invocation - # https://docs.cypress.io/guides/continuous-integration/introduction#Boot-your-server - # start: npm run test:cloud - # wait-on: 'http://localhost:3000' # Waits for above - # Records to Cypress Cloud - # https://docs.cypress.io/guides/cloud/projects#Set-up-a-project-to-record - record: true - parallel: true # Runs test in parallel using settings above - component: true - browser: chrome - env: - # For recording and parallelization to work you must set your CYPRESS_RECORD_KEY - # in GitHub repo → Settings → Secrets → Actions - CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} - # Creating a token https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/packages/resizable-panes-react/.github/workflows/publish.yml b/packages/resizable-panes-react/.github/workflows/publish.yml deleted file mode 100644 index 6480c14..0000000 --- a/packages/resizable-panes-react/.github/workflows/publish.yml +++ /dev/null @@ -1,54 +0,0 @@ -name: Build - -on: - push: - branches: [ "master" ] - -jobs: - build: - - - strategy: - matrix: - node-version: [20.x] - os: [ubuntu-latest] - - runs-on: ${{matrix.os}} - steps: - - uses: actions/checkout@v3 - - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - - - name: Install - run: | - npm install - - - name: Lint/EsLint - run: | - npm run lint - - - name: Build - run: | - npm run prod - - - name: Component Testing - run: | - npm test - - - name: Check Coverage - run: | - npm run coverage - - - name: SonarCloud Scan - uses: SonarSource/sonarcloud-github-action@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - - - name: NPM Publish - uses: JS-DevTools/npm-publish@v3 - with: - token: ${{ secrets.NPM_TOKEN }} diff --git a/packages/resizable-panes-react/build.script.js b/packages/resizable-panes-react/build.script.js deleted file mode 100644 index 4f17647..0000000 --- a/packages/resizable-panes-react/build.script.js +++ /dev/null @@ -1,97 +0,0 @@ -import peerDepsExternal from 'rollup-plugin-peer-deps-external' -import resolve from '@rollup/plugin-node-resolve' -import commonjs from '@rollup/plugin-commonjs' -import typescript from 'rollup-plugin-typescript2' -import postcss from 'rollup-plugin-postcss' -import {dts} from 'rollup-plugin-dts' -// import copy from 'rollup-plugin-copy' -import path from 'path' -import {fileURLToPath} from 'url' -import {productionConfigMinSet} from '../resizable-core/build.script' - -const __filename = fileURLToPath(import.meta.url) // get the resolved path to the file -const __dirname = path.dirname(__filename) // get the name of the directory - -export const LIB_NAME = 'resizable-panes-react' -export const DEVELOPMENT = 'development' -export const PRODUCTION = 'production' - -const CJS_EXTENTION = 'cjs.js' -const ESM_EXTENTION = 'esm.js' - -const CJS_BUILD_PATH = './lib/cjs/' -const ESM_BUILD_PATH = './lib/esm/' - -export const LIB_FILE_NAME_DEVELOPMENT_CJS = `${LIB_NAME}.${DEVELOPMENT}.${CJS_EXTENTION}` -export const LIB_FILE_NAME_PRODUCTION_CJS = `${LIB_NAME}.${PRODUCTION}.min.${CJS_EXTENTION}` - -export const LIB_FILE_NAME_DEVELOPMENT_ESM = `${LIB_NAME}.${DEVELOPMENT}.${ESM_EXTENTION}` -export const LIB_FILE_NAME_PRODUCTION_ESM = `${LIB_NAME}.${PRODUCTION}.min.${ESM_EXTENTION}` - -export const BUILD_INPUT_FILE_PATH = path.resolve(__dirname, '../src/index.ts') - -export const cjsOutOptionsDevelopment = { - file: `${CJS_BUILD_PATH}${'index.cjs.js'}`, - format: 'cjs', - sourcemap: true, - sourcemapPathTransform: (sourcePath) => { - return sourcePath.substring('../'.length) - } -} - -export const esmOutOptionsDevelopment = { - file: `${ESM_BUILD_PATH}${'index.esm.js'}`, - format: 'esm', - sourcemap: true, - sourcemapPathTransform: (sourcePath) => { - return sourcePath.substring('../'.length) - } -} - -export const developmentPlugins = [ - peerDepsExternal(), - resolve(), - commonjs(), - typescript(), - postcss() - // copy({ - // targets: [{ - // src: 'scripts/include-scripts.cjs.js', - // dest: `${CJS_BUILD_PATH}`, - // rename: 'index.cjs.js' - // }, - // { - // src: 'scripts/include-scripts.esm.js', - // dest: `${ESM_BUILD_PATH}`, - // rename: 'index.esm.js' - // }] - // }) -] - -export const EXTERNALS = ['react'] - -export const typesRollupConfig = { - input: 'src/index.ts', - output: [{file: 'lib/index.d.ts', format: 'es'}], - plugins: [dts()] -} - -export const developmentConfig = { - input: 'src/index.ts', - output: [ - { - ...cjsOutOptionsDevelopment - }, - { - ...esmOutOptionsDevelopment - } - ], - plugins: developmentPlugins, - external: EXTERNALS -} - -export const productionConfig = [ - // developmentConfig, - productionConfigMinSet, - typesRollupConfig -] diff --git a/packages/resizable-panes-react/package.json b/packages/resizable-panes-react/package.json index 421b5e9..4eeca92 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", + "version": "6.0.23", "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/rollup.config.js b/packages/resizable-panes-react/rollup.config.js index 97f4a70..228ab69 100644 --- a/packages/resizable-panes-react/rollup.config.js +++ b/packages/resizable-panes-react/rollup.config.js @@ -1,5 +1,5 @@ import {config} from 'dotenv' -import {developmentConfig, productionConfig, typesRollupConfig} from './build.script' +import {typesRollupConfig, productionConfig, developmentConfig} from '../resizable-core/build.script' let isProduction = false diff --git a/packages/resizable-panes-react/scripts/include-scripts.cjs.js b/packages/resizable-panes-react/scripts/include-scripts.cjs.js deleted file mode 100644 index 5295819..0000000 --- a/packages/resizable-panes-react/scripts/include-scripts.cjs.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict' - -if (process.env.NODE_ENV === 'production') { - module.exports = require('./cjs/resizable-panes-react.production.min.cjs.js') -} else { - module.exports = require('./cjs/resizable-panes-react.development.cjs.js') -} diff --git a/packages/resizable-panes-react/scripts/include-scripts.esm.js b/packages/resizable-panes-react/scripts/include-scripts.esm.js deleted file mode 100644 index d3e7ed4..0000000 --- a/packages/resizable-panes-react/scripts/include-scripts.esm.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict' - -export const ResizablePanes = process.env.NODE_ENV === 'production' - ? import('resizable-panes-react.production.min.esm.js') - : import('resizable-panes-react.development.esm.js') diff --git a/packages/resizable-panes-react/tasks.md b/packages/resizable-panes-react/tasks.md deleted file mode 100644 index 8e872e5..0000000 --- a/packages/resizable-panes-react/tasks.md +++ /dev/null @@ -1,7 +0,0 @@ - -1. visibility-operation-with-partial-visibility=>(i) when i uncheck only one box(p0) =>p2 and p3 panes also hide with p0 -(ii) when i uncheck only one box(p1) =>p2 and p3 panes also hide with p1(but when i check again p1 then p2 and p3 did not unhide again).note:i test all the check box but after unhide p2 and p3 did not shown again. -() - -Cypress Cloud free license expires after running 500 test cases -[![Cypress Tests](https://github.com/BipanKishore/resizable-panes-react/actions/workflows/cypress.yml/badge.svg?branch=master)](https://cloud.cypress.io/projects/2xc7po/branches/master/overview)