cmints
Bug fix
CMintS 是一个 CMS 和静态站点生成器,用于创建单语言和多语言网站。请参阅 https://cmints.io 上的完整文档。
如果您想在不全局安装 CMintS 的情况下将您的第一个应用程序部署到网络,请查看快速入门指南。
npm install -g cmints
通过运行以下命令生成示例项目以快速启动:
# Generates single language project
cmints --example single
# Generates multi language project
cmints --example multi
# Generates multi language project in the {PATH} directory.
cmints {PATH} --example
# Run http server serving current folder
cmints --start
# Replace optional {PATH} with the path to the folder you wish to serve.
cmints {PATH} --start
# Optional port parameter, if ommited the server will run on port 4000
cmints --start -p {PORT}
# https server: Replace {PATH} with the path to the folder you wish to serve
# Replace {PRIVATE_KEY} with the path to the private key file
# Replace {CERTIFICATE} with the path to the certiface file
cmints {PATH} --start --https -k {PRIVATE_KEY} -c {CERTIFICATE}
使用--no-cache
标志禁用缓存。
cmints --start --no-cache
cmints --static
# tests with page caching
npm test
# tests without page caching
npm test -- --no-cache
# Upload source files and source locales to the crowdin
cmints --crowdin update-sources --key {crowdin-key}
# Download translations from the crowdin
cmints --crowdin update-translations --key {crowdin-key}
# Upload locaes to the crowdin
cmints --crowdin get-translations --key {crowdin-key}