homunculus
Advanced tools
Comparing version 1.6.1 to 1.6.2
{ | ||
"name": "homunculus", | ||
"version": "1.6.1", | ||
"version": "1.6.2", | ||
"description": "A lexer&parser by Javascript", | ||
@@ -78,3 +78,3 @@ "maintainers": [ | ||
"rollup-plugin-sourcemaps": "^0.4.2", | ||
"rollup-plugin-uglify": "^6.0.3", | ||
"rollup-plugin-uglify": "^6.0.4", | ||
"through2": "^0.6.1", | ||
@@ -81,0 +81,0 @@ "unicode-7.0.0": "^0.1.5" |
import commonjs from 'rollup-plugin-commonjs'; | ||
import { uglify } from 'rollup-plugin-uglify'; | ||
export default { | ||
export default [{ | ||
input: 'src/homunculus.js', | ||
@@ -16,2 +17,18 @@ output: { | ||
], | ||
}; | ||
}, { | ||
input: 'src/homunculus.js', | ||
output: { | ||
name: 'homunculus', | ||
file: 'homunculus.min.js', | ||
format: 'umd', | ||
sourcemap: true, | ||
}, | ||
plugins: [ | ||
commonjs({ | ||
exclude: 'node_modules/**' // 只编译我们的源代码 | ||
}), | ||
uglify({ | ||
sourcemap: true, | ||
}), | ||
], | ||
}]; |
@@ -281,3 +281,3 @@ var Class = require('../util/Class'); | ||
}, | ||
error: function(s, str) {console.log(arguments.callee.caller) | ||
error: function(s, str) { | ||
if(character.isUndefined(str)) { | ||
@@ -309,2 +309,2 @@ str = this.code.substr(this.index - 1, 20); | ||
var cmode = Lexer.STRICT; | ||
module.exports = Lexer; | ||
module.exports = Lexer; |
@@ -15,3 +15,2 @@ var INode = require('../Node'); | ||
EXPR: 'expr', | ||
PROGRAM: 'program', | ||
STMT: 'stmt', | ||
@@ -77,2 +76,2 @@ ASSIGN: 'assign', | ||
var keys; | ||
module.exports = Node; | ||
module.exports = Node; |
@@ -281,3 +281,3 @@ define(function(require, exports, module) {var Class = require('../util/Class'); | ||
}, | ||
error: function(s, str) {console.log(arguments.callee.caller) | ||
error: function(s, str) { | ||
if(character.isUndefined(str)) { | ||
@@ -309,2 +309,3 @@ str = this.code.substr(this.index - 1, 20); | ||
var cmode = Lexer.STRICT; | ||
module.exports = Lexer;}); | ||
module.exports = Lexer; | ||
}); |
@@ -15,3 +15,2 @@ define(function(require, exports, module) {var INode = require('../Node'); | ||
EXPR: 'expr', | ||
PROGRAM: 'program', | ||
STMT: 'stmt', | ||
@@ -77,2 +76,3 @@ ASSIGN: 'assign', | ||
var keys; | ||
module.exports = Node;}); | ||
module.exports = Node; | ||
}); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1891971
33886