Update build dependencies

This commit is contained in:
Josh Dick
2018-03-15 18:56:56 -04:00
parent 4f0292533a
commit 8ef6341bab
3 changed files with 528 additions and 539 deletions

View File

@@ -7,13 +7,13 @@ const { readFileSync, writeFileSync } = require('fs')
const { resolve } = require('path') const { resolve } = require('path')
doT.templateSettings = { doT.templateSettings = {
evaluate: /\<\%([\s\S]+?)\%\>/g, evaluate: /<%([\s\S]+?)%>/g,
interpolate: /\<\%=([\s\S]+?)\%\>/g, interpolate: /<%=([\s\S]+?)%>/g,
encode: /\<\%!([\s\S]+?)\%\>/g, encode: /<%!([\s\S]+?)%>/g,
use: /\<\%#([\s\S]+?)\%\>/g, use: /<%#([\s\S]+?)%>/g,
define: /\<\%##\s*([\w\.$]+)\s*(\:|=)([\s\S]+?)#\%\>/g, define: /<%##\s*([\w.$]+)\s*(:|=)([\s\S]+?)#%>/g,
conditional: /\<\%\?(\?)?\s*([\s\S]*?)\s*\%\>/g, conditional: /<%\?(\?)?\s*([\s\S]*?)\s*%>/g,
iterate: /\<\%~\s*(?:\%\>|([\s\S]+?)\s*\:\s*([\w$]+)\s*(?:\:\s*([\w$]+))?\s*\%\>)/g, iterate: /<%~\s*(?:%>|([\s\S]+?)\s*:\s*([\w$]+)\s*(?::\s*([\w$]+))?\s*%>)/g,
varname: 'it', varname: 'it',
strip: false, // preserve whitespace strip: false, // preserve whitespace
} }
@@ -122,7 +122,7 @@ try {
try { try {
itermTemplate = termcolors.export( itermTemplate = termcolors.export(
// From termcolors/lib/formats/iterm.js // From termcolors/lib/formats/iterm.js
readFileSync(resolve(__dirname, 'templates/One\ Dark.itermcolors')), readFileSync(resolve(__dirname, 'templates/One Dark.itermcolors')),
_.partialRight(_.mapValues, function (color) { _.partialRight(_.mapValues, function (color) {
return color.toAvgRgbArray() return color.toAvgRgbArray()
}) })
@@ -135,7 +135,7 @@ try {
] ]
terminalAppTemplate = termcolors.export( terminalAppTemplate = termcolors.export(
readFileSync(resolve(__dirname, 'templates/One\ Dark.terminal')), readFileSync(resolve(__dirname, 'templates/One Dark.terminal')),
// From termcolors/lib/formats/terminal-app.js // From termcolors/lib/formats/terminal-app.js
_.partialRight(_.mapValues, function (color) { _.partialRight(_.mapValues, function (color) {
var srgb = color.toAvgRgbArray() var srgb = color.toAvgRgbArray()
@@ -153,8 +153,8 @@ try {
} }
try { try {
writeFileSync(resolve(__dirname, '../term/One\ Dark.itermcolors'), itermTemplate(terminalPalette)) writeFileSync(resolve(__dirname, '../term/One Dark.itermcolors'), itermTemplate(terminalPalette))
writeFileSync(resolve(__dirname, '../term/One\ Dark.terminal'), terminalAppTemplate(terminalPalette)) writeFileSync(resolve(__dirname, '../term/One Dark.terminal'), terminalAppTemplate(terminalPalette))
} catch (e) { } catch (e) {
handleError('Error writing terminal color file', e) handleError('Error writing terminal color file', e)
} }

1029
build/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -19,11 +19,11 @@
"url": "https://github.com/joshdick/onedark.vim.git" "url": "https://github.com/joshdick/onedark.vim.git"
}, },
"devDependencies": { "devDependencies": {
"eslint": "^3.15.0", "eslint": "4.18.2",
"husky": "^0.13.1" "husky": "0.14.3"
}, },
"dependencies": { "dependencies": {
"dot": "^1.1.1", "dot": "1.1.2",
"termcolors": "latest" "termcolors": "latest"
} }
} }