John Aaron Nelson

coffeescript/.cjsx -> ES6 Class

July 30, 2018

https://github.com/bugsnag/depercolator to convert regular coffeescript to javascript(ES6)

depercolate src/*/.coffee

https://github.com/Gusto/cjsx-converter

cjsx-converter src/*/.cjsx

createClass to ES6 Class https://daveceddia.com/convert-createclass-to-es6-class/ using React-Codemod

jscodeshift -t ~/Github/Clearbit/react-codemod/transforms/class.js —mixin-module-name=react-addons-pure-render-mixin —flow=true —pure-component=true —remove-runtime-proptypes=false /Users/john/Github/Clearbit/salesforce-appexchange/spa/UI/src/javascript/*/.js https://github.com/babel/babelify to replace coffeescript-watchify

bundler.transform(‘babelify’, { presets: [‘babel-preset-env’, ‘babel-preset-react’], plugins: [‘transform-class-properties’] });


John Nelson

Written by John Nelson, who lives and works in Chattanooga, building things for Clearbit.