
Use Pkg to generate Project.toml and the src entrypoint, and add the Test package from the stdlib. Also remove some options to generate that added complexity: force, temp_dir, and ssh. Trying to create a package at an already-existent path is now an error no matter what. The ssh keyword to generate has been moved to Template. TODO: - Update the file templates to current standards. - Clean up the gen_plugin signature and update those docs. - Pkg.add requirements provided to the template. - Update interactive_template's requirements gathering to use a loop. - **Make smaller commits.**
20 lines
556 B
Julia
20 lines
556 B
Julia
using PkgTemplates
|
|
using Test
|
|
using Dates
|
|
using LibGit2
|
|
|
|
import PkgTemplates: badges, version_floor, substitute, read_license, gen_file, gen_readme,
|
|
gen_tests, gen_license, gen_require, gen_gitignore, gen_plugin, show_license, LICENSES,
|
|
LICENSE_DIR, Plugin, GenericPlugin, CustomPlugin, Badge, format, interactive,
|
|
DEFAULTS_DIR
|
|
|
|
mktempdir() do temp_dir
|
|
mkdir(joinpath(temp_dir, "dev"))
|
|
pushfirst!(DEPOT_PATH, temp_dir)
|
|
cd(temp_dir) do
|
|
@testset "PkgTemplates.jl" begin
|
|
include("tests.jl")
|
|
end
|
|
end
|
|
end
|