diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-08-04 10:40:09 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-08-04 10:40:09 +0900 |
| commit | ee050cc37edbaa9b3eba03fa6403cd9ed05811d7 (patch) | |
| tree | 9bace1f1c35c7f81068e83106d700eaf40d7efac /src | |
| parent | Merge pull request #2084 from syuilo/l10n_master (diff) | |
| download | sharkey-ee050cc37edbaa9b3eba03fa6403cd9ed05811d7.tar.gz sharkey-ee050cc37edbaa9b3eba03fa6403cd9ed05811d7.tar.bz2 sharkey-ee050cc37edbaa9b3eba03fa6403cd9ed05811d7.zip | |
:v:
Diffstat (limited to 'src')
| -rw-r--r-- | src/games/reversi/package.json | 18 | ||||
| -rw-r--r-- | src/games/reversi/tsconfig.json | 21 | ||||
| -rw-r--r-- | src/mfm/html.ts | 2 |
3 files changed, 40 insertions, 1 deletions
diff --git a/src/games/reversi/package.json b/src/games/reversi/package.json new file mode 100644 index 0000000000..5e7fdcb58a --- /dev/null +++ b/src/games/reversi/package.json @@ -0,0 +1,18 @@ +{ + "name": "misskey-reversi", + "version": "0.0.5", + "description": "Misskey reversi engine", + "keywords": [ + "misskey" + ], + "author": "syuilo <i@syuilo.com>", + "license": "MIT", + "repository": "https://github.com/syuilo/misskey.git", + "bugs": "https://github.com/syuilo/misskey/issues", + "main": "./built/core.js", + "types": "./built/core.d.ts", + "scripts": { + "build": "tsc" + }, + "dependencies": {} +} diff --git a/src/games/reversi/tsconfig.json b/src/games/reversi/tsconfig.json new file mode 100644 index 0000000000..851fb6b7e4 --- /dev/null +++ b/src/games/reversi/tsconfig.json @@ -0,0 +1,21 @@ +{ + "compilerOptions": { + "noEmitOnError": false, + "noImplicitAny": false, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "experimentalDecorators": true, + "declaration": true, + "sourceMap": false, + "target": "es2017", + "module": "commonjs", + "removeComments": false, + "noLib": false, + "outDir": "./built", + "rootDir": "./" + }, + "compileOnSave": false, + "include": [ + "./core.ts" + ] +} diff --git a/src/mfm/html.ts b/src/mfm/html.ts index eeaa4d8136..c047043cb7 100644 --- a/src/mfm/html.ts +++ b/src/mfm/html.ts @@ -1,5 +1,5 @@ const { lib: emojilib } = require('emojilib'); -import { JSDOM } from 'jsdom'; +const JSDOM = require('jsdom'); import config from '../config'; import { INote } from '../models/note'; import { TextElement } from './parse'; |