1.0.7 • Published 7 years ago
nmare-cli2 v1.0.7
A nightmare e2e scaffolding.
1、installation
$ npm install -g nmare-cli2、Initialize the project
$ nmare initIf there is a directory of the same name locally,We will put you in a new directory(your-project-name + random) for you.
3、Directory structure description
your-project-name // Initialization file name
│ README.md
│ package.json
│ .gitignore
│ index.js // entrance
│ start.sh // shell
│
└───src
│ │ demo.js
│
└───login // login demo
│ cookie.js
│ index.js4、Installation dependent
cd [your-project-name]
npm installIf there is a node install.js stuttering problem, you can do this as below
npm config set electron_mirror=https://npm.taobao.org/mirrors/electron/Or manually add in ~/.npmrc
electron_mirror="https://npm.taobao.org/mirrors/electron/"once again npm install, please delete beforenode_modules.
reference link: https://segmentfault.com/q/1010000007594059
5、Run the project
node index.jsYou can write test cases under ./src or ./index.js.
1.0.7
7 years ago