This tool builds a single json object (tree) which contains all json files inside a root folder. The tree will accurately represent the folder structure within.
npm i --save-dev opus-ui-packager
"opusPackagerConfig": {
"appDir": "app",
"packagedDir": "public",
"packagedFileName": "app"
}
appDir
: The folder in which your application JSON is stored, relative to your package.json
file
packagedDir
: In which folder the packaged JSON file will be stored
packagedFileName
: The name of the packaged JSON file
node node_modules/opus-ui-packager/src/packager.js
While, optional, it is recommended that you do the following so that your package can automatically be rebuilt when needed:
npm i --save-dev nodemon
"nodemonConfig": {
"ignore": [],
"watch": [
"%yourAppDir%"
],
"ext": "js,json,md",
"ignoreRoot": [],
"delay": 100
}
nodemon node_modules/opus-ui-packager/src/packager.js