2
0
mirror of https://github.com/tenrok/BBob.git synced 2026-06-14 18:42:24 +03:00

add html5 preset, some files structure changes

This commit is contained in:
Nikolay Kostyurin
2018-07-06 00:38:29 +02:00
parent 12144415cc
commit 21ef50cf1d
21 changed files with 322 additions and 80 deletions
+3
View File
@@ -0,0 +1,3 @@
package-lock.json
coverage
dist
+6
View File
@@ -0,0 +1,6 @@
package-lock.json
coverage
src
dist
!lib
*.test.js
+11
View File
@@ -0,0 +1,11 @@
# bbob
## Usage
```js
const bbob = require('@bbob/core');
const presetHTML5 = require('@bbob/preset-html5');
const code = `[i]Text[/i]`;
const processor = bbob([presetHTML5]).process(code, {sync: true})
```
+20
View File
@@ -0,0 +1,20 @@
class BBob {
constructor(plugins) {
}
parse() {
}
stringify() {
}
process(input) {
}
}
module.exports = function bbob(...plugins) {
return new BBob(plugins);
};
+38
View File
@@ -0,0 +1,38 @@
{
"name": "@bbob/core",
"version": "1.0.0",
"description": "BBob is a tool to transform BBCode markup useing presets",
"main": "lib/index.js",
"directories": {
"lib": "lib"
},
"dependencies": {
"@bbob/parser": "*",
"@bbob/html": "*",
"@bbob/preset-html5": "*"
},
"repository": {
"type": "git",
"url": "git+https://github.com/JiLiZART/bbob.git"
},
"keywords": [
"bbcode",
"parser",
"html",
"transform"
],
"bugs": {
"url": "https://github.com/JiLiZART/bbob/issues"
},
"homepage": "https://github.com/JiLiZART/bbob#readme",
"scripts": {
"test": "../../node_modules/.bin/jest --",
"cover": "../../node_modules/.bin/jest --coverage",
"lint": "../../node_modules/.bin/eslint ."
},
"author": "Nikolay Kostyurin <jilizart@gmail.com>",
"license": "MIT",
"publishConfig": {
"registry": "https://registry.npmjs.org/"
}
}