Skip to content

Commit

Permalink
Merge pull request #24 from FNLB-Project/dev
Browse files Browse the repository at this point in the history
merge dev into stable
  • Loading branch information
tnfAngel authored Jun 27, 2024
2 parents d94a942 + 96c4faa commit 4c2eb91
Show file tree
Hide file tree
Showing 12 changed files with 230 additions and 1,117 deletions.
26 changes: 0 additions & 26 deletions .eslintrc.json

This file was deleted.

139 changes: 132 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,133 @@
node_modules
items.json
dist
*.env
.env
# Logs
logs
*.log
logs.log
.env*
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# IntelliJ based IDEs
.idea/

# Finder (MacOS) folder config
.DS_Store/

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
.env
.env.*
!.env.example

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
11 changes: 0 additions & 11 deletions .prettierignore

This file was deleted.

10 changes: 0 additions & 10 deletions .prettierrc

This file was deleted.

5 changes: 1 addition & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"cSpell.words": [
"fnlb",
"FNLB"
]
"cSpell.words": ["biomejs", "bunx", "fnlb", "FNLB"]
}
45 changes: 45 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"$schema": "https://biomejs.dev/schemas/1.5.3/schema.json",
"files": {
"ignoreUnknown": true
},
"formatter": {
"enabled": true,
"formatWithErrors": false,
"ignore": [
"**/node_modules/"
],
"indentStyle": "tab",
"indentWidth": 4,
"lineEnding": "lf",
"lineWidth": 120
},
"javascript": {
"formatter": {
"arrowParentheses": "always",
"bracketSameLine": false,
"bracketSpacing": true,
"enabled": true,
"jsxQuoteStyle": "single",
"quoteProperties": "asNeeded",
"quoteStyle": "single",
"semicolons": "always",
"trailingComma": "none"
}
},
"json": {
"formatter": {
"enabled": true
}
},
"linter": {
"enabled": false,
"ignore": [
"**/node_modules/"
],
"rules": {}
},
"organizeImports": {
"enabled": true
}
}
8 changes: 8 additions & 0 deletions build.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import dts from 'bun-plugin-dts';

await Bun.build({
entrypoints: ['./src/index.ts'],
outdir: './dist',
minify: true,
plugins: [dts()]
});
Binary file added bun.lockb
Binary file not shown.
36 changes: 15 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,28 @@
{
"name": "@fnlb/locales",
"version": "1.0.5",
"name": "@fnlb-project/locales",
"description": "FNLB Translation Service",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"version": "1.1.0",
"main": "src/index.ts",
"types": "src/index.ts",
"type": "module",
"scripts": {
"build": "tsc --build --clean && tsc",
"translate": "pnpm run build && node dist/translator",
"lint": "eslint src/**/*.{ts,js}",
"pretty": "pnpx prettier --write .",
"prepare": "pnpm run build"
"build": "bun run build.ts",
"prepublishOnly": "bun run build",
"lint": "bunx --bun @biomejs/biome check --apply .",
"prepare": "bun run build"
},
"files": [
"dist/**/*"
"dist"
],
"keywords": [],
"author": "tnfAngel",
"license": "ISC",
"author": "FNLB-Project",
"dependencies": {
"dotenv": "^16.3.2",
"google-translate-api-x": "^10.6.8",
"tslib": "^2.6.2",
"typescript": "^5.3.3"
"tslib": "^2.6.2"
},
"devDependencies": {
"@types/node": "^20.11.5",
"@typescript-eslint/eslint-plugin": "^6.19.0",
"@typescript-eslint/parser": "^6.19.0",
"eslint": "^8.56.0",
"prettier": "^3.2.4"
"@types/bun": "^1.0.8",
"bun-plugin-dts": "^0.2.1",
"typescript": "^5.3.3"
},
"packageManager": "pnpm@8.14.1"
}
Loading

0 comments on commit 4c2eb91

Please sign in to comment.