jefffriesen / neutrino-preset-decorators

Neutrino preset for building javascript applications using class properties

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Neutrino preset for building javascript applications using class properties

License:Other


Languages

Language:JavaScript 100.0%