1.9.0 • Published 10 months ago

@intenda/opus-ui-packager v1.9.0

Weekly downloads
-
License
-
Repository
-
Last release
10 months ago

Introduction

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.

Usage

1. Install the packager

npm i --save-dev opus-ui-packager

2. Add the config to your package.json file

"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

3. Build your JSON package

node node_modules/opus-ui-packager/src/packager.js

4. Setting up automatic builds during development

While, optional, it is recommended that you do the following so that your package can automatically be rebuilt when needed:

1. Install nodemon

npm i --save-dev nodemon

2. Set up your nodemon config in the package.json file

"nodemonConfig": {
	"ignore": [],
	"watch": [
		"%yourAppDir%"
	],
	"ext": "js,json,md",
	"ignoreRoot": [],
	"delay": 100
}

3. Run nodemon to automatically rebuild your JSON package when needed

nodemon node_modules/opus-ui-packager/src/packager.js

1.8.2

10 months ago

1.9.0

10 months ago

1.8.1

10 months ago

1.8.0

10 months ago

1.6.2

12 months ago

1.7.0

10 months ago

1.6.1

12 months ago

1.6.0

12 months ago

1.5.1

1 year ago

1.7.0-alpha

11 months ago

1.8.3

10 months ago

1.2.0

2 years ago

1.5.0

1 year ago

1.4.0

1 year ago

1.3.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.2.0

2 years ago