@shelf/babel-config

babel-config

Usage no npm install needed!

<script type="module">
  import shelfBabelConfig from 'https://cdn.skypack.dev/@shelf/babel-config';
</script>

README

@shelf/babel-config

Install

$ yarn add --dev @shelf/babel-config

Usage

In your package.json:

Backend

{
  "babel": {
    "extends": "@shelf/babel-config/backend"
  }
}

Frontend

React components without browser boilerplate (jsx,tsx) + testing (ts/tsx)

{
  "babel": {
    "extends": "@shelf/babel-config/frontend"
  }
}

React components(jsx,tsx) + testing (ts/tsx)

{
  "babel": {
    "extends": "@shelf/babel-config/frontend-component"
  }
}

Frontend library (lodash, ts)

{
  "babel": {
    "extends": "@shelf/babel-config/frontend-library"
  }
}

Next.js standard configuration

{
  "babel": {
    "extends": "@shelf/babel-config/frontend-next"
  }
}

Vue.js configuration

{
  "babel": {
    "extends": "@shelf/babel-config/frontend-vue"
  }
}

Publish

$ git checkout master
$ yarn version
$ yarn publish
$ git push origin master --tags

License

MIT © Shelf