Skip to content

Commit

Permalink
Add raw locales
Browse files Browse the repository at this point in the history
  • Loading branch information
Kolobok12309 committed Jan 21, 2024
1 parent ea7c134 commit 0bc6449
Show file tree
Hide file tree
Showing 9 changed files with 1,849 additions and 64 deletions.
12 changes: 11 additions & 1 deletion apps/front/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true }
devtools: { enabled: true },
modules: [
'@vite-pwa/nuxt',
'@nuxtjs/i18n',
],
pwa: {

},
i18n: {

},
})
5 changes: 4 additions & 1 deletion apps/front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@
"postinstall": "nuxt prepare"
},
"dependencies": {
"@hb/types": "workspace:*"
"@hb/types": "workspace:*",
"@hb/locales": "workspace:*"
},
"devDependencies": {
"@nuxtjs/i18n": "^8.0.0",
"@vite-pwa/nuxt": "^0.4.0",
"nuxt": "^3.9.3",
"vue": "^3.4.14",
"vue-router": "^4.2.5"
Expand Down
4 changes: 4 additions & 0 deletions packages/locales/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"singleQuote": true,
"trailingComma": "all"
}
20 changes: 20 additions & 0 deletions packages/locales/build.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { defineBuildConfig } from 'unbuild';

export default defineBuildConfig({
entries: [
{
builder: 'mkdist',
input: './src/',
outDir: './dist/',
format: 'cjs',
ext: 'cjs',
},
{
builder: 'mkdist',
input: './src/',
outDir: './dist/',
},
],

declaration: true,
});
31 changes: 31 additions & 0 deletions packages/locales/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "@hb/locales",
"version": "1.0.0",
"description": "Locales for handler-book applications",
"author": "Kolobok12309 <[email protected]>",
"private": true,
"license": "MIT",
"files": [
"dist"
],
"type": "module",
"exports": {
"./en": "./dist/en",
"./ru": "./dist/ru"
},
"scripts": {
"build": "unbuild",
"prepare": "pnpm build",
"prebuild": "pnpm clean",
"clean": "rimraf dist"
},
"engines": {
"node": "18.x",
"pnpm": "8.9.2"
},
"packageManager": "[email protected]",
"devDependencies": {
"rimraf": "^5.0.5",
"unbuild": "^2.0.0"
}
}
Empty file.
Empty file.
15 changes: 15 additions & 0 deletions packages/locales/turbo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "https://turbo.build/schema.json",
"extends": ["//"],
"pipeline": {
"build": {
"dependsOn": ["clean"],
"inputs": [
"src/**",
"build.config.ts",
"tsconfig.json"
],
"outputs": ["dist/**"]
}
}
}
Loading

0 comments on commit 0bc6449

Please sign in to comment.