What’s the difference between .npmignore and .gitignore?

.gitignore lists which files & folders should be omitted from any commits to the repository. You can use this repo for templates of files/folders to in your .gitignore depending on your environment. .npmignore works similarly to .gitignore, it is used to specify which files should be omitted when publishing the package to NPM. You can … Read more

Should package-lock.json also be published?

It cannot be published. From the npm documentation: One key detail about package-lock.json is that it cannot be published, and it will be ignored if found in any place other than the toplevel package See package-lock.json documentation on docs.npmjs.com. However, you should be commiting your package-lock.json to git as per the documentation. This file is … Read more

Should I .npmignore my tests?

As you probably found, NPM doesn’t really state specifically what should go in there, rather they have a list of ignored-by-default files. Many people don’t even use it as everything in your .gitignore is ignored in npm by default if .npmignore doesn’t exist. Additionally, many files are already ignored by default regardless of settings and … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)