Commit Graph
74 Commits
Author SHA1 Message Date
otofune 7518e30dcf 🆙 move some packages to devDependencies that non required by server
presumed by:
- move-to-devdependencies.fish
```fish
set targets (ls src | grep -v client | xargs -I'%' echo "src/%")
alias from_import="git grep 'import ' $targets | grep -v 'from \'\.' | grep -v 'from \"\.' | cut -d: -f2 | cut -d\; -f1 | rev | cut -d' ' -f1 | rev | cut -d\' -f2 | sort | uniq | grep -v '^readline\$' | grep -v '^zlib\$' | grep -v '^os\$' | grep -v '^http\$' | grep -v '^fs\$' | grep -v '^events\$' | grep -v '^crypto\$' | grep -v '^child_process\$' | grep -v '^cluster\$'`"
alias from_require="git grep 'require(' $targets | grep -v '(\'\.' | cut -d= -f2 | grep -v '__dirname' | grep require | cut -d' ' -f2 | cut -d')' -f1 | cut -d'(' -f2 | cut -d'\'' -f2 | sort | uniq | grep -v '^readline\$' | grep -v '^zlib\$' | grep -v '^os\$' | grep -v '^http\$' | grep -v '^fs\$' | grep -v '^events\$' | grep -v '^crypto\$' | grep -v '^child_process\$' | grep -v '^cluster\$'"
from_import | xargs npm uninstall --save-dev
from_require | xargs npm uninstall --save-dev
from_import | xargs npm install --save
from_require | xargs npm install --save
git show HEAD:require | node revert-pinning-dependencies.js
```
- revert-pinning-dependencies.js
```js
const readFromStdin = () => new Promise((resolve, reject) => {
  const chunks = []

  process.stdin.setEncoding('utf8')

  process.stdin.on('readable', () => {
    const chunk = process.stdin.read()
    if (chunk == null) return
    chunks.push(chunk)
  })

  process.stdin.on('end', () => {
    return resolve(chunks.join('\n'))
  })
})

async function main () {
  const fs = require('fs')

  const raw = await readFromStdin()
  const head = JSON.parse(raw)
  const now = JSON.parse(fs.readFileSync('package.json'))

  Object.keys(now.dependencies).forEach(key => {
    now.dependencies[key] = head.dependencies[key]
  })

  fs.writeFileSync('package.json', JSON.stringify(now,null,'\t'))
}

main().catch(console.error)
```
2018-06-11 08:08:52 +09:00
otofune 7f2400ae00 .gitignore - uploads を削除
もう作られることはない
2017-11-14 05:30:17 +09:00
otofune 28d2d38fce server - multerがテンポラリディレクトリにファイルを展開するように
DiskStorageをオプション無しで呼ぶといい感じになる
またチェーンを改行するようにし、デバッグ表示にパスが出るようにした
2017-11-14 05:28:44 +09:00
otofune aabfe3c873 format 2017-11-14 05:12:48 +09:00
otofune d8a3b4ff1d add-file-to-drive - 責務の分割とテンポラリファイルを削除するように 2017-11-14 05:10:28 +09:00
otofune 51faa7a227 add-file-to-drive - 見通しを良くする 2017-11-14 05:01:24 +09:00
otofune 519bb82b03 add-file-to-drive - バッファ受け付けを削除 2017-11-14 04:39:21 +09:00
otofune 342345cc2f create - バッファを使用しないように 2017-11-14 04:35:25 +09:00
otofune 47f98fbab7 バグ修正 2017-11-14 04:29:30 +09:00
otofune 54804f4a64 add-file-to-drive - hashがstreamを受ける時、hashもまたstreamなのだ 2017-11-14 04:11:53 +09:00
otofune f6c63fbe14 add-file-to-drive - gmに渡す引数を正しくする 2017-11-14 03:56:39 +09:00
otofune e56f716a89 format 2017-11-14 03:47:42 +09:00
otofune 64aedcaa6b add-file-to-drive - Promise百烈拳とメモリ削減 2017-11-14 03:46:30 +09:00
otofune b6bc2a99b4 file - use readableStream
メモリ利用量が改善します
2017-11-10 10:54:08 +09:00
otofune 04dd2cb12b rename with execution order, add desc & initial creation script 2017-11-08 00:09:05 +09:00
otofune 6875b68f3e change all migrations to parallely 2017-11-07 23:10:38 +09:00
otofune 9f2dc28088 fix 2017-11-07 22:57:48 +09:00
otofune 36a95c003a fix 2017-11-07 22:39:17 +09:00
otofune bf7601fa8d run parallely 2017-11-07 22:08:35 +09:00
otofune 16bed0ca03 test - fix insertDriveFile (use GridFS filename) 2017-11-07 10:00:15 +09:00
otofune 696cd3b0e3 migration - add migration to support changed filename usage 2017-11-07 09:58:02 +09:00
otofune 2c234beb31 gulpfile - shutdown mocha after test run
see:
- http://mochajs.org/#usage
- https://boneskull.com/mocha-v4-nears-release/#mochawontforceexit
2017-11-07 09:49:48 +09:00
otofune 67d32b73f4 test - remove unneed async wrappings, drop GridFS drive_file correctly 2017-11-07 09:47:59 +09:00
otofune fb422b4d60 use 'name' param as GridFS file's 'filename' 2017-11-07 09:30:51 +09:00
otofune a7762aea4f file - if 'name' param given, validate 2017-11-07 09:18:40 +09:00
otofune 8e62cc1efd file - unify '/:id' & '/:id/:name' 2017-11-07 09:14:39 +09:00
otofune f80283a94f add 'format' script to use autofix w/ tslint 2017-11-07 09:04:16 +09:00
otofune 3ec29fec6b remove unneed dependencies 2017-11-07 09:03:56 +09:00
otofune d7e1ffb005 remove whitespace 2017-11-06 18:38:59 +09:00
otofune c1fc3b9f6e add safety guard to serializers & fix importing uncorrect serializer 2017-11-06 18:30:49 +09:00
otofune 26602dcd20 migration - add GridFS migration 2017-11-06 17:57:03 +09:00
otofune 73bb81de8f update test for GridFS 2017-11-06 16:59:09 +09:00
otofune 3be69a8cb7 /drive/files/update - return collectly value 2017-11-06 16:49:31 +09:00
otofune d5cc4cc9c2 fix lint (automattic) 2017-11-06 16:32:01 +09:00
otofune 04648db1c2 remove console 2017-11-06 16:29:13 +09:00
otofune 4c5a4d2597 core - fix metadata searching 2017-11-06 16:26:17 +09:00
otofune 64be0d6ded MongoDBの階層構造検索に関する思い違いの修正 2017-11-06 16:22:18 +09:00
otofune b266ed3e4f fix 2017-11-06 16:11:24 +09:00
otofune 5279d062df fix 2017-11-06 16:09:51 +09:00
otofune b50813649a serializers - posts: fix awaiting 2017-11-06 15:58:39 +09:00
otofune 7b1fc2c5d6 api - endpoint:timeline: unneed promise wrapping 2017-11-06 15:55:47 +09:00
otofune 7553c6dd38 serializers - posts: no need Promise wrapping 2017-11-06 15:52:09 +09:00
otofune 0ee6d65921 fix timeline 2017-11-06 15:45:21 +09:00
otofune 28a39bccf9 file-server - support new DriveFile w/ GridFS on '/:id/:name' 2017-11-06 15:39:16 +09:00
otofune 2ce3179d50 fileserver - fix dummy path 2017-11-06 15:37:04 +09:00
otofune a5160a1bba fileserver - support DriveFile w/ GridFS 2017-11-06 15:35:20 +09:00
otofune d0dab265f4 serializers - drive-file: add created_at field by uploadedDate 2017-11-06 15:27:16 +09:00
otofune 18b1ef29ad migration to GridFS's DriveFile 2017-11-06 15:18:45 +09:00
otofune 7e81e0db6a support GridFS 2017-11-06 14:37:24 +09:00
otofune ac2a0f46cd update @prezzemolo/rap to 0.1.2 2017-11-05 22:47:04 +09:00
otofune 327d2705b4 update @prezzemolo/rap to 0.1.1 2017-11-05 22:37:00 +09:00
otofune 09baf205ea remove ^ from @prezzemolo/rap dependency 2017-11-05 22:29:58 +09:00
otofune 7cd6b1c666 follow lint 2017-11-05 22:26:16 +09:00
otofune 5aa5e5cc70 serializers - user: run promises in parallel as possible 2017-11-05 22:22:49 +09:00
otofune 11190f56ad serializers/post - run promises in parallel
now w/ opts.detail, returns my_reaction field as 'null' w/ no reaction
(before: field appears w/ some reaction)
2017-11-05 22:13:28 +09:00
otofune 78487934c7 selializers - posts: unneed async-await
Promise.all resolves all Promise, and selializeDriveFile returns Promise.
2017-11-05 21:11:16 +09:00
otofune 0e8a4f36a2 start to improve serializers 2017-11-05 20:55:51 +09:00
otofune e7f5ff7f3c [dependencies] remove ^ from version 2017-05-31 15:20:54 +09:00
otofune d6d0f8c728 [dependencies] remove unneed dependencies, add missing dependencies 2017-05-31 15:20:03 +09:00
otofune 3b7baa0551 [api:endpoints/posts/create] translate '二重repostです' into English
and improve message.
2017-05-28 07:16:35 +09:00
otofune 8d5adfbdd7 [travis] shapeup script will indent package.json with tabs
original package.json indented with tabs, but shapeup indent with 4
space.
2017-05-28 04:25:49 +09:00
otofune dd7bf7c1c1 [travis] shapeup package.json in release
remove devDependencies from package.json.
resolve #495.
2017-05-28 04:13:25 +09:00
otofune df8c28688a [README] change my name
Otoha Funabashi -> otofune
2017-05-28 03:59:23 +09:00
otofune e84b1382e6 [client] tags > ui (header) nav: MisskeyTV™ -> ライブ 2017-03-02 17:20:39 +00:00
otofune e9284a797d [test] add emoji test 2017-03-01 03:19:50 +00:00
otofune 67ea1498ff [common] text & [web] common > scripts > text compiler: support emoji 2017-03-01 03:19:24 +00:00
otofune c49c9f16f5 [client] entrance -> public timeline: use nested tag 2017-03-01 02:51:32 +00:00
otofune d1b1113857 [client] entrance -> public timeline: show processed posts (WIP)
TODO
* use nested tag for rendering correctly
2017-03-01 02:48:06 +00:00
otofune f462c00090 [utils] dependencyInfo: use child_process instead of shelljs
drop shelljs from dependencies.
2017-01-25 22:31:22 +09:00
otofune 5aa7ab3936 [utils] dependencyInfo: update MongoDB regexp 2017-01-25 20:22:45 +09:00
otofune 070011427a [Mobile] ui-nav: remove content background colour 2017-01-24 09:55:01 -05:00
otofune d1f84f59d7 [Mobile] ui-nav: remove borders 2017-01-24 09:49:44 -05:00
otofune 8495050525 [Mobile] ui-nav: match colour w/ new theme 2017-01-24 09:47:45 -05:00
otofune c5a73ab2d4 [API] resolve deprecation error
error detail:
	DeprecationWarning: Calling an asynchronous function without callback is deprecated.
2017-01-24 08:34:06 -05:00