summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-08-04 10:40:09 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-08-04 10:40:09 +0900
commitee050cc37edbaa9b3eba03fa6403cd9ed05811d7 (patch)
tree9bace1f1c35c7f81068e83106d700eaf40d7efac
parentMerge pull request #2084 from syuilo/l10n_master (diff)
downloadsharkey-ee050cc37edbaa9b3eba03fa6403cd9ed05811d7.tar.gz
sharkey-ee050cc37edbaa9b3eba03fa6403cd9ed05811d7.tar.bz2
sharkey-ee050cc37edbaa9b3eba03fa6403cd9ed05811d7.zip
:v:
-rw-r--r--.gitignore1
-rw-r--r--package.json2
-rw-r--r--src/games/reversi/package.json18
-rw-r--r--src/games/reversi/tsconfig.json21
-rw-r--r--src/mfm/html.ts2
5 files changed, 41 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index 51e6a31b74..2cea822c18 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,6 +4,7 @@
/node_modules
/build
/built
+built
/data
/.cache-loader
npm-debug.log
diff --git a/package.json b/package.json
index ba5eab2fbb..8eff18b097 100644
--- a/package.json
+++ b/package.json
@@ -43,7 +43,6 @@
"@types/is-root": "1.0.0",
"@types/is-url": "1.2.28",
"@types/js-yaml": "3.11.2",
- "@types/jsdom": "11.0.6",
"@types/koa": "2.0.46",
"@types/koa-bodyparser": "5.0.1",
"@types/koa-compress": "2.0.8",
@@ -61,7 +60,6 @@
"@types/mongodb": "3.1.3",
"@types/ms": "0.7.30",
"@types/node": "10.5.5",
- "@types/parse5": "5.0.0",
"@types/portscanner": "2.1.0",
"@types/pug": "2.0.4",
"@types/qrcode": "1.2.0",
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';