0.7.1 • Published 7 years ago
epii-render v0.7.1
epii-render
epii-node-render
a simple builder for React + SASS
- Webpack + Babel + React
- PostCSS + PreCSS
EPII render is designed for EPII server project.
You can customize view container name and window namespace to place model & view.
Features
build React views
- compile
source/**[not assets]/*.jsxtotarget - auto assign view into global namespace
- auto output launch script
- optional using extern react
build other JS
- compile
source/**[not assets]/*.jstotarget - or only copy
source/**[not assets]/*.jstotarget(simple mode)
build SASS
- compile
source/**[not assets]/*.scssas SASS totarget
build raw files
- auto copy
source/assets/*.*totarget/assets - auto copy
source/**[not assets]/index.*[not jsx/js/scss/css]totarget
hot reload
- auto watch all files changes
Usage
project like this
(root)
├── target
└── source
├── scenes
│ ├── component (skip)
│ ├── SceneA
│ │ ├── component (skip)
│ │ ├── index.jsx
│ │ └── index.scss
│ ├── SceneB
│ │ ├── index.js
│ │ └── index.html
│ ├── index.jsx
│ └── index.scss
└── assets
├── image.png
├── video.mp4
└── octet.bininstall as dev dependency
npm install --save-dev epii-render@latestuse api to build or watch
const epiiRender = require('epii-render')
const config = {
path: {
root: __dirname,
client: 'your-source-dir', // or source
static: 'your-target-dir', // or target
},
filter: 'component', // skip client/**/component/*
holder: {
name: 'app', // view container name, name='app' means div#app
stub: 'epii', // window namespace, stub='epii' means window.epii.view = React view
},
extern: 'react', // use external react library (from CDN),
simple: true, // default false
logger: true, // default true
}
// build once with production env
epiiRender.build(config)
// build & watch with development env
epiiRender.watch(config)0.7.1
7 years ago
0.7.0
7 years ago
0.6.5
8 years ago
0.6.4
8 years ago
0.6.3
8 years ago
0.6.2
8 years ago
0.6.1
8 years ago
0.6.0
9 years ago
0.5.0
9 years ago
0.4.0
9 years ago
0.3.0
9 years ago
0.2.2
9 years ago
0.2.1
9 years ago
0.2.0
9 years ago
0.1.5
9 years ago
0.1.4
10 years ago
0.1.3
10 years ago
0.1.2
10 years ago
0.1.1
10 years ago
0.1.0
10 years ago
0.0.5
10 years ago
0.0.4
10 years ago
0.0.3
10 years ago
0.0.2
10 years ago
0.0.1
10 years ago