Skip to content

Commit

Permalink
fix(deps): bump gd-scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
GabeDuarteM committed Feb 10, 2019
1 parent 4577816 commit 1f9d087
Show file tree
Hide file tree
Showing 10 changed files with 2,107 additions and 1,546 deletions.
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ typings/
# Serverless directories
.serverless

/build
/dist
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/build
/dist
/node_modules
/coverage
package.json
11 changes: 4 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "pipe-now",
"version": "0.0.0-development",
"description": "A pipe function that acts like the pipeline operator proposal.",
"main": "build/index.js",
"types": "build/index.d.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"author": "Gabriel Duarte <[email protected]> (https://www.gabrielduarte.tech/)",
"license": "MIT",
"homepage": "https://github.com/GabrielDuarteM/pipe-now",
Expand All @@ -20,7 +20,7 @@
"helpers"
],
"files": [
"build"
"dist"
],
"repository": {
"type": "git",
Expand All @@ -37,15 +37,12 @@
"ci": "gd-scripts ci",
"release": "semantic-release"
},
"resolutions": {
"babel-core": "^7.0.0-bridge.0"
},
"devDependencies": {
"@types/jest": "^23.3.1",
"@types/node": "^10.9.2",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-prettier": "^2.6.2",
"gd-scripts": "^1.3.0",
"gd-scripts": "^4.0.0",
"prettier": "^1.14.2",
"semantic-release": "^15.9.8"
}
Expand Down
2 changes: 1 addition & 1 deletion release.config.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require("gd-scripts/semver")
module.exports = require('gd-scripts/semver')
3 changes: 1 addition & 2 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"extends": ["config:base"],
"rangeStrategy": "bump"
"extends": ["config:base"]
}
18 changes: 9 additions & 9 deletions src/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/* tslint:disable no-magic-numbers */

import pipe from "."
import pipe from '.'

describe("pipe", () => {
it("should return 16 when the following parameters are passed: (256, Math.sqrt)", () => {
describe('pipe', () => {
it('should return 16 when the following parameters are passed: (256, Math.sqrt)', () => {
const initialValue = 256
const expected = 16
const actual = pipe(
Expand All @@ -14,7 +14,7 @@ describe("pipe", () => {
expect(actual).toBe(expected)
})

it("should return 4 when the following parameters are passed: (256, Math.sqrt, Math.sqrt)", () => {
it('should return 4 when the following parameters are passed: (256, Math.sqrt, Math.sqrt)', () => {
const initialValue = 256
const expected = 4
const actual = pipe(
Expand All @@ -26,7 +26,7 @@ describe("pipe", () => {
expect(actual).toBe(expected)
})

it("should return 10 when the following parameters are passed: (256, Math.sqrt, Math.sqrt, val => val + 6)", () => {
it('should return 10 when the following parameters are passed: (256, Math.sqrt, Math.sqrt, val => val + 6)', () => {
const initialValue = 256
const expected = 10
const valueToAdd = 6
Expand All @@ -41,11 +41,11 @@ describe("pipe", () => {
})

it('should return "GLORY 👌 TO 👌 THE 👌 PIPES" when the following parameters are passed: ("glory to the pipes", topifySpaces, uppercase) ', () => {
const initialValue = "glory to the pipes"
const expected = "GLORY 👌 TO 👌 THE 👌 PIPES"
const initialValue = 'glory to the pipes'
const expected = 'GLORY 👌 TO 👌 THE 👌 PIPES'

const uppercase = (val: string) => val.toUpperCase()
const topifySpaces = (val: string) => val.replace(/ /g, " 👌 ")
const uppercase = (val: string): string => val.toUpperCase()
const topifySpaces = (val: string): string => val.replace(/ /g, ' 👌 ')

const actual = pipe(
initialValue,
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const pipe = <T>(initialValue: T, ...args: any[]) => {
const pipe = <T>(initialValue: T, ...args: any[]): any => {
const finalValue = args.reduce((value, func) => {
const nextValue = func(value)

Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "./node_modules/gd-scripts/build/config/tsconfig.json"
"extends": "./node_modules/gd-scripts/typescript.json"
}
Loading

0 comments on commit 1f9d087

Please sign in to comment.