Skip to content

Commit

Permalink
Merge 5b6cb51 into d9bd6bc
Browse files Browse the repository at this point in the history
  • Loading branch information
wj42ftns committed Jan 21, 2019
2 parents d9bd6bc + 5b6cb51 commit 721d5e1
Show file tree
Hide file tree
Showing 7 changed files with 377 additions and 428 deletions.
12 changes: 11 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
language: node_js
os:
- linux
- osx
node_js:
- "11"
- "10"
- "9"
- "8"
- "7"
- "6"
script: "npm run eslint && npm run test && npm run coveralls"
- "6.0.0"
- "lts/*"
- "node"
install:
- yarn --ignore-engines
script: "npm run eslint && npm run coveralls"
deploy:
provider: npm
email: wj42ftns@gmail.com
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@
This project adheres to [Semantic Versioning](http://semver.org/).

## v1.1.2
* update dependencies.
## v1.1.3
* update dependencies.
## v1.1.4
* update dependencies.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const replaceInFiles = require('replace-in-files');
// ...

replaceInFiles(options)
.then((changedFiles, countOfMatchesByPaths) => {
.then(({ changedFiles, countOfMatchesByPaths }) => {
console.log('Modified files:', changedFiles);
console.log('Count of matches by paths:', countOfMatchesByPaths);
console.log('was called with:', replaceInFilesOptions);
Expand Down Expand Up @@ -137,9 +137,9 @@ main();

## Sequentially replacement

use .pipe - will be replaced only files found at first replacement
use .pipe - will be replaced with only files found at first replacement

.pipe supported only: { from, to } (other options will received from options on first replacement)
.pipe supported only: { from, to } (the other options will be received from options in the first replacement)

```js
const replaceInFiles = require('replace-in-files');
Expand Down
15 changes: 7 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "replace-in-files",
"version": "1.1.3",
"version": "1.1.4",
"engines": {
"node": ">=6.0.0"
},
Expand Down Expand Up @@ -35,10 +35,9 @@
"fs"
],
"scripts": {
"start": "node --inspect ./src/index.js",
"watch": "./node_modules/jest/bin/jest.js --watch --no-cache",
"test": "./node_modules/jest/bin/jest.js",
"test-debug": "node --debug-brk --inspect ./node_modules/jest/bin/jest -i --env jest-environment-node-debug",
"test-debug": "node --inspect-brk ./node_modules/jest/bin/jest -i --env jest-environment-node-debug",
"coveralls": "npm run test && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage",
"eslint": "rm -rf ./coverage && node ./node_modules/eslint/bin/eslint.js --quiet \"**/*.js\"",
"precommit": "npm run message && rm -rf ./coverage && npm run lint-staged && npm run test",
Expand All @@ -53,20 +52,20 @@
},
"devDependencies": {
"coveralls": "^3.0.2",
"eslint": "^5.8.0",
"eslint": "^5.12.1",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-plugin-import": "^2.14.0",
"fs-extra": "^7.0.0",
"husky": "^1.1.3",
"fs-extra": "^7.0.1",
"husky": "^1.3.1",
"jest": "^23.6.0",
"jest-environment-node-debug": "^2.0.0",
"lint-staged": "^8.0.4",
"lint-staged": "^8.1.0",
"mockdate": "^2.0.2"
},
"dependencies": {
"co": "^4.6.0",
"es6-promisify": "^6.0.1",
"globby": "^8.0.1",
"globby": "^9.0.0",
"lodash": "^4.17.11"
},
"jest": {
Expand Down
38 changes: 0 additions & 38 deletions src/index.js

This file was deleted.

10 changes: 0 additions & 10 deletions src/sandbox/index.js

This file was deleted.

0 comments on commit 721d5e1

Please sign in to comment.