Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file removed .npmrc
Empty file.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
cache: yarn
language: node_js
node_js:
- 'node'
- '8'
os: linux
stages:
Expand All @@ -21,5 +22,5 @@ after_failure:
after_success:
- yarn run travis-coveralls
before_install:
- 'curl -o- -L https://yarnpkg.com/install.sh | bash -s'
- 'export PATH="$HOME/.yarn/bin:$PATH"'
- curl -o- -L https://yarnpkg.com/install.sh | bash -s
- export PATH="$HOME/.yarn/bin:$PATH"
2 changes: 0 additions & 2 deletions .yarnrc

This file was deleted.

18 changes: 14 additions & 4 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,31 @@
{
"command": {
"exec": {
"bail": true
},
"publish": {
"allowBranch": "master",
"ignore": [
"*.md",
"LICENSE"
],
"skipGit": false,
"yes": true
},
"run": {
"stream": true
}
},
"lerna": "2.5.1",
"loglevel": "silent",
"lerna": "2.11.0",
"loglevel": "error",
"npmClient": "yarn",
"npmClientArgs": [
"--silent"
"--quiet"
],
"packages": [
"packages/*"
],
"stream": true,
"sort": true,
"useWorkspaces": true,
"version": "2.2.1"
}
2 changes: 1 addition & 1 deletion mocha.opts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
--full-trace
--recursive
--bail
packages/*/src/**/*.spec.ts
packages/*/specs/**/*.spec.ts
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"@alrra/travis-scripts": "^3.0.1",
"coveralls": "^3.0.0",
"cross-env": "^5.1.1",
"lerna": "^2.5.1",
"lerna": "^2.11.0",
"mocha": "^4.0.1",
"nyc": "^11.3.0",
"rimraf": "^2.6.2",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'mocha'

import { expect } from 'chai'
import { Registry } from './index'
import { Registry } from '../src/index'

describe('when using Registry', () => {
const KEY = 'key'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'mocha'

import { expect } from 'chai'
import { RegistryMap } from './index'
import { RegistryMap } from '../src/index'

describe('when using RegistryMap', () => {
const KEY1 = 'key-1'
Expand Down
6 changes: 2 additions & 4 deletions packages/collections/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@
"target": "es2015"
},
"exclude": [
"node_modules/**/*",
"src/**/*.spec.ts"
"node_modules/**/*"
],
"include": [
"src/**/*.ts",
"src/**/*.tsx"
"src/**/*.ts"
]
}
3 changes: 1 addition & 2 deletions packages/http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
"url": "https://github.com/nativecode-dev/nofrills/issues"
},
"dependencies": {
"@nofrills/lincoln": "^2.2.1",
"@nofrills/lincoln-debug": "^2.2.1",
"@nofrills/lincoln-debug": "^2.0.0",
"node-fetch": "^1.7.3"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/http/src/Http.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import 'reflect-metadata'

import fetch, { Request, RequestInit } from 'node-fetch'
import { Logger } from './Logger'
import { Lincoln, Logger } from './Logger'

export abstract class HTTP {
protected readonly log = Logger.extend(this.name)
protected readonly log: Lincoln = Logger.extend(this.name)

public async delete<TResponse>(url: string): Promise<TResponse> {
return this.send<TResponse>(url, await this.request<void>(), 'DELETE')
Expand Down
2 changes: 2 additions & 0 deletions packages/http/src/Logger.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export { Lincoln } from '@nofrills/lincoln-debug'

import { CreateLogger, Lincoln } from '@nofrills/lincoln-debug'

export const Logger: Lincoln = CreateLogger('http')
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'mocha'

import { expect } from 'chai'
import { Lincoln, Log, Options } from './index'
import { Lincoln, Log, Options } from '../src/index'

describe('when using Lincoln', () => {
const context = require('../artifacts/context')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'mocha'

import { expect } from 'chai'

import { LincolnLog, LincolnLogs } from './index'
import { LincolnLog, LincolnLogs } from '../src/index'

describe('when working with multiple log writers', () => {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Log } from '@nofrills/lincoln-debug'
import { expect } from 'chai'
import { data } from '../artifacts/data'

import { ScrubsInterceptor } from './index'
import { ScrubsInterceptor } from '../src/index'

describe('when using lincoln interceptor', () => {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'mocha'

import { expect } from 'chai'
import { Scrubber, Scrubbers, Scrubs } from './index'
import { Scrubber, Scrubbers, Scrubs } from '../src/index'

import { data } from '../artifacts/data'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'mocha'

import { expect } from 'chai'
import { scrub, Scrubs } from './index'
import { scrub, Scrubs } from '../src/index'
import { data } from '../artifacts/data'

describe('when using scrubs', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'mocha'

import { expect } from 'chai'
import { Chain, ChainHandler, ChainHandlerLink } from './Chain'
import { Chain, ChainHandler, ChainHandlerLink } from '../src/Chain'

// tslint:disable:no-unused-expression

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'mocha'

import { expect } from 'chai'
import { ChainAsync, ChainAsyncHandler, ChainAsyncHandlerLink } from './ChainAsync'
import { ChainAsync, ChainAsyncHandler, ChainAsyncHandlerLink } from '../src/ChainAsync'

// tslint:disable:no-unused-expression

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'mocha'

import { expect } from 'chai'
import { Dates } from './index'
import { Dates } from '../src/index'

describe('when using Dates helping', () => {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'mocha'

import { expect } from 'chai'
import { Pipeline, PipelineHandler } from './Pipeline'
import { Pipeline, PipelineHandler } from '../src/Pipeline'

describe('when using pipeline handlers', () => {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'mocha'

import { expect } from 'chai'
import { PipelineAsync, PipelineAsyncHandler } from './PipelineAsync'
import { PipelineAsync, PipelineAsyncHandler } from '../src/PipelineAsync'

describe('when using pipeline handlers', () => {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'mocha'

import { expect } from 'chai'
import { Strings } from './Strings'
import { Strings } from '../src/Strings'

describe('when using string extensions', () => {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'mocha'

import { expect } from 'chai'
import { Dates, Walk, WalkType } from './index'
import { Dates, Walk, WalkType } from '../src/index'

import { Is } from '@nofrills/types'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as fs from 'fs'
import * as path from 'path'

import { expect } from 'chai'
import { Smush, SmushError } from './index'
import { Smush, SmushError } from '../src/index'

describe('smush', () => {
let $S: Smush
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'mocha'

import { expect } from 'chai'

import { Is } from './index'
import { Is } from '../src/index'

describe('when using type library', () => {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'mocha'

import { expect } from 'chai'

import { Type, Types, TypeParser } from './index'
import { Type, Types, TypeParser } from '../src/index'

describe('when using type parser', () => {
it('should throw error when deserializing unsupported types', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'mocha'

import { expect } from 'chai'

import { Type, Types } from './index'
import { Type, Types } from '../src/index'

describe('when using types library for validation', () => {
const testtype: Partial<Type> = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'mocha'

import { expect } from 'chai'

import { Type, Types } from './index'
import { Type, Types } from '../src/index'

describe('when using global TypeRegistry', () => {

Expand Down
5 changes: 2 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@
},
"exclude": [
"node_modules",
"packages/*/tests/**/*.ts"
"packages/*/specs/**/*.ts"
],
"include": [
"packages/*/src/**/*.ts",
"packages/*/src/**/*.tsx"
"packages/*/src/**/*.ts"
]
}
Loading