Skip to content
This repository was archived by the owner on Jul 4, 2021. It is now read-only.

Commit

Permalink
feat: custom block pre compilation (#20)
Browse files Browse the repository at this point in the history
* bump up

* i18n custom block pre-compilation
  • Loading branch information
kazupon authored Dec 22, 2020
1 parent 3af43fe commit 4b685f5
Show file tree
Hide file tree
Showing 24 changed files with 12,699 additions and 311 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ module.exports = {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/member-delimiter-style': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off'
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-non-null-assertion': 'off'
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
19 changes: 19 additions & 0 deletions examples/composition/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "composition",
"private": true,
"version": "0.0.0",
"scripts": {
"dev": "vite",
"build": "vite build"
},
"dependencies": {
"vue": "^3.0.4",
"vue-i18n": "^9.0.0-beta.15"
},
"devDependencies": {
"vite": "1.0.0-rc.13",
"@intlify/vite-plugin-vue-i18n": "link:../..",
"typescript": "^4.1.2",
"@vue/compiler-sfc": "^3.0.4"
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { UserConfig } from 'vite'
import i18n from '../../lib/index'
import { transformI18n } from '@intlify/vite-plugin-vue-i18n'

const config: UserConfig = {
vueCustomBlockTransforms: {
i18n
i18n: transformI18n()
}
}

Expand Down
2,207 changes: 2,207 additions & 0 deletions examples/composition/yarn.lock

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions examples/global/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "global",
"private": true,
"version": "0.0.0",
"scripts": {
"dev": "vite",
"build": "vite build"
},
"dependencies": {
"vue": "^3.0.4",
"vue-i18n": "^9.0.0-beta.15"
},
"devDependencies": {
"vite": "1.0.0-rc.13",
"@intlify/vite-plugin-vue-i18n": "link:../..",
"typescript": "^4.1.2",
"@vue/compiler-sfc": "^3.0.4"
}
}
4 changes: 2 additions & 2 deletions examples/global/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { UserConfig } from 'vite'
import i18n from '../../lib/index'
import { transformI18n } from '@intlify/vite-plugin-vue-i18n'

const config: UserConfig = {
vueCustomBlockTransforms: {
i18n
i18n: transformI18n()
}
}

Expand Down
Loading

0 comments on commit 4b685f5

Please sign in to comment.