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}