Closed GuilleW closed 1 year ago
Following @confused-Techie comment, I forgot to follow Decaffeination guidelines.
Since I work on many files, I edit package.json
to add useful shortcut to avoid misspelt filename.
"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/apm-cli-spec.coffee
./bin/npm run test-decaff --name=apm-cli-spec
)var
with const
and let
if it's possible.return
when it's not needed.coffee
fileFrom coffee
$ jasmine-focused --captureExceptions --coffee spec/apm-cli-spec.coffee
// or my shortcut $ `./bin/npm run test-coffee --name=apm-cli-spec`
> 6 tests, 24 assertions, 0 failures, 0 skipped
to js
$ jasmine-focused --captureExceptions spec/apm-cli-spec.js
// or my shortcut $ `./bin/npm run test-js --name=apm-cli-spec`
> 6 tests, 24 assertions, 0 failures, 0 skipped
Supposedly superseded by https://github.com/pulsar-edit/ppm/pull/64.
Again @2colours has very helpful refactored this PR into the modern decaf format in #64 and that has now been merged.
Thanks a ton to @2colours & @GuilleW for all the hard work here
Merge https://github.com/pulsar-edit/ppm/pull/19 first. EDIT : ❌
decaffeinate-project is used at first, then manual refactor/clean.From coffee
to js