yarn install
- Create a folder named "testdata" in the project's root folder (or somewhere else on the system).
- Copy the testdata_template folder contents to the folder that was just created
- Update the value of
dataPath
in/src/base.js
to the full path of the folder just created (obviously use correct slash syntax depending on OS environment) - Run
yarn start
$ yarn start
yarn run v1.22.4
$ cross-env NODE_ENV=development node entry.js
Activating on-demand babel transpiling (using options in .babelrc)
The following folder does exist: c:/local/code/node-cli-base/testdata/test1
patternToDelete: c:/local/code/node-cli-base/testdata/test?/?
Files/Folders that would have been removed:
c:\local\code\node-cli-base\testdata\test1\0
c:\local\code\node-cli-base\testdata\test1\1
c:\local\code\node-cli-base\testdata\test1\2
c:\local\code\node-cli-base\testdata\test2\0
c:\local\code\node-cli-base\testdata\test2\1
c:\local\code\node-cli-base\testdata\test2\2
Done in 1.36s.
The output is as expected with del
v4.1.1, but v5.1.0 doesn't match any of the content and results in:
$ yarn start
yarn run v1.22.4
$ cross-env NODE_ENV=development node entry.js
Activating on-demand babel transpiling (using options in .babelrc)
The following folder does exist: c:/local/code/node-cli-base/testdata/test1
patternToDelete: c:/local/code/node-cli-base/testdata/test?/?
Files/Folders that would have been removed:
Done in 1.41s.