0.0.1-abandoned • Published 12 months ago

dsite v0.0.1-abandoned

Weekly downloads
2
License
MIT
Repository
github
Last release
12 months ago

dsite (Abandoned)

The open source community already has two relatively mature tools, browser-sync and http-server, so repeating is unnecessary here!


dir-site: create a directory-static-files-website via cli

dsite -h

╭═══════════════════════════════════════════════╮
║           __            _    __     @froguard ║
║      ____/ /    ____   (●)  / /_  ___         ║
║     / __  /   / ___/  / /  / __/ / _ \        ║
║    / /_/ /   (__  )  / /  / /_  /  __/        ║
║    \__,_/   /____/  /_/   \__/  \___/         ║
║                                               ║
╰═══════════════════════════════════════════════╯

Usage: dsite [option]        => Start a static files server with in directory
       dsite init            => Init dsite config file
       dsite config [option] => Edit dsite config file

       You don't need a config file (.dsite/config.json) usually, it's
       non-essential!

命令:
  dsite init    Init a config file(.dsite/config.json), no [option]
  dsite config  Writing settings into config file(.dsite/config.json)

选项:
  -h, --help       显示帮助信息                                           [布尔]
  -d, --directory  Directory path                                 [默认值: "./"]
  -p, --port       Static http server port.                [数字] [默认值: 8080]
  -l, --language   server page language, en(English) | cn(Chinese).
                              [可选值: "en", "zh-cn", "zh", "cn"] [默认值: "cn"]
  -L, --layout     server page layout
                    [可选值: "list", "grid", "tree", "columns"] [默认值: "list"]
  -v, --version    显示版本号                                             [布尔]

示例:
  dsite -p 8080                     Start static files website within current
                                    directory on port 8080
  dsite "/your/dir/path/"" -p 8080  Start static files website within
                                    "/your/dir/path/" on port 8080
  dsite config                      Save setting into config file
                                    (./.dsite/config.json)
  dsite config "/your/dir/path/"    Save setting into config file
                                    (/your/dir/path/.dsite/config.json)
  dsite init                        Init a config file (./.dsite/config.json)
  dsite init "/your/dir/path/"      Init a config file
                                    (/your/dir/path/.dsite/config.json)

Even through config is non-essential usually, but u can also see more:
- Config demo: https://unpkg.com/dsite/config/demo.json
- Config schema: https://unpkg.com/dsite/config/schema.json