Closed GuilleW closed 1 year ago
Since I work on many files, I edit package.json to add useful shortcut to avoid misspelt filename.
package.json
"test-decaff": "npx coffee --compile --output spec spec/${npm_config_name}.coffee", "test-coffee": "jasmine-focused --captureExceptions --coffee spec/${npm_config_name}.coffee", "test-js": "jasmine-focused --captureExceptions spec/${npm_config_name}.js"
npx coffee --compile --output spec spec/develop-spec.coffee
./bin/npm run test-decaff --name=develop-spec
var
const
let
return
coffee
From coffee
$ jasmine-focused --captureExceptions --coffee spec/develop-spec.coffee // or my shortcut $ `./bin/npm run test-coffee --name=develop-spec` > 3 tests, 12 assertions, 0 failures, 0 skipped
to js
$ jasmine-focused --captureExceptions spec/develop-spec.js // or my shortcut $ `./bin/npm run test-js --name=develop-spec` > 3 tests, 12 assertions, 0 failures, 0 skipped
https://github.com/pulsar-edit/ppm/pull/69 should supersede this PR.
Again, @GuilleW thanks a ton for your effort on this one, superseded by #69
Since I work on many files, I edit
package.json
to add useful shortcut to avoid misspelt filename.Steps to reproduce decaffeination (guidelines):
npx coffee --compile --output spec spec/develop-spec.coffee
./bin/npm run test-decaff --name=develop-spec
)var
withconst
andlet
if it's possible.return
when it's not needed.coffee
fileTest from coffee and JS should output same successful result :
From coffee
to js