omi/packages/omi-snap
yuqing521 8321512fa0 fix:rename package.json name 2021-06-17 20:28:30 +08:00
..
build omi-snap - using omio latest 2019-01-11 10:59:50 +08:00
config change React as Omi 2019-01-10 17:14:44 +08:00
public init omi-snap 2019-01-10 10:04:44 +08:00
scripts init omi-snap 2019-01-10 10:04:44 +08:00
src omi-snap - using omio latest 2019-01-11 10:59:50 +08:00
README.md update readme 2019-01-11 11:08:33 +08:00
gitignore init omi-snap 2019-01-10 10:04:44 +08:00
package.json fix:rename package.json name 2021-06-17 20:28:30 +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",
...

License

MIT

Open Source Software Licensed Under the MIT License:

react-snap 1.23.0 Copyright (c) 2017 stereobooster