Comparing version 1.1.1 to 1.2.0
@@ -13,3 +13,2 @@ var hogan = require('hogan.js'); | ||
} | ||
return defaultRelease; | ||
@@ -46,2 +45,6 @@ } | ||
function buildCommands(pkg) { | ||
return _.get(pkg, 'spec.build', []); | ||
} | ||
function getPostInstallCommands(pkg) { | ||
@@ -68,2 +71,3 @@ return _.get(pkg, 'spec.post', []); | ||
noarch: getNoArch(pkg), | ||
buildCommands: buildCommands(pkg), | ||
postInstallCommands: getPostInstallCommands(pkg), | ||
@@ -70,0 +74,0 @@ nodeVersion: getNodeVersion(pkg), |
{ | ||
"name": "specit", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "Automatically generates an RPM Spec file for your Node.js project", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -219,2 +219,17 @@ # specit | ||
### Build scripts | ||
If you need to perform any actions after installing your package (such as moving files on the target server) you can specify these inline using the `post` property: | ||
```json | ||
{ | ||
"spec": { | ||
"build": [ | ||
"gulp clean", | ||
"gulp build" | ||
] | ||
} | ||
} | ||
``` | ||
### Executables | ||
@@ -221,0 +236,0 @@ |
Sorry, the diff of this file is not supported yet
46901
717
295