What folder to put the project on github and which are not?

SW. developers, please tell me, I have a project, I did it with Galp and have folders build, src, node_modules. So, you need all of these folders to upload to github or only the build folder? I just want to make a portfolio to show a future employer my work, whether it is necessary in this case to put all or enough of the build folder?
March 12th 20 at 07:57
2 answers
March 12th 20 at 07:59
Solution
it is necessary to spread the source code in the General case.
Collected files (build), dependencies (node_modules) is not necessary.
So we should not put the folder type .idea .vscode and files from configs where keys are stored API access and passwords to the database, if any.
I have this conventional layout, the src obtained is also not necessary? - wayne.Gislas commented on March 12th 20 at 08:02
@wayne.Gislas,
it is necessary to spread the source code
- hal.Torphy commented on March 12th 20 at 08:05
thank you very much) - wayne.Gislas commented on March 12th 20 at 08:08
March 12th 20 at 08:01
Solution
If you want your code to be able to see you lay out the build, src, and package.json, but it is not necessary to fill in node_modules, it's pointless. Who needs to install all dependencies.

If you just need githubPages, and the code to show not intend, we will only need the contents of the folder build.
thank you for the help) - wayne.Gislas commented on March 12th 20 at 08:04
build why? - Roxane.Cremin commented on March 12th 20 at 08:07
@Roxane.Cremin, how are you going to display if the src modules js files, preprocessors and uncompressed photos. - hal.Torphy commented on March 12th 20 at 08:10
@hal.Torphy, Yes, if using github pages, you probably need - Roxane.Cremin commented on March 12th 20 at 08:13

Find more questions by tags Gulp.jsGit