The spec has moved to a repo: https://github.com/defunctzombie/package-browser-field-spec to facilitate collaboration.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fizz = function f() { | |
fizz = function () { | |
fizz = function () { | |
fizz = f | |
return "Fizz" | |
} | |
} | |
} | |
buzz = function f() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* espower-source - Power Assert instrumentor from source to source. | |
* | |
* https://github.com/twada/espower-source | |
* | |
* Copyright (c) 2014 Takuto Wada | |
* Licensed under the MIT license. | |
* https://raw.github.com/twada/espower-source/master/MIT-LICENSE.txt | |
*/ | |
var espower = require('espower'), |
- 現在、power-assertをbrowserify+espowerifyでブラウザ上でのテストに試していますが、espowerifyはsourceMapサポートと聞いた (http://efcl.info/2014/0411/res3820/) ので、以下のようにbrowserify に debugオプションを立ててsourceMapを出力するようにしています。
$ browserify test/foo.test.js -d -t espowerify -o ./browser-test/foo.test.js
(上記記事でazuさんはWebStormのデバッガで見ているようですが)こちらではtestemでテストを走らせ、Chrome上でSourceMap済のコードを参照していますが、そこではPowered後のソースが表示されてしまいます。 http://gyazo.com/db447920e6a4da38c522c68c4b74deef
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = (grunt) -> | |
require('time-grunt')(grunt) | |
require('load-grunt-config')(grunt) |

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* browserify -t espowerify ./build/test/e2e/app001.test.js > ./build/test/e2e/app001.test-bundle-by-cmd.js | |
*/ | |
//... | |
'use strict'; | |
var assert = require('power-assert'); | |
describe('apptest001', function () { | |
it('should raise', function () { | |
assert(assert._expr(assert._capt(1 === 0, 'arguments/0'), { | |
content: 'assert(1 === 0)', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node_modules/ |
- Railsにプルリクストを送るときに知っておくと便利なお作法集
- Railsにプルリクエストを送りたいけど何から始めたらいいのかわからない人向けの指針
お作法についてはRuby on Rails に貢献する方法 | Rails ガイドを参考にしています。
Railsのコードを読むには、最低限次の二つの知識があったほうがよいです
OlderNewer