javascript - Does anyone know how to generate this directory structure for the node project?
滿天的星座
滿天的星座 2017-06-26 10:53:58
0
6
548

滿天的星座
滿天的星座

reply all(6)
三叔


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

小葫芦

markdown syntax written by myself

世界只因有你

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
大家讲道理

tree command

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

某草草

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

某草草

You mean how to write a readme file?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template