Frontend တည်ဆောက်ကိရိယာများ
အားလုံး-in-တစ်ဦး JavaScript ကို runtime ကို. Bundler, စမ်းသပ်ပြိုင်ပွဲ, နှင့်တစ်ဦးမြန် tool ကို package manager ကို
Node.js ထက် 4 ဆ ပိုမြန်စွာ စတင်ပြီး JavaScriptCore engine ဖြင့် အားဖြည့်ထားသော သိသာထင်ရှားစွာ မြန်ဆန်သည့် execution
TypeScript နှင့် JSX ဖိုင်များကို compilation အဆင့် မလိုဘဲ တိုက်ရိုက် run ပြီး ပျံသန်းစဉ် transpile လုပ်ပါသည်
global cache နှင့် အပြည့်အဝ လိုက်ဖက်မှုဖြင့် npm packages ကို npm ထက် 30 ဆ ပိုမြန်စွာ install လုပ်ပါ
JavaScript/TypeScript project များကို မီလီစက္ကန့်အတွင်း ကုဒ်ခွဲခြားခြင်း၊ အသုံးမပြုသော ကုဒ် ဖယ်ရှားခြင်းနှင့် ချုံ့ခြင်းတို့ဖြင့် bundle လုပ်ပါ
Jest API နှင့် တွဲဖက်နိုင်သော မြန်ဆန်သည့် test runner ဖြစ်ပြီး mocking၊ snapshot နှင့် coverage ပါဝင်ပါသည်
ပြေးဆွဲကိရိယာ၊ အထုပ်ချိတ်ကိရိယာ၊ ကုဒ်ပြောင်းကိရိယာ၊ package စီမံကိရိယာနှင့် စမ်းသပ်ကိရိယာတို့ကို binary တစ်ခုတည်းတွင် ပေါင်းစပ်ထားသည်
# Install Bun
curl -fsSL https://bun.sh/install | bash
# Verify installation
bun --version
# Update Bun to latest version
bun upgradeအမြန်စတင်ခြင်း - project အသစ် ဖန်တီးခြင်း:# Initialize new project
bun init
# Run TypeScript/JavaScript file
bun run index.ts
# Install dependencies
bun install
# Run with watch mode (hot reload)
bun --watch run index.tsရှိပြီးသား Node.js project ကို run ခြင်း:# Install dependencies (much faster than npm)
bun install
# Run with Bun runtime instead of Node
bun run start
# Or use as drop-in Node replacement
bun run dev
{
"scripts": {
"dev": "bun --watch run src/index.ts",
"build": "bun build src/index.ts --outdir dist",
"test": "bun test",
"start": "bun run dist/index.js"
}
}Bun ဖြင့် Bundling:# Bundle for production
bun build ./src/index.ts --outdir ./dist --target browser
# Bundle with minification
bun build ./src/index.ts --outdir ./dist --minify
# Bundle for Node.js target
bun build ./src/index.ts --outdir ./dist --target nodeစမ်းသပ်ခြင်း:# Run all tests
bun test
# Run specific test file
bun test auth.test.ts
# Watch mode
bun test --watch
# With coverage
bun test --coverageEnvironment Variable များ:.env ဖိုင်များကို အလိုအလျောက် load လုပ်သည်process.env သို့မဟုတ် Bun.env မှတဆင့် ရယူနိုင်သည်ကျွန်တော်တို့ရဲ့ရိုးရှင်းတဲ့ VPS ဖြန့်ချိလုပ်ငန်းစဉ်နှင့်အတူမိနစ်အနည်းငယ်အတွင်းစတင်
Deploy in about 2 minutes • Full root access • Support by ticket and email