gatsby-cli-daqi

2.4.9 • Public • Published

gatsby-cli-daqi

说明:此软件包由gatsby-cli基础上汉化,并非原创

Gatsby命令行工具.

使用Gatsby starters来创建网站.

安装

npm install --global gatsby-cli-daqi

使用方法

在命令行输入 gatsby2 --help 查看完整的帮助信息

New

gatsby2 new 站名名字

详细查阅 Gatsby官方 starters 文档

Develop

在Gatsby网站的根目录运行 gatsby develop启动Gatsby开发服务器.

Options

选项 描述
-H, --host 设置host. 默认值为localhost
-p, --port 设置port. 默认值是8000
-o, --open 在默认的浏览器自动打开站点
-S, --https 使用HTTPS

参考Local HTTPS guide 使用Gatsby在本地设置HTTPS开发服务器.

Build

在Gatsby网站的根目录运行gatsby build生成一个站点的成品代码.

Options

选项 描述
--prefix-paths Build site with link paths prefixed (set pathPrefix in your config)
--no-uglify Build site without uglifying JS bundles (for debugging)
--open-tracing-config-file Tracer configuration file (open tracing compatible). See https://www.gatsbyjs.org/docs/performance-tracing/

Serve

At the root of a Gatsby site run gatsby serve to serve the production build of the site for testing.

Options

Option Description
-H, --host Set host. Defaults to localhost
-p, --port Set port. Defaults to 8000
-o, --open Open the site in your (default) browser for you
--prefix-paths Serve site with link paths prefixed (if built with pathPrefix in your gatsby-config.js).

Info

At the root of a Gatsby site run gatsby info to get helpful environment information which will be required when reporting a bug.

Options

Option Description
-C, --clipboard Automagically copy environment information to clipboard

Repl

Get a node repl with context of Gatsby environment

Readme

Keywords

Package Sidebar

Install

npm i gatsby-cli-daqi

Weekly Downloads

1

Version

2.4.9

License

MIT

Unpacked Size

38.3 kB

Total Files

9

Last publish

Collaborators

  • advance100