Skip to content

Commit

Permalink
Just Use Node-LuaJIT™
Browse files Browse the repository at this point in the history
  • Loading branch information
resir014 committed Sep 19, 2018
1 parent 7fa4302 commit 03fb96f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@
"test/coverage": "jest --coverage",
"update": "node src/update/updater.js"
},
"dependencies": {},
"dependencies": {
"node-luajit": "^1.2.0"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-plugin-inline-json": "^1.2.2",
Expand All @@ -45,7 +47,6 @@
"imagemin-pngquant": "^6.0.0",
"jest": "^23.5.0",
"node-fetch": "^2.2.0",
"node-lua-updated": "^1.0.0",
"rimraf": "^2.6.2",
"sharp": "^0.20.8"
}
Expand Down
4 changes: 2 additions & 2 deletions src/update/updater.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const imagemin = require('imagemin');
const imageminJpegtran = require('imagemin-jpegtran');
const imageminPngquant = require('imagemin-pngquant');
const fetch = require('node-fetch');
const Lua = require('node-lua-updated');
const LuaJIT = require('node-luajit');
const rimraf = require('rimraf');
const sharp = require('sharp');

Expand Down Expand Up @@ -269,7 +269,7 @@ class Updater {
const lines = wikilua.split('\n');
const modifiedLines = lines.slice(0, lines.length - 2).join('\n');

const lua = new Lua.LuaState();
const lua = new LuaJIT();
lua.DoString(`
json = (loadfile "src/update/json.lua")()
${modifiedLines}
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3927,7 +3927,7 @@ mute-stream@0.0.7:
version "0.0.7"
resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab"

nan@^2.11.0, nan@^2.6.2, nan@^2.9.2:
nan@*, nan@^2.11.0, nan@^2.9.2:
version "2.11.0"
resolved "https://registry.yarnpkg.com/nan/-/nan-2.11.0.tgz#574e360e4d954ab16966ec102c0c049fd961a099"

Expand Down Expand Up @@ -3977,11 +3977,11 @@ node-int64@^0.4.0:
version "0.4.0"
resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b"

node-lua-updated@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/node-lua-updated/-/node-lua-updated-1.0.0.tgz#bb566dab0a2c09665e692769bd8b6b565a24a44f"
node-luajit@^1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/node-luajit/-/node-luajit-1.2.0.tgz#c12ec406b44222467b4efe24cb1f7d466dc96036"
dependencies:
nan "^2.6.2"
nan "*"

node-notifier@^5.2.1:
version "5.2.1"
Expand Down

0 comments on commit 03fb96f

Please sign in to comment.