File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- const path = require ( "path" ) ;
21const CLEAN_NPM_CACHE = "npm cache clean --force" ;
32const SPECIALCHAR = RegExp ( "/[!@#$%^&*()-=_,.?~:;\\{}|<>]/g" ) ;
43const UNNECESSORYFOLDERS = RegExp ( "^node_modules|build|dist$" , "i" ) ;
5- const TEMPLATE_PATH = path . join ( __dirname , "../template" ) ;
64
75module . exports = {
86 CLEAN_NPM_CACHE ,
97 SPECIALCHAR ,
10- TEMPLATE_PATH ,
118 UNNECESSORYFOLDERS
129} ;
Original file line number Diff line number Diff line change 11const path = require ( "path" ) ;
22const { copyDirectory, ErrorMessage, SuccessMessage } = require ( "./helper" ) ;
3- const { CLEAN_NPM_CACHE , SPECIALCHAR , TEMPLATE_PATH } = require ( "./constants" ) ;
3+ const { CLEAN_NPM_CACHE , SPECIALCHAR } = require ( "./constants" ) ;
44const {
55 installDependencies,
66 getDependencies,
@@ -22,6 +22,7 @@ if (dirName[0].match("^[A-Z0-9]")) {
2222 ) ;
2323} else {
2424 //using process.cwd for getting current path
25+ const TEMPLATE_PATH = path . join ( __dirname , "../template" ) ;
2526 let destination = path . join ( process . cwd ( ) + "/" + args [ 0 ] ) ;
2627 copyDirectory ( TEMPLATE_PATH , destination ) ;
2728
You can’t perform that action at this time.
0 commit comments