node package manager
Easy sharing. Manage teams and permissions with one click. Create a free org »

npu

Node Package Utils (npu)

Utils for simple work with npm projects.

Npm Version Month Downloads Npm Licence

NPM

Features

  • Create example for packages in two steps

Installation

npm install --save-dev npu

or, for global usage

npm install -g npu

Install pear dependencies: react, react-dom

Example

/npu.config.js

module.exports = {
  app: './example/App.js'
}

/example/App.js

import React from 'react'
 
export default class App extends React.Component {
  render() {
    return (
      <div>Example</div>
    )
  }
}

Thats it! Now you can make npu -d to run example in dev mode, or npu -o ./build for building.

TODO

  • Deployment on Surge