This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cars": { | |
"car-key-1": { | |
"model": "Opel Astra" | |
}, | |
"car-key-2": { | |
"model": "BMW 3" | |
} | |
}, | |
"car-usage": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This little script copies the custom fields into the node modules directly into the keystone types. | |
* Afterwards it hooks into the keystone field types and registers the new model. | |
* | |
* ATTENTION if a model already exists it'll overwrite it. | |
* This way you can copy the fields and update them to your liking. | |
*/ | |
var _ = require('lodash'); | |
var shell = require('shelljs'); |