0.7.1 • Published 5 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]/*.jsx
totarget
- auto assign view into global namespace
- auto output launch script
- optional using extern react
build other JS
- compile
source/**[not assets]/*.js
totarget
- or only copy
source/**[not assets]/*.js
totarget
(simple mode)
build SASS
- compile
source/**[not assets]/*.scss
as 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.bin
install as dev dependency
npm install --save-dev epii-render@latest
use 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
5 years ago
0.7.0
5 years ago
0.6.5
6 years ago
0.6.4
6 years ago
0.6.3
6 years ago
0.6.2
6 years ago
0.6.1
6 years ago
0.6.0
7 years ago
0.5.0
7 years ago
0.4.0
7 years ago
0.3.0
7 years ago
0.2.2
7 years ago
0.2.1
7 years ago
0.2.0
7 years ago
0.1.5
7 years ago
0.1.4
8 years ago
0.1.3
8 years ago
0.1.2
8 years ago
0.1.1
8 years ago
0.1.0
8 years ago
0.0.5
8 years ago
0.0.4
8 years ago
0.0.3
8 years ago
0.0.2
8 years ago
0.0.1
8 years ago