mirror of
https://github.com/joshdick/onedark.vim.git
synced 2025-11-10 12:03:49 -05:00
Update build dependencies
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
@@ -58,9 +58,9 @@ const handleError = (message, cause) => {
|
|||||||
|
|
||||||
console.log(
|
console.log(
|
||||||
shouldCheck ?
|
shouldCheck ?
|
||||||
'Checking for inconsistencies between templates and existing output files...'
|
'Checking for inconsistencies between templates and existing output files...'
|
||||||
:
|
:
|
||||||
'Generating output files from templates...'
|
'Generating output files from templates...'
|
||||||
)
|
)
|
||||||
|
|
||||||
Object.keys(templateMap).forEach(templateFilename => {
|
Object.keys(templateMap).forEach(templateFilename => {
|
||||||
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
1033
build/package-lock.json
generated
1033
build/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user