JuliaCI/PkgTemplates.jl
关于
轻松创建新的 Julia 包
其他项目实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文PkgTemplates
PkgTemplates creates new Julia packages in an easy, repeatable, and customizable way.
Installation
Install with the Julia package manager Pkg, just like any other registered Julia package:
pkg> add PkgTemplates # Press ']' to enter the Pkg REPL mode.
or
julia> using Pkg; Pkg.add("PkgTemplates")
Usage
Interactive Generation
You can fully customize your package interactively with:
using PkgTemplates
Template(interactive=true)("MyPkg")
This will prompt you to select options, displaying the default settings in parentheses.
Manual creation
Creating a Template is as simple as:
using PkgTemplates
tpl = Template()
The no-keywords constructor assumes the existence of some preexisting Git configuration (show configuration using git config --list and set with git config --global):
user.name: Your real name, e.g. John Smith.user.email: Your email address, eg. [email protected].github.user: Your GitHub username: e.g. john-smith.
Once you have a Template, use it to generate a package:
tpl("MyPkg")
However, it's probably desirable to customize the template to your liking with various options and plugins:
using PkgTemplates
tpl = Template(;
dir="~/code",
plugins=[
Git(; manifest=true, ssh=true),
GitHubActions(; x86=true),
Codecov(),
Documenter{GitHubActions}(),
],
)
For a much more detailed overview, please see the User Guide documentation.
Contributing
Issues and pull requests are welcome! New contributors should make sure to read the ColPrac Contributor Guide. For some more PkgTemplates-specific tips, see the Developer Guide documentation.
探索相关项目
加载中…