Skip to content

This is a KOS project scaffold for desktop app developing in javascript! You can use it to start a new project in kos-core with no pain. 创建 kos-core 的模板脚手架,桌面版项目的 javascript 最佳使用实践示例1,路由、namespace、目录结构多合一整合版。

Notifications You must be signed in to change notification settings

ali-kos/kos-scaffold-desktop1-javascript

Repository files navigation

Version 0.3

Change log

Commands

developing:

`yarn start`   or   `npm run start`

build your project:

`yarn build`    or    `npm run build`

Project directory

config: webpack part (eject from create-react-app)

scripts: package.json scripts order && DIY webpack plugin and component

src--
      app- project layout part and app part of state
      common- Static Resource in folder images or anything else
              middleware use for kos-core in folder middlewares
              style part of the project in folder themes
              util function or component in folder utils
      components- DIY component
      pages- your bussiness module

Route params

[
...,
{
  path: "/dashboard", // Path for the component in address bar, as a part of namespace's key(replace '/' with '_' in key).
  Component: Dashboard, // Using component
  icon: "appstore", // Prefix icon
  name: "Title on page", // Page title
},
...
]

Todo

  • stage 2:

  • Lazy load components and routes by code splitting.

  • Import package(s) or module(s) from CDN.

  • stage 1:

  • Combine routes, namespace, module and file directory into the 1 configeration.

One more thing

New features comming soon! We are looking forward your PR and your issues!

About

This is a KOS project scaffold for desktop app developing in javascript! You can use it to start a new project in kos-core with no pain. 创建 kos-core 的模板脚手架,桌面版项目的 javascript 最佳使用实践示例1,路由、namespace、目录结构多合一整合版。

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published