Quellcode durchsuchen

Initial commit

Add files from TSDX.
master
TheoryOfNekomata vor 3 Jahren
Commit
0c6ce981d4
12 geänderte Dateien mit 6287 neuen und 0 gelöschten Zeilen
  1. +4
    -0
      .gitignore
  2. +21
    -0
      LICENSE
  3. +3
    -0
      README.md
  4. +41
    -0
      package.json
  5. +5
    -0
      src/converters/toBBCode.test.ts
  6. +5
    -0
      src/converters/toBBCode.ts
  7. +5
    -0
      src/converters/toMobiledoc.test.ts
  8. +5
    -0
      src/converters/toMobiledoc.ts
  9. +13
    -0
      src/index.test.ts
  10. +4
    -0
      src/index.ts
  11. +18
    -0
      tsconfig.json
  12. +6163
    -0
      yarn.lock

+ 4
- 0
.gitignore Datei anzeigen

@@ -0,0 +1,4 @@
*.log
.DS_Store
node_modules
dist

+ 21
- 0
LICENSE Datei anzeigen

@@ -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.

+ 3
- 0
README.md Datei anzeigen

@@ -0,0 +1,3 @@
# bbcode-mobiledoc

Converter from BBCode <-> Mobiledoc.

+ 41
- 0
package.json Datei anzeigen

@@ -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"
}
}

+ 5
- 0
src/converters/toBBCode.test.ts Datei anzeigen

@@ -0,0 +1,5 @@
import toBBCode from './toBBCode'

it('should be a callable', () => {
expect(typeof toBBCode).toBe('function')
})

+ 5
- 0
src/converters/toBBCode.ts Datei anzeigen

@@ -0,0 +1,5 @@
const toBBCode = () => {

}

export default toBBCode

+ 5
- 0
src/converters/toMobiledoc.test.ts Datei anzeigen

@@ -0,0 +1,5 @@
import toMobiledoc from './toMobiledoc'

it('should be a callable', () => {
expect(typeof toMobiledoc).toBe('function')
})

+ 5
- 0
src/converters/toMobiledoc.ts Datei anzeigen

@@ -0,0 +1,5 @@
const toMobiledoc = () => {

}

export default toMobiledoc

+ 13
- 0
src/index.test.ts Datei anzeigen

@@ -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')
})
})

+ 4
- 0
src/index.ts Datei anzeigen

@@ -0,0 +1,4 @@
export { default as toBBCode } from './converters/toBBCode'
export { default as toMobiledoc } from './converters/toMobiledoc'



+ 18
- 0
tsconfig.json Datei anzeigen

@@ -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
}
}

+ 6163
- 0
yarn.lock
Datei-Diff unterdrückt, da er zu groß ist
Datei anzeigen


Laden…
Abbrechen
Speichern