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:
@@ -0,0 +1,3 @@
|
||||
package-lock.json
|
||||
coverage
|
||||
dist
|
||||
@@ -0,0 +1,6 @@
|
||||
package-lock.json
|
||||
coverage
|
||||
src
|
||||
dist
|
||||
!lib
|
||||
*.test.js
|
||||
@@ -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})
|
||||
```
|
||||
@@ -0,0 +1,20 @@
|
||||
class BBob {
|
||||
constructor(plugins) {
|
||||
}
|
||||
|
||||
parse() {
|
||||
|
||||
}
|
||||
|
||||
stringify() {
|
||||
|
||||
}
|
||||
|
||||
process(input) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = function bbob(...plugins) {
|
||||
return new BBob(plugins);
|
||||
};
|
||||
@@ -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/"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user