-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into bugfix/filename-validation
- Loading branch information
Showing
322 changed files
with
18,319 additions
and
21,308 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
github: helloanoop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Bru CLI Tests (npm) | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
build: | ||
description: 'Test Bru CLI (npm)' | ||
required: true | ||
default: 'true' | ||
|
||
# Assign permissions for unit tests to be reported. | ||
# See https://github.com/dorny/test-reporter/issues/168 | ||
permissions: | ||
statuses: write | ||
checks: write | ||
contents: write | ||
pull-requests: write | ||
actions: write | ||
|
||
jobs: | ||
test: | ||
name: CLI Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: '.nvmrc' | ||
|
||
- name: Install Bru CLI from NPM | ||
run: npm install -g @usebruno/cli | ||
|
||
- name: Display Bru CLI Version | ||
run: bru --version | ||
|
||
- name: Run tests | ||
run: | | ||
cd packages/bruno-tests/collection | ||
npm install | ||
bru run --env Prod --output junit.xml --format junit | ||
- name: Publish Test Report | ||
uses: dorny/test-reporter@v1 | ||
if: success() || failure() | ||
with: | ||
name: Test Report | ||
path: packages/bruno-tests/collection/junit.xml | ||
reporter: java-junit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
name: Tests | ||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
# Assign permissions for unit tests to be reported. | ||
# See https://github.com/dorny/test-reporter/issues/168 | ||
permissions: | ||
statuses: write | ||
checks: write | ||
contents: write | ||
pull-requests: write | ||
actions: write | ||
|
||
jobs: | ||
unit-test: | ||
name: Unit Tests | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: '.nvmrc' | ||
- name: Install dependencies | ||
run: npm ci --legacy-peer-deps | ||
|
||
# build libraries | ||
- name: Build libraries | ||
run: | | ||
npm run build --workspace=packages/bruno-common | ||
npm run build --workspace=packages/bruno-query | ||
# test | ||
- name: Test Package bruno-query | ||
run: npm run test --workspace=packages/bruno-query | ||
- name: Test Package bruno-lang | ||
run: npm run test --workspace=packages/bruno-lang | ||
- name: Test Package bruno-schema | ||
run: npm run test --workspace=packages/bruno-schema | ||
- name: Test Package bruno-app | ||
run: npm run test --workspace=packages/bruno-app | ||
- name: Test Package bruno-js | ||
run: npm run test --workspace=packages/bruno-js | ||
- name: Test Package bruno-common | ||
run: npm run test --workspace=packages/bruno-common | ||
- name: Test Package bruno-cli | ||
run: npm run test --workspace=packages/bruno-cli | ||
- name: Test Package bruno-electron | ||
run: npm run test --workspace=packages/bruno-electron | ||
|
||
cli-test: | ||
name: CLI Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: '.nvmrc' | ||
|
||
- name: Install dependencies | ||
run: npm ci --legacy-peer-deps | ||
|
||
- name: Build Libraries | ||
run: | | ||
npm run build --workspace=packages/bruno-query | ||
npm run build --workspace=packages/bruno-common | ||
- name: Run tests | ||
run: | | ||
cd packages/bruno-tests/collection | ||
npm install | ||
node ../../bruno-cli/bin/bru.js run --env Prod --output junit.xml --format junit | ||
- name: Publish Test Report | ||
uses: dorny/test-reporter@v1 | ||
if: success() || failure() | ||
with: | ||
name: Test Report | ||
path: packages/bruno-tests/collection/junit.xml | ||
reporter: java-junit | ||
|
||
prettier: | ||
name: Prettier | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: '.nvmrc' | ||
- name: Install dependencies | ||
run: npm ci --legacy-peer-deps | ||
- name: Run Prettier | ||
run: npm run test:prettier:web |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,8 @@ yarn.lock | |
pnpm-lock.yaml | ||
.pnp | ||
.pnp.js | ||
bun.lockb | ||
bun.lock | ||
|
||
# testing | ||
coverage | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
[English](/contributing.md) | [Українська](/contributing_ua.md) | [Русский](/contributing_ru.md) | [Türkçe](/contributing_tr.md) | [Deutsch](docs/contributing/contributing_de.md) | [Français](/contributing_fr.md) | **বাংলা** | ||
|
||
## আসুন ব্রুনোকে আরও ভালো করি, একসাথে!! | ||
|
||
আমরা খুশি যে আপনি ব্রুনোর উন্নতি করতে চাইছেন। নীচে আপনার কম্পিউটারে ব্রুনো ইনষ্টল করার নির্দেশিকা রয়েছে৷। | ||
|
||
### Technology Stack (প্রযুক্তি স্ট্যাক) | ||
|
||
ব্রুনো Next.js এবং React ব্যবহার করে নির্মিত। এছাড়াও আমরা একটি ডেস্কটপ সংস্করণ পাঠাতে ইলেক্ট্রন ব্যবহার করি (যা স্থানীয় সংগ্রহ সমর্থন করে) | ||
|
||
নিম্ন লিখিত লাইব্রেরি আমরা ব্যবহার করি - | ||
|
||
- CSS - Tailwind | ||
- Code Editors - Codemirror | ||
- State Management - Redux | ||
- Icons - Tabler Icons | ||
- Forms - formik | ||
- Schema Validation - Yup | ||
- Request Client - axios | ||
- Filesystem Watcher - chokidar | ||
|
||
### Dependencies (নির্ভরতা) | ||
|
||
আপনার প্রয়োজন হবে [নোড v18.x বা সর্বশেষ LTS সংস্করণ](https://nodejs.org/en/) এবং npm 8.x। আমরা প্রকল্পে npm ওয়ার্কস্পেস ব্যবহার করি । | ||
|
||
## Development | ||
|
||
ব্রুনো একটি ডেস্কটপ অ্যাপ হিসেবে তৈরি করা হচ্ছে। আপনাকে একটি টার্মিনালে Next.js অ্যাপটি চালিয়ে অ্যাপটি লোড করতে হবে এবং তারপরে অন্য টার্মিনালে ইলেক্ট্রন অ্যাপটি চালাতে হবে। | ||
|
||
### Dependencies (নির্ভরতা) | ||
|
||
- NodeJS v18 | ||
|
||
### Local Development | ||
|
||
```bash | ||
# nodejs 18 সংস্করণ ব্যবহার করুন | ||
nvm use | ||
|
||
# নির্ভরতা ইনস্টল করুন | ||
npm i --legacy-peer-deps | ||
|
||
# গ্রাফকিউএল ডক্স তৈরি করুন | ||
npm run build:graphql-docs | ||
|
||
# ব্রুনো কোয়েরি তৈরি করুন | ||
npm run build:bruno-query | ||
|
||
# NextJs অ্যাপ চালান (টার্মিনাল 1) | ||
npm run dev:web | ||
|
||
# ইলেক্ট্রন অ্যাপ চালান (টার্মিনাল 2) | ||
npm run dev:electron | ||
``` | ||
|
||
### Troubleshooting (সমস্যা সমাধান) | ||
|
||
আপনি যখন 'npm install' চালান তখন আপনি একটি 'অসমর্থিত প্ল্যাটফর্ম' ত্রুটির সম্মুখীন হতে পারেন৷ এটি ঠিক করতে, আপনাকে `node_modules` এবং `package-lock.json` মুছে ফেলতে হবে এবং `npm install` চালাতে হবে। এটি অ্যাপটি চালানোর জন্য প্রয়োজনীয় সমস্ত প্যাকেজ ইনস্টল করবে যাতে এই ত্রুটি ঠিক হয়ে যেতে পারে । | ||
|
||
```shell | ||
# সাব-ডিরেক্টরিতে নোড_মডিউল মুছুন | ||
find ./ -type d -name "node_modules" -print0 | while read -d $'\0' dir; do | ||
rm -rf "$dir" | ||
done | ||
|
||
# সাব-ডিরেক্টরিতে প্যাকেজ-লক মুছুন | ||
find . -type f -name "package-lock.json" -delete | ||
``` | ||
|
||
### Testing (পরীক্ষা) | ||
|
||
```bash | ||
# bruno-schema | ||
npm test --workspace=packages/bruno-schema | ||
|
||
# bruno-lang | ||
npm test --workspace=packages/bruno-lang | ||
``` | ||
|
||
### Raising Pull Request (পুল অনুরোধ উত্থাপন) | ||
|
||
- অনুগ্রহ করে PR এর আকার ছোট রাখুন এবং একটি বিষয়ে ফোকাস করুন। | ||
- অনুগ্রহ করে শাখা তৈরির বিন্যাস অনুসরণ করুন। | ||
- বৈশিষ্ট্য/[ফিচারের নাম]: এই শাখায় একটি নির্দিষ্ট বৈশিষ্ট্যের জন্য পরিবর্তন থাকতে হবে। | ||
- উদাহরণ: বৈশিষ্ট্য/ডার্ক-মোড। | ||
- বাগফিক্স/[বাগ নাম]: এই শাখায় একটি নির্দিষ্ট বাগ-এর জন্য শুধুমাত্র বাগ ফিক্স থাকা উচিত। | ||
- উদাহরণ বাগফিক্স/বাগ-1। |
Oops, something went wrong.