mirror of
https://github.com/tenrok/BBob.git
synced 2026-05-27 14:45:03 +03:00
772d422d77
* feat(parser): first iteration of new lexer * feat(parser): convert token string props to number props * refactor(parser): optimize char grabber * refactor(parser): working on new lexer * refactor(parser): convert token string props to number props * refactor(parser): rebuild lexer, add tag attrs parsing * refactor(parser): rework word parsing and tag parsing * refactor(parser): rework to pass tests * refactor(parser): rework tag parsing * refactor(parser): rework escape tags parsing * refactor(parser): rework tests * refactor(parser): all test pass * refactor(parser): make lexer faster by move mode switching in loop * refactor(parser): remove all state map objects * refactor(parser): order of parsing states * refactor(parser): state switching without return * refactor(parser): rename buffers to chars * refactor(lexer): reduce function calls * feat(lexer): add new parser tests and code to pass it * fix(utils): remove unused variable in char grabber * feat(lexer): add test for new lexer bug * chore(*): add lexer and lexer2 to benchmark * chore(lexer): add some debug info for char grabber * feat(parser): add new test for single attributes without values * fix(lexer): paired tags tests * refactor(lexer): comment breaking changes tests for future releases * feat(core): improve tests * refactor(parser): add more tests, reduce char grabber size * refactor(parser): reduce utils size * refactor(parser): remove unused code from tag parsing code * refactor(parser): remove unused code from word to tag transforming code * chore(benchmark): fix benchmark imports
66 lines
1.9 KiB
JSON
66 lines
1.9 KiB
JSON
{
|
|
"name": "@bbob/parser",
|
|
"version": "2.5.8",
|
|
"description": "Just parses BBcode to AST array. Part of @bbob bbcode parser",
|
|
"keywords": [
|
|
"bbcode",
|
|
"parser",
|
|
"ast",
|
|
"bbcode parser",
|
|
"bbcodeparser",
|
|
"bbob",
|
|
"array",
|
|
"parse"
|
|
],
|
|
"dependencies": {
|
|
"@bbob/plugin-helper": "^2.5.8"
|
|
},
|
|
"main": "lib/index.js",
|
|
"module": "es/index.js",
|
|
"jsnext:main": "es/index.js",
|
|
"browser": "dist/index.js",
|
|
"browserName": "BbobParser",
|
|
"homepage": "https://github.com/JiLiZART/bbob",
|
|
"author": "Nikolay Kostyurin <jilizart@gmail.com>",
|
|
"license": "MIT",
|
|
"bugs": {
|
|
"url": "https://github.com/JiLiZART/bbob/issues"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git://github.com/JiLiZART/bbob.git"
|
|
},
|
|
"scripts": {
|
|
"build:commonjs": "../../node_modules/.bin/cross-env BABEL_ENV=commonjs NODE_ENV=production ../../node_modules/.bin/babel src --out-dir lib",
|
|
"build:es": "../../node_modules/.bin/cross-env BABEL_ENV=es NODE_ENV=production ../../node_modules/.bin/babel src --out-dir es",
|
|
"build:umd": "../../node_modules/.bin/cross-env BABEL_ENV=rollup NODE_ENV=production ../../node_modules/.bin/rollup --config ../../rollup.config.js",
|
|
"build": "npm run build:commonjs && npm run build:es && npm run build:umd",
|
|
"test": "../../node_modules/.bin/jest",
|
|
"cover": "../../node_modules/.bin/jest --coverage",
|
|
"lint": "../../node_modules/.bin/eslint .",
|
|
"size": "../../node_modules/.bin/cross-env NODE_ENV=production ../../node_modules/.bin/size-limit",
|
|
"bundlesize": "../../node_modules/.bin/cross-env NODE_ENV=production ../../node_modules/.bin/bundlesize",
|
|
"prepublishOnly": "npm run build"
|
|
},
|
|
"size-limit": [
|
|
{
|
|
"path": "lib/index.js"
|
|
}
|
|
],
|
|
"bundlesize": [
|
|
{
|
|
"path": "./dist/index.min.js",
|
|
"threshold": "2.7 KB"
|
|
}
|
|
],
|
|
"publishConfig": {
|
|
"registry": "https://registry.npmjs.org/"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"lib",
|
|
"src",
|
|
"es"
|
|
]
|
|
}
|