Skip to content

Commit

Permalink
Merge pull request #3 from tusharmath/develop
Browse files Browse the repository at this point in the history
fix(core): curry copy() and when() functions
  • Loading branch information
tusharmath committed Aug 20, 2016
2 parents 2f07973 + 19b87f3 commit 2362f1d
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 46 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -4,7 +4,7 @@
[![Coverage Status](https://coveralls.io/repos/github/tusharmath/webpack-super/badge.svg)](https://coveralls.io/github/tusharmath/webpack-super)
[![Donate Bitcoin](https://img.shields.io/badge/donate-bitcoin-green.svg)](https://www.coinbase.com/tusharmath)

declarative approach to creating webpack config
a functional approach to writing webpack configs

## Installation

Expand Down Expand Up @@ -71,7 +71,7 @@ Creates a new object with the `value` set at the `path` provided and copy the re

**Kind**: global function
**Implements:** <code>Transformer</code>
**Returns**: <code>object</code> - - the new object with the `value`
**Returns**: <code>object</code> - the new object with the `value`

| Param | Type | Description |
| --- | --- | --- |
Expand Down
2 changes: 1 addition & 1 deletion README.template.md
Expand Up @@ -4,7 +4,7 @@
[![Coverage Status](https://coveralls.io/repos/github/tusharmath/webpack-super/badge.svg)](https://coveralls.io/github/tusharmath/webpack-super)
[![Donate Bitcoin](https://img.shields.io/badge/donate-bitcoin-green.svg)](https://www.coinbase.com/tusharmath)

declarative approach to creating webpack config
a functional approach to writing webpack configs

## Installation

Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "webpack-super",
"description": "declarative approach to creating webpack config",
"description": "a functional approach to writing webpack configs",
"author": {
"name": "Tushar Mathur &lt;tusharmath@gmail.com&gt;",
"url": "http://tusharm.com"
Expand Down
23 changes: 0 additions & 23 deletions src/copy.js

This file was deleted.

3 changes: 1 addition & 2 deletions src/index.js
Expand Up @@ -5,11 +5,10 @@
'use strict'
import {setAt} from './set-at'
import {appendAt} from './append-at'
import {copy} from './copy'
import {when} from './when'
import {compose} from './compose'

export default {setAt, appendAt, copy, when, compose}
export default {setAt, appendAt, when, compose}
/**
* @private
* @interface
Expand Down
2 changes: 1 addition & 1 deletion src/set-at.js
Expand Up @@ -13,7 +13,7 @@ import R from 'ramda'
* @param {string} path - path string where the value needs to be set
* @param {any} value - the value that needs to be set
* @param {object} obj - the object that needs to be transformed
* @returns {object} - the new object with the `value`
* @returns {object} the new object with the `value`
* @example
* setAt('entry', './src/main.js', {}) // outputs: {entry: './src/main.js'}
* setAt('output.filename', '[hash].bundle.js', {}) // outputs: {output: {filename: '[hash].bundle.js'}}
Expand Down
15 changes: 0 additions & 15 deletions test/test.copy.js

This file was deleted.

2 changes: 1 addition & 1 deletion test/test.index.js
Expand Up @@ -8,6 +8,6 @@ import C from '../src/index'
import test from 'ava'

test('keys', t => {
const expected = ['setAt', 'appendAt', 'compose', 'copy', 'when']
const expected = ['setAt', 'appendAt', 'compose', 'when']
t.deepEqual(Object.keys(C).sort(), expected.sort())
})

0 comments on commit 2362f1d

Please sign in to comment.