Commit 0ca16365 authored by Andrew Danger Lyon's avatar Andrew Danger Lyon

removing array-based reuire junk because it messes up requirejs, adding...

removing array-based reuire junk because it messes up requirejs, adding unit.EACH, removing uuid from package list
parent 3712a8c7
......@@ -69,6 +69,7 @@ const Unit = {
MILLIMETER: 1,
MILLILITER: 2,
WATTHOUR: 3,
EACH: 4,
},
type: new protobuf.Enum('Unit', this.map),
gen: function(val) {
......
const fs = require('fs');
const config = require('./helpers/config');
const protobuf = require('./helpers/protobuf');
const reexport_helpers = [
'transactions',
'bootstrap',
'standard-api',
];
const models = {};
let has_init = false;
......@@ -27,8 +22,7 @@ exports.init = function(configdir) {
exports.config = config.config;
exports.protobuf = protobuf;
exports.models = models;
reexport_helpers.forEach((helper) => {
const slug = helper.replace(/-/g, '_');
exports[slug] = require('./helpers/'+helper);
});
exports.transactions = require('./helpers/transactions');
exports.boostrap = require('./helpers/bootstrap');
exports.standard_api = require('./helpers/standard-api');
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment