@10up/create-10up 中文文档教程

发布于 3年前 浏览 28 更新于 3年前

10up Project Scaffold

10up Project Scaffold 是一个命令行工具,可以为您的新项目快速初始化入门主题或插件。 它遵守所有 10up 的最佳实践编码标准,并且已经过安全性、性能和可扩展性方面的审查。 该项目专门针对 10up 所做的工作,但我们欢迎所有社区贡献。

支持级别MIT License

Contributing

如果您对生成的主题或插件有更新,请使用相关存储库提交这些问题或拉取请求:

查看主题库

查看插件库

Set Up from Github

  1. Clone the repository locally
  2. Run cd project-scaffold
  3. Run npm install
  4. Run npm link to make the create-10up command global

Setup from npmjs.com

npm install @10up/create-10up -gnpx @10up/create-10up [type] [name]

Project Types

  • theme
  • plugin
  • component

Example Usage with local installation

cd

< code>create-10up theme human-theme-name

create-10up plugin human-plugin-name

create-10up component human-component-name

Example Usage without local installation

<代码> npx @10up/create-10up theme human-theme-name

npx @10up/create-10up 插件 human-plugin-name

npx @10up/create-10up component human-component-name

Updating this tool

create-10up 正在积极开发中。 要获取最新版本,请导航到您的主目录(或您安装它的任何其他位置)中的此文件夹,然后 git pull

Learn more about the packages used with this project

Support Level

活跃:10up 正在为此积极努力,我们希望在可预见的未来继续努力,包括保持对最新版本 WordPress 的测试。 欢迎错误报告、功能请求、问题和请求请求。

Like what you see?

10up 时与我们一起工作

10up Project Scaffold

The 10up Project Scaffold is a command line tool to quickly initialize a starter theme or plugin for your new project. It adheres to all 10up's best practice coding standards and has been reviewed for security, performance, and scalability. This project is aimed specifically at the work that 10up does, but we welcome all community contributions.

Support LevelMIT License

Contributing

If you have an update for the theme or plugin that is generated, please submit those issues or pull requests with the associated repository:

View the theme repository

View the plugin repository

Set Up from Github

  1. Clone the repository locally
  2. Run cd project-scaffold
  3. Run npm install
  4. Run npm link to make the create-10up command global

Setup from npmjs.com

npm install @10up/create-10up -g or npx @10up/create-10up [type] [name]

Project Types

  • theme
  • plugin
  • component

Example Usage with local installation

cd <your-project-directory>

create-10up theme human-theme-name

create-10up plugin human-plugin-name

create-10up component human-component-name

Example Usage without local installation

npx @10up/create-10up theme human-theme-name

npx @10up/create-10up plugin human-plugin-name

npx @10up/create-10up component human-component-name

Updating this tool

create-10up is in active development. To get the latest, navigate to this folder in your home directory (or wherever else you have it installed) and git pull.

Learn more about the packages used with this project

Support Level

Active: 10up is actively working on this, and we expect to continue work for the foreseeable future including keeping tested up to the most recent version of WordPress. Bug reports, feature requests, questions, and pull requests are welcome.

Like what you see?

Work with us at 10up

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文