omi/packages/omi-snake
dntzhang e9e8af4214 refactor: use omi latest version 2019-10-10 16:35:46 +08:00
..
build fix: fix the arrow btn position 2019-08-30 09:34:36 +08:00
config test: add omi-snake demo 2019-08-22 10:01:29 +08:00
public test: add omi-snake demo 2019-08-22 10:01:29 +08:00
scripts test: add omi-snake demo 2019-08-22 10:01:29 +08:00
src refactor: use omi latest version 2019-10-10 16:35:46 +08:00
.eslintrc test: add omi-snake demo 2019-08-22 10:01:29 +08:00
README.md docs: update readme 2019-09-10 10:08:19 +08:00
gitignore test: add omi-snake demo 2019-08-22 10:01:29 +08:00
package.json refactor: use omi latest version 2019-10-10 16:35:46 +08:00

README.md

omi-snake

→ Touch the demo

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