diff --git a/.babelrc b/.babelrc new file mode 100644 index 0000000..7521eb0 --- /dev/null +++ b/.babelrc @@ -0,0 +1,7 @@ +{ + "env": { + "test": { + "plugins": ["@babel/plugin-transform-modules-commonjs"] + } + } +} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ea76afd --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.idea +/node_modules/ +/yarn-error.log diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..1b11509 --- /dev/null +++ b/.npmignore @@ -0,0 +1,5 @@ +.gitignore +.idea +.npmignore +jest.config.js +/tests diff --git a/.versionrc.json b/.versionrc.json new file mode 100644 index 0000000..0050b8a --- /dev/null +++ b/.versionrc.json @@ -0,0 +1,12 @@ +{ + "types": [ + {"type": "feat", "section": "Features"}, + {"type": "fix", "section": "Fixes"}, + {"type": "perf", "section": "Performance"}, + {"type": "chore", "hidden": true}, + {"type": "docs", "hidden": true}, + {"type": "style", "hidden": true}, + {"type": "refactor", "hidden": true}, + {"type": "test", "hidden": true} + ] +} diff --git a/README.md b/README.md index e383876..91e73eb 100644 --- a/README.md +++ b/README.md @@ -1 +1,70 @@ -# vue-i18n-loader \ No newline at end of file +# vue-i18n-loader + +This is an experimental webpack tool for `vue-i18n`. The package provides webpack loader and plugin to load translations from +`` custom blocks. + +If the plugin added to a `webpack.config.js`, it will add +prefix to translation messages paths & their usages in `