snippeteer/README.md

59 lines
1.1 KiB
Markdown
Raw Normal View History

2020-05-11 12:01:39 +02:00
# @sapphirecode/snippeteer
2020-01-15 14:52:31 +01:00
2020-07-09 22:00:59 +02:00
version: 1.4.x
2020-01-15 14:52:31 +01:00
2020-05-11 12:21:18 +02:00
macros for setting up projects or project parts
2020-01-15 14:52:31 +01:00
2020-05-11 12:01:39 +02:00
## Installation
2020-01-15 14:52:31 +01:00
2020-05-11 12:01:39 +02:00
> npm i -g @sapphirecode/snippeteer
2020-01-15 14:52:31 +01:00
2020-05-11 12:12:28 +02:00
## Requirements
installed on the system:
- yarn
- git
2020-01-15 14:52:31 +01:00
## Usage
2020-05-11 12:01:39 +02:00
run `snippeteer` in console and choose a snippet, all necessary parameters will
be asked interactively
2020-01-16 21:11:59 +01:00
2020-05-11 12:12:28 +02:00
### Snippets
#### copyright
add copyright notice to .js, .ts and .mjs files, as well was generating a
license file and adding fields like author and license to the package.json
#### jenkins
create a generic jenkinsfile
2020-07-09 22:00:59 +02:00
#### drone
create a generic .drone.yml for deployment of node projects
2020-05-11 12:12:28 +02:00
necessary scripts in the package.json:
- ci: `yarn --frozen-lockfile && node jenkins.js`
- compile: `tsc` or
`tsc --allowJs --declaration --emitDeclarationOnly index.js`, ...
compile should be the general compile task, for typescript: tsc, for commonjs:
creating type definitions, ...
#### node
initializes a node project with the standard structure used by sapphirecode
modules
#### readme
create a template readme file
2020-05-11 12:01:39 +02:00
## License
2020-01-16 21:11:59 +01:00
2020-05-11 12:01:39 +02:00
BSD-3-Clause © Timo Hocker <timo@scode.ovh>