lass
lass copied to clipboard
Add "Do you want to use Babel to compile your project?" flag
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)
- [ ] add lib to
.gitignore
https://github.com/niftylettuce/parse-err/blob/master/.gitignore#L7 (if and only if this option was true)
- [ ] 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 theengines
field for linting wheneslint lib
gets called
- [ ] note that browserify and minify should use lib/ not src/ as previously linked (otherwise
"browser"
references in package.json will not be used, sincesrc
path would be referenced instead)