JSer.info 200回記念イベントのLT資料
今朝起きたら、万が一のためにLTを準備しておかなければいけないとTwitterに書いてあったので、実装してみました。
ASTを使ったツールは世に溢れいているけど (eslint, jscs, power-assert, istanbul, uglify2...)、
それらのツールを複数組み合わせる場合、
#!/bin/sh | |
# Convert Markdown to Confluence | |
# | |
# Supported syntax | |
# * heading (1-6) | |
# * blockquote (only single line ".bq") | |
# * code block fence (```) | |
# * inline code (`foo`) | |
# * link ([name](url)) |
JSer.info 200回記念イベントのLT資料
今朝起きたら、万が一のためにLTを準備しておかなければいけないとTwitterに書いてあったので、実装してみました。
ASTを使ったツールは世に溢れいているけど (eslint, jscs, power-assert, istanbul, uglify2...)、
それらのツールを複数組み合わせる場合、
based on v20141023 result
input
module.exports = function() {
var f = x
=> 2;
return f();
};
[ | |
{ | |
"browser_version": "11.1", | |
"device": null, | |
"browser": "opera", | |
"os_version": "Mavericks", | |
"os": "OS X" | |
}, | |
{ | |
"browser_version": "11.6", |
✘ proper tail calls (tail call optimisation) | |
▼ arrow functions | |
✘ 0 parameters | |
✘ 1 parameter, no brackets | |
✘ multiple parameters | |
✘ lexical "this" binding | |
✘ "this" unchanged by call or apply | |
✘ can't be bound, can be curried | |
✘ lexical "arguments" binding | |
✘ no line break between params and => |
この前のブログ記事見た人はごめん。
どこが間違ってるか分かります?
2015/01/15時点の情報です。
v0.1.3が計画されてるけど、initial releaseのv0.1.0からはbugfixや細かな修正がほとんどで、大きな進化はしてない。 コミットもあまり活発ではない。 もしかしたら、Facebook社内でprivateブランチを育てていてまとまったところで出してくるのかも。 (JS等に比べて)開発者人口の少ないOCaml実装というのも、プルリクが集まりにくくOSS的な加速的進化が起きにくい原因かもしれない。
/// <reference path="typings/node/node.d.ts" /> | |
/// <reference path="typings/typescript/typescript.d.ts" /> | |
import ts = require("typescript"); | |
import fs = require("fs"); | |
import path = require("path"); | |
function transform(contents: string, libSource: string, compilerOptions: ts.CompilerOptions = {}) { | |
// Generated outputs | |
var outputs = []; |