Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spoonx/tape-roller
Create, modify and generate code. Common boilerplate operations on the CLI made easy.
https://github.com/spoonx/tape-roller
Last synced: about 1 month ago
JSON representation
Create, modify and generate code. Common boilerplate operations on the CLI made easy.
- Host: GitHub
- URL: https://github.com/spoonx/tape-roller
- Owner: SpoonX
- License: mit
- Created: 2018-10-05T11:02:46.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-27T17:38:16.000Z (about 6 years ago)
- Last Synced: 2024-10-13T11:14:46.097Z (2 months ago)
- Language: TypeScript
- Size: 23.4 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# tape-roller
Create, modify and generate code. Common boilerplate operations on the CLI made easy.
[![Slack Status](https://spoonx-slack.herokuapp.com/badge.svg)](https://spoonx-slack.herokuapp.com)
https://gist.github.com/Rawphs/4f0ef360ddab7794549fa7b9b7e8b821
## Usage
```ts
const moduleName = params.name;
const sourceDirectory = path.resolve(__dirname, '..', 'templates');
const targetDirectory = path.resolve(projectRoot, 'app');
const tapeRoller = new TapeRoller({ sourceDirectory, targetDirectory });tapeRoller
.read('module/**/*', { from: 'module' })
.replace({ moduleName, year: new Date().getFullYear() })
.write(path.resolve('module', moduleName));
```