diff --git a/.gitignore b/.gitignore index ea036635..6912aa32 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ -*.sublime-* build local +node_modules test diff --git a/makefile.js b/makefile.js index 2d87ecd2..49040689 100644 --- a/makefile.js +++ b/makefile.js @@ -36,14 +36,14 @@ module.exports = function (make) { make.target('check-version', [], 'add git info to dev builds').async(function (done, fail) { - if (!/\+$/.test(pkg.version)) { + if (!pkg.develop) { done(); return; } $.git(root, function (err, result) { - pkg.version += result.buildSuffix; + pkg.version += '+' + result.buildSuffix; $.info({ method: 'check-version', message: 'version set to ' + pkg.version }); done(); }); diff --git a/package.json b/package.json index 210eb359..d771876d 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,22 @@ { "name": "h5ai", - "version": "0.25.2+", + "version": "0.25.2", + "develop": true, "description": "a modern HTTP web server index", "homepage": "http://larsjung.de/h5ai/", + "bugs": "https://github.com/lrsjng/h5ai/issues", "author": "Lars Jung (http://larsjung.de)", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/lrsjng/h5ai.git" + }, + "scripts": { + "test": "mocha --recursive test" + }, + "devDependencies": { + "lodash": "^2.4.1", + "mocha": "^1.21.3", + "zombie": "^2.0.0-alpha31" } }