search

Home  >  Q&A  >  body text

javascript - Does anyone know how to generate this directory structure for the node project?

滿天的星座滿天的星座2768 days ago554

reply all(6)I'll reply

  • 三叔

    三叔2017-06-26 10:55:58


    The above three do not need to be created manually. One is the dist automatically generated by packaging, the other is node_modules that is available when installing dependencies, and the other is automatically generated by adding git.git


    This is created manually


    This can be created manually or from the command line$ npm init

    If you find it troublesome, you can use scaffolding vue-cli

    reply
    0
  • 高洛峰

    高洛峰2017-06-26 10:55:58

    markdown syntax written by myself

    reply
    0
  • 世界只因有你

    世界只因有你2017-06-26 10:55:58

    If you use Sublime, the Sublime-DirStructure plug-in is specially used to generate and edit the directory structure in the document.

    You can try it if you are interested.

    In

    dist#after build
    public(logos,fonts)
    src#source code(css,js(libs,api#api module(index.js)),images)
    server.js
    package.json
    webpack.config.js#webpack config

    Out

    .
    ├── dist ···················· after build
    ├── public
    │   ├── logos
    │   └── fonts
    ├── src ····················· source code
    │   ├── css
    │   ├── js
    │   │   ├── libs
    │   │   └── api ············· api module
    │   │       └── index.js
    │   └── images
    ├── server.js
    ├── package.json
    └── webpack.config.js ······· webpack config

    reply
    0
  • 大家讲道理

    大家讲道理2017-06-26 10:55:58

    tree command

    https://www.baidu.com/s?wd=tree

    reply
    0
  • 某草草

    某草草2017-06-26 10:55:58

    Generally speaking, it will be automatically generated using scaffolding, which is more convenient and error-free

    reply
    0
  • 某草草

    某草草2017-06-26 10:55:58

    You mean how to write a readme file?

    reply
    0
  • Cancelreply