slug | title |
---|---|
node-introduction |
Introduction |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const directorySeparator = '/'; | |
const backslashRegExp = /\\/g; | |
export function normalizePath(path: string): string { | |
return path.replace(backslashRegExp, directorySeparator); | |
} | |
import { pascalCase } from "change-case"; | |
export const upperCaseFirst = pascalCase; | |
import { iif, Observable, throwError, timer, Observer, Subscriber, Subscription } from "rxjs"; | |
import { concatMap, retryWhen } from "rxjs/operators"; | |
export interface RetryBackoffConfig { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { tsUtils } from '@neo-one/ts-utils'; | |
import * as fs from 'fs-extra'; | |
import path from 'path'; | |
import ts from 'typescript'; | |
import { Concatenator } from './Concatenator'; | |
export type SymbolAndSources = { readonly [Symbol in string]: string }; | |
export type SourceFileSymbolAndSources = { readonly [SourceFile in string]: SymbolAndSources }; | |
export function concatenate(entry: string) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const bar = 'bang'; | |
const sc1 = 'bar'; | |
const foo = sc1; | |
const fizz = { foo: foo }; | |
export { fizz }; |
I hereby claim:
- I am danwbyrne on github.
- I am danwbyrne (https://keybase.io/danwbyrne) on keybase.
- I have a public key ASBlr3NARdmXAaD2dw0N-pxNwl3ALnIFBcoDsprDJlQSHgo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"SETTINGS": { | |
"type": string, | |
"privateNet": boolean, | |
"address": string, | |
"secondsPerBlock": number, | |
"standbyValidators": string[] | |
}, | |
"ENVIRONMENT": { |
Instead of building the package
directory into a dist
directory
we now build every packages/*/src
folder into a packages/*/lib
folder.
This has some major benefits, mainly in that we can point main
in
packages/*/package.json
to lib/index.js
, then down-stream packages
importing an upstream package will get the built version.
To help mimic our previous setup I've added a tsconfig.dev.json
to @neo-one/build-tools
which adds a path mapping for neo-one/*
to ../neo-one-*
which ideally is only used
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"blockchain": { | |
"genesisBlock": "000000000000000000000000000000000000000000000000000000000000000000000000c187cfdd862581710dde2bafc28a8a918c1c628d3336768d248cefca5cf3055065fc8857000000001dac2b7c00000000980312637967bbe96a53e7ac4547947e9cf19238010001510500001dac2b7c00000000400000455b7b226c616e67223a227a682d434e222c226e616d65223a22e5b08fe89a81e882a1227d2c7b226c616e67223a22656e222c226e616d65223a22416e745368617265227d5d0000c16ff28623000000da1745e9b549bd0bfa1a569971c77eba30cd5a4b00000000400001445b7b226c616e67223a227a682d434e222c226e616d65223a22e5b08fe89a81e5b881227d2c7b226c616e67223a22656e222c226e616d65223a22416e74436f696e227d5d0000c16ff286230008009f7fd096d37ed2c0e3f7f0cfc924beef4ffceb680000000001000000019b7cffdaa674beae0f930ebe6085af9093e5fe56b34a5c220ccdcf6efc336fc50000c16ff2862300ab1a5269fef5bf9fd7f89a0780d9b1e269de921d010001510101000001e72d286979ee6cb1b7e65dfddfb2e384100b8d148e7758de42e4168b71792c600080b2bb119b1400ab1a5269fef5bf9fd7f89a0780d9b1e269de921d01000100", | |
"governingToken": "400000455b7b226c6 |