5.2.0 • Published 5 years ago

@rocketstation/babel-plugin-web-convention v5.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

Babel Plugin Web Convension

Babel Plugin Web Convension reduces the boilerplate according to our convention

Installation

npm i -D @rocketstation/babel-plugin-web-convension

Usage

// babel.config.js
{ plugins: ['@rocketstation/babel-plugin-web-convension'] }

Handlers

handler components

Scope: **/*

  • change from ID to 'path-to-component'

handler component & segments

Scope: **/component.js || **/segments.js || **/segments/*.js

  • add import $ from '@rocketstation/black-box'
  • change from $audio() to $('audio')
  • change from $box() to $('div')
  • change from $canvas() to $('canvas')
  • change from $editor() to $('textarea')
  • change from $frame() to $('iframe')
  • change from $img() to $('img')
  • change from $input() to $('input')
  • change from $link() to $('a')
  • change from $meta() to $('meta')
  • change from $option() to $('option')
  • change from $path() to $('path')
  • change from $script() to $('script')
  • change from $select() to $('select')
  • change from $shape() to $('svg')
  • change from $text() to $('span')
  • change from $title() to $('title')
  • change from $video() to $('video')

License

Babel Plugin Web Convension is licensed under the MIT License

Created by RocketStation

5.2.0

5 years ago

5.1.0

5 years ago

5.0.0

5 years ago

4.0.0

5 years ago

3.7.3

5 years ago

3.7.2

5 years ago

3.7.1

5 years ago

3.7.0

5 years ago

3.6.0

5 years ago

3.5.0

5 years ago

3.4.0

5 years ago

3.3.0

5 years ago

3.2.0

5 years ago

3.1.0

5 years ago

3.0.0

5 years ago

2.0.0

5 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago