mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-04-13 17:11:57 +02:00
Update build process.
This commit is contained in:
parent
103824aa89
commit
2668c28737
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,5 +1,5 @@
|
||||
|
||||
*.sublime-*
|
||||
build
|
||||
local
|
||||
node_modules
|
||||
test
|
||||
|
@ -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();
|
||||
});
|
||||
|
12
package.json
12
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 <lrsjng@gmail.com> (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"
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user