Skip to content

Commit

Permalink
Merge pull request #117 from BipanKishore/lerna-commands
Browse files Browse the repository at this point in the history
Lerna commands
  • Loading branch information
BipanKishore authored May 18, 2024
2 parents a3ae920 + 04590a8 commit 52aae2f
Show file tree
Hide file tree
Showing 28 changed files with 46 additions and 200 deletions.
26 changes: 4 additions & 22 deletions .github/workflows/build-n-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build & Deploy
name: Build & Test

on:
pull_request:
Expand Down Expand Up @@ -41,13 +41,11 @@ jobs:
- name: Resizable Core Build
run: |
npm run prod
working-directory: ./packages/resizable-core
npm run core:prod
- name: Resizable React Build
- name: Resizable React/JS/Next/Demo App Builds
run: |
npm run prod
working-directory: ./packages/resizable-panes-react
- name: Resizable React Testing
run: |
Expand Down Expand Up @@ -79,12 +77,6 @@ jobs:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}


- name: Demo App Build
run: |
npm run build
working-directory: ./packages/demo-app

- name: Demo App - Deploy to GitHub Pages
if: ${{ github.ref == 'refs/heads/master' }}
uses: JamesIves/github-pages-deploy-action@4.1.0
Expand All @@ -99,24 +91,14 @@ jobs:
token: ${{ secrets.NPM_TOKEN }}
package: ${{format('{0}/{1}', github.workspace, 'packages/resizable-panes-react')}}

- name: Resizable Js Build
run: |
npm run prod
working-directory: ./packages/resizable-panes-js

- name: Resizable JS NPM Publish
if: ${{ github.ref == 'refs/heads/master' }}
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
package: ${{format('{0}/{1}', github.workspace, 'packages/resizable-panes-js')}}

- name: Resizable Next Build
run: |
npm run prod
working-directory: ./packages/resizable-panes-next

- name: Resizable JS NPM Publish
- name: Resizable Next NPM Publish
if: ${{ github.ref == 'refs/heads/master' }}
uses: JS-DevTools/npm-publish@v3
with:
Expand Down
41 changes: 21 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,30 @@
{
"name": "root",
"name": "resizable-panes",
"private": true,
"workspaces": [
"packages/demo-app",
"packages/resizable-panes-js",
"packages/resizable-panes-react"
],
"scripts": {
"lint": "lerna run lint"
"lint": "lerna run lint",
"demo": "lerna run demo",
"core": "lerna run core",
"core:prod": "lerna run core:prod",
"start": "lerna run start",
"prod": "lerna run prod",
"patch": "lerna run patch"
},
"dependencies": {},
"devDependencies": {
"lerna": "^8.1.2",

"@babel/eslint-parser": "^7.22.11",
"@rollup/plugin-commonjs": "^24.0.1",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.0.2",
"@rollup/plugin-terser": "^0.4.0",
"@rollup/plugin-typescript": "^11.1.6",
"rollup-plugin-typescript2": "^0.36.0",
"dotenv": "^16.4.5",
"rollup": "^3.20.2",
"rollup-plugin-copy": "^3.5.0",
"rollup-plugin-dts": "^5.3.0",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-postcss": "^4.0.2",
"npm-run-all": "^4.1.5",

"postcss-loader": "^8.1.1",

"@babel/eslint-parser": "^7.22.11",

"@typescript-eslint/parser": "^6.5.0",
"@typescript-eslint/eslint-plugin": "^6.5.0",

"@typescript-eslint/parser": "^6.5.0",
"dotenv": "^16.4.5",
"eslint": "^8.48.0",
"eslint-config-standard": "^17.1.0",
"eslint-config-standard-react": "^13.0.0",
Expand All @@ -45,6 +36,16 @@
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-sort-keys-fix": "^1.1.2",
"lerna": "^8.1.2",
"npm-run-all": "^4.1.5",
"postcss-loader": "^8.1.1",
"react-scripts": "5.0.1",
"rollup": "^3.20.2",
"rollup-plugin-copy": "^3.5.0",
"rollup-plugin-dts": "^5.3.0",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-postcss": "^4.0.2",
"rollup-plugin-typescript2": "^0.36.0",
"sass-loader": "^14.2.0",
"ts-loader": "^9.4.4",
"tslib": "^2.6.2",
Expand Down
18 changes: 0 additions & 18 deletions packages/demo-app/docs/asset-manifest.json

This file was deleted.

Binary file removed packages/demo-app/docs/favicon.ico
Binary file not shown.
1 change: 0 additions & 1 deletion packages/demo-app/docs/index.html

This file was deleted.

Binary file removed packages/demo-app/docs/logo192.png
Binary file not shown.
Binary file removed packages/demo-app/docs/logo512.png
Binary file not shown.
25 changes: 0 additions & 25 deletions packages/demo-app/docs/manifest.json

This file was deleted.

3 changes: 0 additions & 3 deletions packages/demo-app/docs/robots.txt

This file was deleted.

Loading

0 comments on commit 52aae2f

Please sign in to comment.