1.2.2 • Published 8 years ago
npu v1.2.2
Create React apps fast with no Webpack
Features
- Create React examples for your packages in two steps
Installation
npm install -g npu
Install peer dependencies in project root:
npm install react react-dom
Example
./lib/index.js
const MyComponent = () => (
<div>My Component</div>
)
module.exports = MyComponent
./npu.config.js
module.exports = {
app: './example/App.js'
}
./example/App.js
import React from 'react'
import MyComponent from '../lib'
export default class App extends React.Component {
render() {
return (
<div>
Example:
<MyComponent />
</div>
)
}
}
That's it!
Now you can make npu -d
to run example in dev mode, or npu -o ./build
to build app.
TODO
- Deployment to surge.sh
1.2.2
8 years ago
1.2.1
8 years ago
1.2.0
8 years ago
1.1.0
9 years ago
1.0.0
9 years ago
0.0.15
9 years ago
0.0.14
9 years ago
0.0.13
9 years ago
0.0.12
9 years ago
0.0.11
9 years ago
0.0.10
9 years ago
0.0.9
9 years ago
0.0.8
9 years ago
0.0.7
9 years ago
0.0.6
9 years ago
0.0.5
9 years ago
0.0.4
9 years ago
0.0.3
9 years ago
0.0.2
9 years ago
0.0.1
9 years ago