0.4.0 • Published 8 years ago

briskly-json v0.4.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

briskly-json

Find and parse briskly.json in Briskly projects

NPM version Travis build status

Installation

npm install briskly-json --save

Usage

{
	"main": "path/to/index.html",
	"port": 80, // Web server port number
	"host": "localhost", // Web server hostname
	"routes": {
		"/example": { // route path
			"method": "GET", // request method
			"handler": "routes/example.js" // route handler function
		},
		...
	},
	"components": {
		"br-header": { // Name of web component
			"template": "components/header/template.html", // Location of view template markup
			"viewModel": "components/header/model.js" // Location of view model constructor
		},
		...
	}
}
// TypeScript
import BrisklyJson = require('briskly-json');


var config = BrisklyJson.json;
// Returns briskly.json contents as a JavaScript object

var jsonPath = BrisklyJson.path;
// Returns the expected path of briskly.json

License

MIT

0.4.0

8 years ago

0.3.0

8 years ago

0.2.0

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago