ajgenesisnode-entity
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -8,5 +8,5 @@ | ||
ajgenesis.createDirectory('models'); | ||
ajgenesis.createDirectory('ajgenesis', 'models'); | ||
var template = path.join(__dirname, 'templates', 'entity.json.tpl'); | ||
var filename = path.join('models', entityname + '.json'); | ||
var filename = path.join('ajgenesis', 'models', entityname + '.json'); | ||
@@ -13,0 +13,0 @@ var entitymodel = { |
@@ -24,3 +24,3 @@ var path = require('path'), | ||
var filename = path.join('models', entityname + '.json'); | ||
var filename = path.join('ajgenesis', 'models', entityname + '.json'); | ||
var model = require(path.resolve(filename)); | ||
@@ -27,0 +27,0 @@ |
{ "name": "ajgenesisnode-entity" | ||
, "description": "AjGenesis for Node, Entity tasks and templates" | ||
, "keywords": [ "codegeneration", "nodejs", "ajgenesis" ] | ||
, "version": "0.0.4" | ||
, "version": "0.0.5" | ||
, "author": "Angel 'Java' Lopez <webmaster@ajlopez.com> (http://www.ajlopez.com)" | ||
@@ -6,0 +6,0 @@ , "repository": { "type": "git", "url": "git://github.com/ajlopez/AjGenesisNode-Entity.git" } |
@@ -11,5 +11,12 @@ # AjGenesisNode Entity | ||
``` | ||
On Linux, you should use `sudo` to install a module globally. | ||
## Usage | ||
In your project directory, run: | ||
``` | ||
npm install ajgenesisnode-entity | ||
``` | ||
in order to have this module available. | ||
Add an entity to the current AjGenesis project | ||
@@ -42,2 +49,3 @@ ``` | ||
- 0.0.4: Published. Fixing add property bug, using a hack. | ||
- 0.0.5: Using `ajgenesis/models` for model files. | ||
@@ -44,0 +52,0 @@ ## Contribution |
@@ -18,3 +18,3 @@ | ||
var model = ajgenesis.loadModel(path.join(__dirname, 'models', 'customer.json')); | ||
var model = ajgenesis.loadModel('customer'); | ||
@@ -33,3 +33,3 @@ test.ok(model); | ||
removeDirSync(path.join(__dirname, 'models')); | ||
removeDirSync(path.join(__dirname, 'ajgenesis')); | ||
@@ -53,3 +53,3 @@ test.done(); | ||
var model = ajgenesis.loadModel(path.join(__dirname, 'models', 'company.json')); | ||
var model = ajgenesis.loadModel('company'); | ||
@@ -69,3 +69,3 @@ test.ok(model); | ||
removeDirSync(path.join(__dirname, 'models')); | ||
removeDirSync(path.join(__dirname, 'ajgenesis')); | ||
@@ -72,0 +72,0 @@ test.done(); |
@@ -19,3 +19,3 @@ var addpropertytask = require('../addproperty'), | ||
addpropertytask(null, ['customer', 'name'], ajgenesis, function (err) { | ||
var model = ajgenesis.loadModel(path.join(__dirname, 'models', 'customer.json')); | ||
var model = ajgenesis.loadModel(path.join(__dirname, 'ajgenesis', 'models', 'customer.json')); | ||
@@ -43,3 +43,3 @@ test.ok(model); | ||
removeDirSync(path.join(__dirname, 'models')); | ||
removeDirSync(path.join(__dirname, 'ajgenesis')); | ||
test.done(); | ||
@@ -71,3 +71,3 @@ }); | ||
var model = ajgenesis.loadModel(path.join(__dirname, 'models', 'supplier.json')); | ||
var model = ajgenesis.loadModel(path.join(__dirname, 'ajgenesis', 'models', 'supplier.json')); | ||
@@ -102,3 +102,3 @@ test.ok(model); | ||
removeDirSync(path.join(__dirname, 'models')); | ||
removeDirSync(path.join(__dirname, 'ajgenesis')); | ||
@@ -105,0 +105,0 @@ test.done(); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16949
58