@patternplate/create-default
Advanced tools
Comparing version 2.0.0-44 to 2.0.0-45
27
index.js
@@ -30,4 +30,9 @@ module.exports = createDefault; | ||
* Documentation at \`docs\` | ||
This is the minimal template required for | ||
a \`patternplate\` project. | ||
* No \`patternplate.config.js\`, defaults apply | ||
* Documentation at \`docs\` and \`README.md\` | ||
* Pattern sources at \`lib\` | ||
* Demos are plain HTML, CSS, JavaScript | ||
@@ -40,17 +45,10 @@ ## Getting started | ||
\`\`\ | ||
`; | ||
} | ||
const DOCS = data => { | ||
return `--- | ||
displayName: Documentation | ||
options: | ||
order: -1 | ||
--- | ||
## Hello world pattern | ||
> a patternplate project | ||
This template contains a "Hello World" pattern. | ||
# ${data.name} | ||
` | ||
}; | ||
Access it by navigating to [pattern/hello-world](./pattern/hello-world). | ||
`; | ||
} | ||
@@ -90,5 +88,2 @@ const PATTERN_JSON = data => { | ||
fs.mkdirpSync("/docs"); | ||
fs.writeFileSync("/docs/docs.md", DOCS(data)); | ||
fs.mkdirpSync("/lib/hello-world"); | ||
@@ -95,0 +90,0 @@ fs.writeFileSync("/lib/hello-world/package.json", PATTERN_JSON(data)); |
{ | ||
"name": "@patternplate/create-default", | ||
"version": "2.0.0-44", | ||
"version": "2.0.0-45", | ||
"description": "Create a default patternplate project via patternplate create", | ||
@@ -5,0 +5,0 @@ "xo": false, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2823
87