Git Product home page Git Product logo

nmare-cli's Introduction

A nightmare e2e scaffolding.

1、installation

$ npm install -g nmare-cli

2、Initialize the project

$ nmare init

If 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.js

4、Installation dependent

cd [your-project-name]
npm install

If 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.js

You can write test cases under ./src or ./index.js.

nmare-cli's People

Stargazers

 avatar 落山基胡扔队 avatar cubemmc avatar  avatar xiuyue avatar 青舟 avatar  avatar

Watchers

xiuyue avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.