Skip to content

Commit

Permalink
remove vue lexer to eliminate vue-template-compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
shank-eric committed Aug 28, 2024
1 parent d314e5e commit 3d36873
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 125 deletions.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@everfi/i18next-parser",
"description": "Command Line tool for i18next",
"version": "5.4.3",
"version": "5.4.4",
"license": "MIT",
"author": "Karel Ledru",
"main": "dist/index.js",
Expand Down Expand Up @@ -40,8 +40,7 @@
"through2": "~4.0.2",
"typescript": "^4.2.4",
"vinyl": "~2.2.1",
"vinyl-fs": "^3.0.2",
"vue-template-compiler": "^2.6.11"
"vinyl-fs": "^3.0.2"
},
"devDependencies": {
"@babel/cli": "^7.0.0",
Expand Down
27 changes: 0 additions & 27 deletions src/lexers/vue-lexer.js

This file was deleted.

4 changes: 0 additions & 4 deletions src/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import HandlebarsLexer from './lexers/handlebars-lexer'
import HTMLLexer from './lexers/html-lexer'
import JavascriptLexer from './lexers/javascript-lexer'
import JsxLexer from './lexers/jsx-lexer'
import VueLexer from './lexers/vue-lexer'

const lexers = {
hbs: ['HandlebarsLexer'],
Expand All @@ -19,8 +18,6 @@ const lexers = {
jsx: ['JsxLexer'],
tsx: ['JsxLexer'],

vue: ['VueLexer'],

default: ['JavascriptLexer'],
}

Expand All @@ -29,7 +26,6 @@ const lexersMap = {
HTMLLexer,
JavascriptLexer,
JsxLexer,
VueLexer,
}

export default class Parser extends EventEmitter {
Expand Down
77 changes: 0 additions & 77 deletions test/lexers/vue-lexer.test.js

This file was deleted.

15 changes: 1 addition & 14 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1890,11 +1890,6 @@ d@^1.0.2:
es5-ext "^0.10.64"
type "^2.7.2"

de-indent@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/de-indent/-/de-indent-1.0.2.tgz#b2038e846dc33baa5796128d0804b455b8c1e21d"
integrity sha1-sgOOhG3DO6pXlhKNCAS0VbjB4h0=

[email protected], debug@^4.3.1:
version "4.3.4"
resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865"
Expand Down Expand Up @@ -2654,7 +2649,7 @@ hasha@^5.0.0:
is-stream "^2.0.0"
type-fest "^0.8.0"

[email protected], he@^1.1.0:
[email protected]:
version "1.2.0"
resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f"
integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==
Expand Down Expand Up @@ -4728,14 +4723,6 @@ vinyl@^2.0.0, vinyl@~2.2.1:
remove-trailing-separator "^1.0.1"
replace-ext "^1.0.0"

vue-template-compiler@^2.6.11:
version "2.6.14"
resolved "https://registry.yarnpkg.com/vue-template-compiler/-/vue-template-compiler-2.6.14.tgz#a2f0e7d985670d42c9c9ee0d044fed7690f4f763"
integrity sha512-ODQS1SyMbjKoO1JBJZojSw6FE4qnh9rIpUZn2EUT86FKizx9uH5z6uXiIrm4/Nb/gwxTi/o17ZDEGWAXHvtC7g==
dependencies:
de-indent "^1.0.2"
he "^1.1.0"

walk-sync@^2.2.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/walk-sync/-/walk-sync-2.2.0.tgz#80786b0657fcc8c0e1c0b1a042a09eae2966387a"
Expand Down

0 comments on commit 3d36873

Please sign in to comment.