@@ -0,0 +1,4 @@ | |||||
*.log | |||||
.DS_Store | |||||
node_modules | |||||
dist |
@@ -0,0 +1,21 @@ | |||||
MIT License | |||||
Copyright (c) 2020 TheoryOfNekomata | |||||
Permission is hereby granted, free of charge, to any person obtaining a copy | |||||
of this software and associated documentation files (the "Software"), to deal | |||||
in the Software without restriction, including without limitation the rights | |||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |||||
copies of the Software, and to permit persons to whom the Software is | |||||
furnished to do so, subject to the following conditions: | |||||
The above copyright notice and this permission notice shall be included in all | |||||
copies or substantial portions of the Software. | |||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |||||
SOFTWARE. |
@@ -0,0 +1,3 @@ | |||||
# bbcode-mobiledoc | |||||
Converter from BBCode <-> Mobiledoc. |
@@ -0,0 +1,41 @@ | |||||
{ | |||||
"version": "0.1.0", | |||||
"license": "MIT", | |||||
"main": "dist/index.js", | |||||
"typings": "dist/index.d.ts", | |||||
"files": [ | |||||
"dist", | |||||
"src" | |||||
], | |||||
"engines": { | |||||
"node": ">=10" | |||||
}, | |||||
"scripts": { | |||||
"start": "tsdx watch", | |||||
"build": "tsdx build", | |||||
"test": "tsdx test", | |||||
"lint": "tsdx lint", | |||||
"prepare": "tsdx build" | |||||
}, | |||||
"peerDependencies": {}, | |||||
"husky": { | |||||
"hooks": { | |||||
"pre-commit": "tsdx lint" | |||||
} | |||||
}, | |||||
"prettier": { | |||||
"printWidth": 80, | |||||
"semi": true, | |||||
"singleQuote": true, | |||||
"trailingComma": "es5" | |||||
}, | |||||
"name": "bbcode-mobiledoc", | |||||
"author": "TheoryOfNekomata <allan.crisostomo@outlook.com>", | |||||
"module": "dist/bbcode-mobiledoc.esm.js", | |||||
"devDependencies": { | |||||
"husky": "^4.3.6", | |||||
"tsdx": "^0.14.1", | |||||
"tslib": "^2.0.3", | |||||
"typescript": "^4.1.3" | |||||
} | |||||
} |
@@ -0,0 +1,5 @@ | |||||
import toBBCode from './toBBCode' | |||||
it('should be a callable', () => { | |||||
expect(typeof toBBCode).toBe('function') | |||||
}) |
@@ -0,0 +1,5 @@ | |||||
const toBBCode = () => { | |||||
} | |||||
export default toBBCode |
@@ -0,0 +1,5 @@ | |||||
import toMobiledoc from './toMobiledoc' | |||||
it('should be a callable', () => { | |||||
expect(typeof toMobiledoc).toBe('function') | |||||
}) |
@@ -0,0 +1,5 @@ | |||||
const toMobiledoc = () => { | |||||
} | |||||
export default toMobiledoc |
@@ -0,0 +1,13 @@ | |||||
import * as bbCodeMobiledoc from './index' | |||||
describe('toBBCode', () => { | |||||
it('should be a callable', () => { | |||||
expect(typeof bbCodeMobiledoc.toBBCode).toBe('function') | |||||
}) | |||||
}) | |||||
describe('toMobiledoc', () => { | |||||
it('should be a callable', () => { | |||||
expect(typeof bbCodeMobiledoc.toMobiledoc).toBe('function') | |||||
}) | |||||
}) |
@@ -0,0 +1,4 @@ | |||||
export { default as toBBCode } from './converters/toBBCode' | |||||
export { default as toMobiledoc } from './converters/toMobiledoc' | |||||
@@ -0,0 +1,18 @@ | |||||
{ | |||||
"include": ["src", "types"], | |||||
"compilerOptions": { | |||||
"module": "esnext", | |||||
"lib": ["dom", "esnext"], | |||||
"importHelpers": true, | |||||
"declaration": true, | |||||
"sourceMap": true, | |||||
"strict": true, | |||||
"noUnusedLocals": true, | |||||
"noUnusedParameters": true, | |||||
"noImplicitReturns": true, | |||||
"noFallthroughCasesInSwitch": true, | |||||
"moduleResolution": "node", | |||||
"jsx": "react", | |||||
"esModuleInterop": true | |||||
} | |||||
} |