base-create
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "base-create", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Utility for npm init create-* scripts.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -16,3 +16,3 @@ # base-create | ||
// `name` will be the app name passed on CLI like "my-app" | ||
const { name } = create("custom-babel", { | ||
const { name } = create({ | ||
// optional deps to install | ||
@@ -38,2 +38,8 @@ dependencies: ["@babel/runtime"], | ||
}, | ||
{ | ||
path: "README.md", | ||
// `contents` can be a function | ||
contents: ({ nameWithScope, nameWithoutScope, dirName }) => | ||
"# ${nameWithScope}", | ||
}, | ||
], | ||
@@ -40,0 +46,0 @@ // optional list of commands |
9828
77