Skip to content

Instantly share code, notes, and snippets.

View nickchampion's full-sized avatar

Nick Champion nickchampion

View GitHub Profile
hivehome.com
*.hivehome.com
bgchprod.info
*.bgchprod.info
bgchlivehome.co.uk
api.bgchlivehome.co.uk
beekeeper.hivehome.com
api.prod.bgchprod.info
api-prod.bgchprod.info
alerts.prod.bgchprod.info
{
"regions": [
{
"iso": "ABD",
"name": "Aberdeenshire",
"aliases": [
"Aberdeen"
],
"tb": 0,
"country": "SCT",
import type { NotificationTemplate } from '@hectare/platform.modules.system.core'
export const AccountTemplates: Record<string, NotificationTemplate> = {
UnlockModuleRequest: {
id: 'UnlockModuleRequest',
targets: {
test: ['email', 'slack'],
live: ['email', 'slack']
},
template: null,
/* eslint-disable max-len */
import type { NotificationTemplate } from '@hectare/platform.modules.system.core'
export const TradingTemplates: Record<string, NotificationTemplate> = {
TradingBidAccepted: {
id: 'TradingBidAccepted',
targets: {
test: ['email', 'phone'],
live: ['email', 'phone']
},
{
"countryISO": "GB",
"type": "crop",
"specifications": [
{
"id": 1,
"name": "Kg/HL",
"unit": "%"
},
{
{
"errors": 0,
"validation": 100,
"success": 341,
"results": [
{
"rows": "1",
"status": "success",
"message": null,
"summary": "A P Innes Ltd",
/**
* this env extends the Bit official NodeJS environment.
* learn more: https://bit.cloud/bitdev/node/node-env
*/
import { NodeEnv } from '@bitdev/node.node-env'
import type { Compiler } from '@teambit/compiler'
import type { EnvHandler } from '@teambit/envs'
import { Pipeline } from '@teambit/builder'
import { TypescriptCompiler, resolveTypes, TypescriptTask } from '@teambit/typescript.typescript-compiler'
import { ESLintLinter, EslintTask } from '@teambit/defender.eslint-linter'
[2023-04-24 14:22:09.244 +0100] INFO (29112): *** Loading Bit *** argv:
/Users/nchampion/.bvm/nodejs/16.16.0/bin/node
/Users/nchampion/.bvm/versions/0.1.11/bit-0.1.11/node_modules/@teambit/bit/bin/bit
schema
modules/trading/api
[2023-04-24 14:22:09.611 +0100] DEBUG (29112): scope.load, found scope at /Users/nchampion/Dev/Repositories/Hectare/platform/.git/bit from cache
[2023-04-24 14:22:09.821 +0100] INFO (29112): teambit.workspace/workspace, [214] loadAspects, loading 0 aspects.
ids:
needed-for: workspace.cli.registerOnStart. using opts: {
"useScopeAspectsCapsule": false
@nickchampion
nickchampion / gist:0255805b0013c26b0c7937612e47c729
Created April 24, 2023 13:23
HectareEnvironmentConfiguration
/* eslint-disable @typescript-eslint/no-explicit-any */
import { EnvsMain, EnvsAspect } from '@teambit/envs'
import { NodeAspect, NodeMain } from '@teambit/node'
import { TsConfigTransformer, TypescriptConfigMutator } from '@teambit/typescript'
export class HectareEnvironmentConfiguration {
//constructor(private readonly node: NodeMain) {}
static dependencies: any = [EnvsAspect, NodeAspect]
[
{
"items": [
{
"name": "Wheat",
"types": [
{
"id": 9,
"name": "Winter Wheat"
},