From bd0ffc4910c47277a27b78a8c0590116e5e740aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20S=C3=A1nchez=20Ortega?= Date: Fri, 22 Jan 2016 12:35:47 +0100 Subject: [PATCH] Add note about .gitignore/.npmignore to plugin guide --- PLUGIN-GUIDE.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PLUGIN-GUIDE.md b/PLUGIN-GUIDE.md index 2a4c95d05..9712350ad 100644 --- a/PLUGIN-GUIDE.md +++ b/PLUGIN-GUIDE.md @@ -169,6 +169,11 @@ trigger a build/minification just before publishing your package with a } ``` +You can then use the [`.gitignore`](https://help.github.com/articles/ignoring-files/) +file to make sure the minified files are not versioned, and an +[empty `.npmignore`](https://docs.npmjs.com/misc/developers#keeping-files-out-of-your-package) +to ensure that they are published to NPM. + ## Module Loaders Module loaders such as [RequireJS](http://requirejs.org/) and [Browserify](http://browserify.org/) implement module systems like AMD (Asynchronous Module Definition) and CommonJS to allow developers to modularize and load their code.