New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

tiny-skeleton

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tiny-skeleton

all round skeleton ,express+react

latest
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

skeleton

  • 极速开发、模块化开发
  • 集成后台管理,自带用户管理、权限管理功能
  • 支持自定义主题
  • 支持自定义扩展
  • 支持后台管理扩展
  • 以npm包的形式安装

demo

screenshot

使用

前提:如果要启用视频功能,请安装ffmpeg,确保ffmpegffprobe可执行程序在PATH

npm install 

傻瓜使用

const skeleton =new Skeleton({config});
skeleton.run();

自定义主题

Skeleton也支持像WordPress那样支持自定义主题,只需在配置里填写好主题的相关路径即可。

对于一个skeleton-demo项目,可以在根目录下建立/frontend/themes文件夹,用于存放各种不同主题的文件。比如我们有个叫itminus的主题,则可以再在其中建立两个文件夹:

  • views/ #各个模板
  • static/ #静态文件

最后,在配置文件里填好相关路径,传递给Skeleton构造函数即可:

// ...
config.basePath={
    "views":[
        path.join(__dirname,"../frontend/themes/itminus/views"),
    ],
    "assets":[
        path.join(__dirname,"../frontend/themes/itminus/static"),
    ],
    "ebooks":"C:/Users/itminus/pdfs",
    "lock":process.cwd(),
};

const skeleton =new Skeleton({config});
skeleton.run();

演示如何自定义主题的demo

高级使用方法

参见 docs/ 文档

FAQs

Package last updated on 24 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts