Migration to ESTree

This commit is contained in:
sanex3339
2016-09-12 23:48:03 +03:00
parent bd441260d9
commit 1a4f753b8d
2 changed files with 4 additions and 7 deletions
+1
View File
@@ -38,6 +38,7 @@
"@types/escodegen": "^0.0.5",
"@types/esprima": "^2.1.31",
"@types/estraverse": "^0.0.5",
"@types/estree": "^0.0.32",
"@types/format-unicorn": "^0.0.28",
"@types/joi": "^9.0.31",
"@types/mkdirp": "^0.3.28",
+3 -7
View File
@@ -1,15 +1,11 @@
'use strict';
let fs = require("fs"),
var fs = require("fs"),
nodeExternals = require('webpack-node-externals'),
webpack = require('webpack');
function getLicenseText () {
return `/*
Copyright (C) 2016 Timofey Kachalov <sanex3339@yandex.ru>
${fs.readFileSync('./LICENSE.BSD', 'utf8')}
*/`;
return "/*\nCopyright (C) 2016 Timofey Kachalov <sanex3339@yandex.ru>\n\n" + fs.readFileSync('./LICENSE.BSD', 'utf8') + "\n*/";
}
module.exports = {
@@ -31,7 +27,7 @@ module.exports = {
plugins: [
new webpack.BannerPlugin(
{
banner: `${getLicenseText()}\n\nrequire("source-map-support").install();\n`,
banner: getLicenseText() + '\n\nrequire("source-map-support").install();\n',
raw: true,
entryOnly: false
}