diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..02e370d --- /dev/null +++ b/.npmignore @@ -0,0 +1,42 @@ +# Reference: https://docs.npmjs.com/misc/developers#keeping-files-out-of-your-package + +# Project specific +gulp/ +src/ +.editorconfig +.jscsrc +.jshintignore +.jshintrc +gulpfile.babel.js +gulpfile.js +travis.yml +TODO.md + +# Misc +*.log + +# NPM +node_modules +npm-debug.log + +# Windows +Desktop.ini + +# JetBrains IDEs +*.iml +.idea/ +.webstorm/ + +# Git +.git +.gitattributes + +# OSX +.DS_Store +.AppleDouble +.LSOverride +# Icon must end with two \r +Icon + +# Sublime text +.sublime-gulp.cache diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 8f2f083..527017d 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,3 +1,8 @@ +* 0.0.7 + * Fixed an npm publish issue (configured files and folders to include/exclude) +* 0.0.6 + * Updated dependencies + * Fixed an npm publish issue * 0.0.5 * First functional version ;-) * 0.0.4 diff --git a/TODO.md b/TODO.md index cfef434..84dcc74 100644 --- a/TODO.md +++ b/TODO.md @@ -7,6 +7,7 @@ * reusable build scripts ** implement a solution to make useful scripts reusable ** examples: npm run scripts in midnightLightV2 +** look at the 'bin' property in package.json: https://docs.npmjs.com/files/package.json ** these could be added as 'facade' tasks to the gulp tasks * what to do/recommend regarding the following files? ** test behavior if absent: @@ -35,4 +36,4 @@ * customize behavior (e.g., logging) * refactor own build to mimic the task loading mechanism & reuse code * add npm shrinkwrap -* remove gulp-load-plugins (prefer explicit loading) +* remove gulp-load-plugins (prefer explicit loading) diff --git a/gulp/tasks/scripts-javascript-dist.js b/gulp/tasks/scripts-javascript-dist.js index 12103f2..3206910 100644 --- a/gulp/tasks/scripts-javascript-dist.js +++ b/gulp/tasks/scripts-javascript-dist.js @@ -7,7 +7,7 @@ import changed from "gulp-changed"; import babel from "gulp-babel"; //import iff from "gulp-if"; import size from "gulp-size"; -//import debug from "gulp-debug"; +import debug from "gulp-debug"; import config from "../config"; import utils from "../utils"; diff --git a/package.json b/package.json index 3880554..5435daf 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "modern-web-dev-build", "description": "Modern Web Development Build.", - "version": "0.0.6", + "version": "0.0.7", "author": { "name": "Sebastien Dubois", "email": "seb@dsebastien.net", @@ -112,6 +112,12 @@ "npm": ">=2.0.0" }, "main": "dist/index.js", + "files": [ + "dist" + ], + "directories": { + "lib": "./dist" + }, "scripts": { "clean": "gulp clean", "build": "gulp",