From 9677c806342692a72a0387e703469bb1f96e7088 Mon Sep 17 00:00:00 2001 From: chavda-bhavik Date: Thu, 10 Nov 2022 16:23:14 +0530 Subject: [PATCH 1/4] feat: Added Test Build workflow --- .github/workflows/test-build.yml | 50 ++++++++++++++++++++++++++++++++ README.md | 14 +++++---- 2 files changed, 58 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/test-build.yml diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml new file mode 100644 index 000000000..134fe13e6 --- /dev/null +++ b/.github/workflows/test-build.yml @@ -0,0 +1,50 @@ +# This is a basic workflow to help you get started with Actions + +name: Test Build is happening + +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the master branch +on: + push: + branches: [ "main" ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ "main", "next", "development" ] + schedule: + - cron: '25 2 * * 4' + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build_web: + environment: Development + if: "!contains(github.event.head_commit.message, 'build skip')" + # The type of runner that the job will run on + runs-on: ubuntu-latest + timeout-minutes: 80 + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + - name: Setup kernel for react native, increase watchers + run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p + - uses: actions/setup-node@v2 + with: + node-version: '16.15.1' + + - name: Cache pnpm modules + uses: actions/cache@v2 + with: + path: ~/.pnpm-store + key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}- + + - uses: pnpm/action-setup@v2.0.1 + with: + version: 7.9.4 + run_install: true + + - name: Build + run: pnpm build \ No newline at end of file diff --git a/README.md b/README.md index c853af41a..f4eda6504 100644 --- a/README.md +++ b/README.md @@ -109,12 +109,14 @@ Follow these steps to setup the project locally, - [x] Upload - [x] Mapping - [x] Review - - [ ] Processing data -- [ ] Web - - [ ] Upload Phase - - [ ] Mapping Phase - - [ ] Review Phase - - [ ] Confirm Phase + - [x] Processing data +- [x] Web + - [x] Upload Phase + - [x] Mapping Phase + - [x] Review Phase + - [x] Confirm Phase +- [] Infra + - [] Docker

(back to top)

From 31f4e0128006c8584a7aceca41c93e7e8415f9d0 Mon Sep 17 00:00:00 2001 From: chavda-bhavik Date: Thu, 10 Nov 2022 16:36:10 +0530 Subject: [PATCH 2/4] feat: Made nestjs available --- .github/workflows/test-build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index 134fe13e6..e85c10324 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -47,4 +47,6 @@ jobs: run_install: true - name: Build - run: pnpm build \ No newline at end of file + run: | + npm i -g @nestjs/cli + pnpm build \ No newline at end of file From bea24912ac13d94ccee71684983b2c5fd03856c5 Mon Sep 17 00:00:00 2001 From: chavda-bhavik Date: Thu, 10 Nov 2022 16:39:53 +0530 Subject: [PATCH 3/4] feat: Optimized and renamed workflow file --- .github/workflows/test-build.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index e85c10324..364671649 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -16,7 +16,7 @@ on: # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: # This workflow contains a single job called "build" - build_web: + build: environment: Development if: "!contains(github.event.head_commit.message, 'build skip')" # The type of runner that the job will run on @@ -41,12 +41,10 @@ jobs: restore-keys: | ${{ runner.os }}- + - name: Nestjs + run: npm i -g @nestjs/cli + - uses: pnpm/action-setup@v2.0.1 with: version: 7.9.4 - run_install: true - - - name: Build - run: | - npm i -g @nestjs/cli - pnpm build \ No newline at end of file + run_install: true \ No newline at end of file From 7201579a96614a007d0685bdd255edae89f39d90 Mon Sep 17 00:00:00 2001 From: chavda-bhavik Date: Thu, 10 Nov 2022 17:14:55 +0530 Subject: [PATCH 4/4] feat: Updated version to 0.1.0 --- apps/api/package.json | 6 +++--- apps/queue-manager/package.json | 6 +++--- apps/widget/package.json | 4 ++-- libs/dal/package.json | 2 +- libs/embed/package.json | 2 +- libs/shared/package.json | 2 +- package.json | 9 ++++++++- packages/client/package.json | 2 +- packages/react/package.json | 4 ++-- pnpm-lock.yaml | 14 +++++++------- 10 files changed, 29 insertions(+), 22 deletions(-) diff --git a/apps/api/package.json b/apps/api/package.json index 021693eaf..4984a685c 100644 --- a/apps/api/package.json +++ b/apps/api/package.json @@ -1,6 +1,6 @@ { "name": "@impler/api", - "version": "1.0.0", + "version": "0.1.0", "main": "index.js", "author": "knovator", "license": "MIT", @@ -20,8 +20,8 @@ }, "dependencies": { "@aws-sdk/client-s3": "^3.185.0", - "@impler/dal": "workspace:^1.0.0", - "@impler/shared": "workspace:^1.0.0", + "@impler/dal": "workspace:^0.1.0", + "@impler/shared": "workspace:^0.1.0", "@nestjs/common": "^9.1.2", "@nestjs/core": "^9.1.2", "@nestjs/platform-express": "^9.1.2", diff --git a/apps/queue-manager/package.json b/apps/queue-manager/package.json index a82867e3e..64b7dbd91 100644 --- a/apps/queue-manager/package.json +++ b/apps/queue-manager/package.json @@ -1,6 +1,6 @@ { "name": "@impler/queue-manager", - "version": "1.0.0", + "version": "0.1.0", "main": "index.js", "author": "knovator", "license": "MIT", @@ -18,8 +18,8 @@ "lint:fix": "pnpm lint -- --fix" }, "dependencies": { - "@impler/dal": "workspace:^1.0.0", - "@impler/shared": "workspace:^1.0.0", + "@impler/dal": "workspace:^0.1.0", + "@impler/shared": "workspace:^0.1.0", "axios": "^0.26.1", "dotenv": "^16.0.2" }, diff --git a/apps/widget/package.json b/apps/widget/package.json index 92c90ea10..15f766a56 100644 --- a/apps/widget/package.json +++ b/apps/widget/package.json @@ -1,6 +1,6 @@ { "name": "@impler/widget", - "version": "1.0.0", + "version": "0.1.0", "private": true, "scripts": { "start": "cross-env PORT=3500 craco start", @@ -36,7 +36,7 @@ "@craco/craco": "^6.4.5", "@emotion/react": "^11.10.5", "@impler/client": "workspace:^0.1.0", - "@impler/shared": "workspace:^1.0.0", + "@impler/shared": "workspace:^0.1.0", "@mantine/core": "^5.6.3", "@mantine/dropzone": "^5.6.3", "@mantine/notifications": "5.6.3", diff --git a/libs/dal/package.json b/libs/dal/package.json index e403a7655..5d610f603 100644 --- a/libs/dal/package.json +++ b/libs/dal/package.json @@ -1,6 +1,6 @@ { "name": "@impler/dal", - "version": "1.0.0", + "version": "0.1.0", "description": "", "private": true, "main": "dist/index.js", diff --git a/libs/embed/package.json b/libs/embed/package.json index 686da9bd6..237c02d15 100644 --- a/libs/embed/package.json +++ b/libs/embed/package.json @@ -1,6 +1,6 @@ { "name": "@impler/embed", - "version": "1.0.0", + "version": "0.1.0", "private": true, "description": "", "keywords": [], diff --git a/libs/shared/package.json b/libs/shared/package.json index 9189cac01..53acf3114 100644 --- a/libs/shared/package.json +++ b/libs/shared/package.json @@ -1,6 +1,6 @@ { "name": "@impler/shared", - "version": "1.0.0", + "version": "0.1.0", "description": "", "private": true, "main": "dist/index.js", diff --git a/package.json b/package.json index 792a5b78e..a1d06d871 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "impler.io", - "version": "1.0.0", + "version": "0.1.0", "description": "Open source infrastructure to import data easily", "packageManager": "pnpm@7.9.4", "main": "", @@ -40,6 +40,13 @@ "pre-commit": "lint-staged" } }, + "workspaces": { + "packages": [ + "apps/*", + "libs/*", + "packages/*" + ] + }, "lint-staged": { "apps/**/*.{ts,tsx,json}": [ "prettier --ignore-path ./.prettierignore --write", diff --git a/packages/client/package.json b/packages/client/package.json index 00a8d7220..16b1b9135 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -51,7 +51,7 @@ "dist" ], "dependencies": { - "@impler/shared": "workspace:^1.0.0", + "@impler/shared": "workspace:^0.1.0", "axios": "^0.26.1" } } \ No newline at end of file diff --git a/packages/react/package.json b/packages/react/package.json index 3a91f4522..6d6e3351b 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@impler/react", - "version": "1.0.0", + "version": "0.1.0", "scripts": { "lint": "eslint src", "lint:fix": "pnpm lint --fix", @@ -37,7 +37,7 @@ "typescript": "^4.8.3" }, "dependencies": { - "@impler/shared": "workspace:^1.0.0", + "@impler/shared": "workspace:^0.1.0", "styled-components": "^5.3.6" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 24a34c48f..d2500b2ed 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -58,8 +58,8 @@ importers: apps/api: specifiers: '@aws-sdk/client-s3': ^3.185.0 - '@impler/dal': workspace:^1.0.0 - '@impler/shared': workspace:^1.0.0 + '@impler/dal': workspace:^0.1.0 + '@impler/shared': workspace:^0.1.0 '@nestjs/common': ^9.1.2 '@nestjs/core': ^9.1.2 '@nestjs/platform-express': ^9.1.2 @@ -116,8 +116,8 @@ importers: apps/queue-manager: specifiers: - '@impler/dal': workspace:^1.0.0 - '@impler/shared': workspace:^1.0.0 + '@impler/dal': workspace:^0.1.0 + '@impler/shared': workspace:^0.1.0 '@types/node': ^18.7.18 axios: ^0.26.1 dotenv: ^16.0.2 @@ -140,7 +140,7 @@ importers: '@craco/craco': ^6.4.5 '@emotion/react': ^11.10.5 '@impler/client': workspace:^0.1.0 - '@impler/shared': workspace:^1.0.0 + '@impler/shared': workspace:^0.1.0 '@mantine/core': ^5.6.3 '@mantine/dropzone': ^5.6.3 '@mantine/notifications': 5.6.3 @@ -274,7 +274,7 @@ importers: packages/client: specifiers: - '@impler/shared': workspace:^1.0.0 + '@impler/shared': workspace:^0.1.0 '@types/node': ^18.11.9 axios: ^0.26.1 typedoc: ^0.23.20 @@ -290,7 +290,7 @@ importers: packages/react: specifiers: '@babel/core': ^7.19.6 - '@impler/shared': workspace:^1.0.0 + '@impler/shared': workspace:^0.1.0 '@rollup/plugin-commonjs': ^23.0.1 '@rollup/plugin-node-resolve': ^15.0.0 '@rollup/plugin-typescript': ^9.0.1