typescript(monorepo-template): feat: readme generation
Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
parent
af021663b0
commit
27c98b5823
|
@ -32,4 +32,5 @@ jobs:
|
||||||
- name: Release
|
- name: Release
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
run: pnpx semantic-release
|
run: pnpx semantic-release
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
to: packages/<%= name %>/README.md
|
||||||
|
---
|
||||||
|
# <%- Name %>
|
||||||
|
|
||||||
|
<%- description %>
|
|
@ -5,5 +5,6 @@ exports.prompt = async ({ args }) => ({
|
||||||
...args,
|
...args,
|
||||||
org: packageJson.name,
|
org: packageJson.name,
|
||||||
repository: JSON.stringify(packageJson.repository),
|
repository: JSON.stringify(packageJson.repository),
|
||||||
bugs: JSON.stringify(packageJson.bugs)
|
bugs: JSON.stringify(packageJson.bugs),
|
||||||
|
description: args.description || ''
|
||||||
})
|
})
|
||||||
|
|
|
@ -4,7 +4,7 @@ to: packages/<%= name %>/package.json
|
||||||
{
|
{
|
||||||
"name": "@<%= org %>/<%= name %>",
|
"name": "@<%= org %>/<%= name %>",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"description": "",
|
"description": "<%- description %>",
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"main": "dist/bundle.cjs.js",
|
"main": "dist/bundle.cjs.js",
|
||||||
"module": "dist/bundle.esm.js",
|
"module": "dist/bundle.esm.js",
|
||||||
|
|
Loading…
Reference in a new issue