omi/packages/omi-cli
dntzhang c422df7c94 fix: remove omim from vite template 2021-06-17 09:16:34 +08:00
..
bin feat:add cli omi-vite 2021-06-16 09:35:54 +08:00
lib feat:add cli omi-vite 2021-06-16 09:35:54 +08:00
template fix: remove omim from vite template 2021-06-17 09:16:34 +08:00
.eslintrc eslintrc (#93) 2018-10-22 12:39:56 +03:00
.gitignore standart code styling 2018-10-21 22:56:05 +03:00
.npmignore omi-cli 2018-10-19 08:04:39 +08:00
README.md fix: remove omim from vite template 2021-06-17 09:16:34 +08:00
package.json fix: remove omim from vite template 2021-06-17 09:16:34 +08:00
yarn.lock chore(deps): bump tar from 2.2.1 to 2.2.2 in /packages/omi-cli 2019-09-12 06:59:49 +00:00

README.md

omi-cli

$ npx omi-cli init my-app     
$ cd my-app           
$ npm start            # develop
$ npm run build        # release

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

Project Template

Template Type Command Describe
Vite Template(v3.5.1+) omi init-vite my-app Basic omi template with vite.
Base Template(v3.3.0+) omi init my-app Basic omi project template.
TypeScript Template(omi-cli v3.3.0+) omi init-ts my-app Basic omi template with typescript.
Mobile Template omi init-weui my-app Mobile web app template with weui and omi-router.

License

This content is released under the MIT License.