0.1.2 • Published 7 years ago

neutrino-preset-decorators v0.1.2

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
7 years ago

neutrino-preset-decorators

NPM version

This project provides a Neutrino preset for transforming decorators to be usable in most browsers. Uses the Babel Decorators transform which includes:

If you're using Mobx with React, you'll need decorators, class properties and the React neutrino presets. Here's a single preset that will take care of that: jke-neutrino-preset-react-mobx

Usage

Create a project with a package.json like this.

{
   "name": "myapp",
   "version": "1.0.0",
   "config": {
      "presets": [
         "neutrino-preset-decorators"
      ]
   },
   "scripts": {
      "build": "neutrino build",
      "start": "neutrino start"
   },
   "dependencies": {
   },
   "devDependencies": {
      "neutrino": "^4.3.1",
      "neutrino-preset-decorators": "0.1.1"
   }
}

Peer dependencies