lass icon indicating copy to clipboard operation
lass copied to clipboard

Add "Do you want to use Babel to compile your project?" flag

Open niftylettuce opened this issue 6 years ago • 3 comments

if the user selects yes for this option in the CLI, then the following needs to happen:

  • [ ] @babel/cli, @babel/core, @babel/preset-env, and rimraf need added to package.json with "latest" versions (if and only if this option was true)
  • [ ] .babelrc file needs created similar to https://github.com/niftylettuce/parse-err/blob/master/.babelrc (omit the "browsers" target for now) - (if and only if this option was true - you can use filters concept in sao to whitelist this file https://sao.js.org/#/create?id=filters if babel option was true)
  • [ ] make sure that the default target in .babelrc is v8.x+ LTS
  • [ ] "main" property in package.json needs set to lib/index.js (if and only if this option was true)
  • [ ] "index.js" file needs moved into src/index.js folder (if and only if this option was true)
  • [ ] "files" block needs set in package.json similar to this, but without "dist" https://github.com/niftylettuce/parse-err/blob/master/package.json#L86-L89 (if and only if this option was true)
  • [ ] "scripts" block needs updated in package.json similar to this https://github.com/niftylettuce/parse-err/blob/master/package.json#L137-L143 (if and only if this option was true)

niftylettuce avatar Oct 01 '18 15:10 niftylettuce

  • [ ] add lib to .gitignore https://github.com/niftylettuce/parse-err/blob/master/.gitignore#L7 (if and only if this option was true)

niftylettuce avatar Oct 01 '18 15:10 niftylettuce

  • [ ] note when you update the scripts block please also update the lint command to be "lint": "xo && remark . -qfo && eslint lib",
  • [ ] based off this new updated lint command, we'll need to update engines to target >= 8.x (e.g. https://github.com/niftylettuce/parse-err/blob/master/package.json#L44-L46) - eslint uses the engines field for linting when eslint lib gets called

niftylettuce avatar Oct 01 '18 16:10 niftylettuce

  • [ ] note that browserify and minify should use lib/ not src/ as previously linked (otherwise "browser" references in package.json will not be used, since src path would be referenced instead)

niftylettuce avatar Oct 01 '18 21:10 niftylettuce