omi/packages/antd
dntzhang cdd07a2fb4 rename reomio to reomi 2019-04-26 09:35:45 +08:00
..
config support antd 2019-04-24 20:24:58 +08:00
public support antd 2019-04-24 20:24:58 +08:00
scripts support antd 2019-04-24 20:24:58 +08:00
src update antd template 2019-04-24 20:36:39 +08:00
.eslintrc support antd 2019-04-24 20:24:58 +08:00
README.md support antd 2019-04-24 20:24:58 +08:00
gitignore support antd 2019-04-24 20:24:58 +08:00
package.json rename reomio to reomi 2019-04-26 09:35:45 +08:00

README.md

Develop

npm install
npm start

Release

npm run build

Eslint + Prettier

npm run fix

Directory description

├─ config
├─ public
├─ scripts
├─ src
│  ├─ assets
│  ├─ elements    //Store all custom elements
│  ├─ store       //Store all this store of pages
│  ├─ admin.js    //Entry js of compilerwill build to admin.html
│  └─ index.js    //Entry js of compilerwill build to index.html

Build Scripts

"scripts": {
    "start": "node scripts/start.js",
    "build": "PUBLIC_URL=. node scripts/build.js",
    "build-windows": "set PUBLIC_URL=.&& node scripts/build.js",
    "fix": "eslint src --fix"
}

You can set up the PUBLIC_URL, such as:

...
"build": "PUBLIC_URL=https://fe.wxpay.oa.com/dv node scripts/build.js",
"build-windows": "set PUBLIC_URL=https://fe.wxpay.oa.com/dv&& node scripts/build.js",
...

Switch omi and omio

Add or remove the alias config in package.json to switch omi and omio

 ...
 "alias": {
    "omi": "omio"
  }
  ...

License

MIT