mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-26 02:47:17 +00:00
26 lines
511 B
JavaScript
26 lines
511 B
JavaScript
module.exports = function(plop) {
|
|
plop.setGenerator('package', {
|
|
description: 'Make a new parser',
|
|
|
|
// inquirer prompts
|
|
prompts: [
|
|
{
|
|
type: 'input',
|
|
name: 'name',
|
|
message: 'Project name: ',
|
|
},
|
|
],
|
|
|
|
// actions to perform
|
|
actions: [
|
|
{
|
|
type: 'addMany',
|
|
destination: 'packages/{{dashCase name}}/',
|
|
templateFiles: '.generators/**/*',
|
|
data: {
|
|
year: new Date().getFullYear(),
|
|
},
|
|
},
|
|
],
|
|
})
|
|
}
|