Skip to content

Instantly share code, notes, and snippets.

@itelo
Last active April 22, 2020 21:26
Show Gist options
  • Select an option

  • Save itelo/b9f334a5e63efb6142f2aacca94e845e to your computer and use it in GitHub Desktop.

Select an option

Save itelo/b9f334a5e63efb6142f2aacca94e845e to your computer and use it in GitHub Desktop.
module.exports = {
name: 'init',
alias: ['init'],
run: async (toolbox: GluegunToolbox) => {
/**
* initing global/local variables
*/
const projectName = toolbox.parameters.options.name;
const templateName = toolbox.parameters.options.template;
const appDirectory = `${currentDirectory}/${projectName}`;
const cracloneUUIDv4 = `create-react-app-from-zero-${uuidv4()}`;
const tmpDir = `/tmp/${cracloneUUIDv4}`;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment