Skip to content

Create, modify and generate code. Common boilerplate operations on the CLI made easy.

License

Notifications You must be signed in to change notification settings

SpoonX/tape-roller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tape-roller

Create, modify and generate code. Common boilerplate operations on the CLI made easy.

Slack Status

https://gist.github.com/Rawphs/4f0ef360ddab7794549fa7b9b7e8b821

Usage

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));

About

Create, modify and generate code. Common boilerplate operations on the CLI made easy.

Resources

License

Stars

Watchers

Forks

Packages

No packages published