Skip to content

Commit 85b1165

Browse files
authored
chore!: Normalize repository, dropping node <10.13 support (#8)
1 parent 40b7974 commit 85b1165

12 files changed

+209
-93
lines changed

.editorconfig

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
end_of_line = lf
11+
12+
[*.md]
13+
trim_trailing_whitespace = false

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text eol=lf

.github/workflows/dev.yml

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: dev
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- master
7+
- main
8+
env:
9+
CI: true
10+
11+
jobs:
12+
prettier:
13+
name: Format code
14+
runs-on: ubuntu-latest
15+
if: ${{ github.event_name == 'push' }}
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
21+
- name: Prettier
22+
uses: gulpjs/[email protected]
23+
with:
24+
commit_message: 'chore: Run prettier'
25+
prettier_options: '--write .'
26+
27+
test:
28+
name: Tests for Node ${{ matrix.node }} on ${{ matrix.os }}
29+
runs-on: ${{ matrix.os }}
30+
31+
strategy:
32+
fail-fast: false
33+
matrix:
34+
node: [10, 12, 14, 16]
35+
os: [ubuntu-latest, windows-latest, macos-latest]
36+
37+
steps:
38+
- name: Clone repository
39+
uses: actions/checkout@v2
40+
41+
- name: Set Node.js version
42+
uses: actions/setup-node@v2
43+
with:
44+
node-version: ${{ matrix.node }}
45+
46+
- run: node --version
47+
- run: npm --version
48+
49+
- name: Install npm dependencies
50+
run: npm install
51+
52+
- name: Run lint
53+
run: npm run lint
54+
55+
- name: Run tests
56+
run: npm test
57+
58+
- name: Coveralls
59+
uses: coverallsapp/[email protected]
60+
with:
61+
github-token: ${{ secrets.GITHUB_TOKEN }}
62+
flag-name: ${{ matrix.os }}-node-${{ matrix.node }}
63+
parallel: true
64+
65+
coveralls:
66+
needs: test
67+
name: Finish up
68+
69+
runs-on: ubuntu-latest
70+
steps:
71+
- name: Coveralls Finished
72+
uses: coverallsapp/[email protected]
73+
with:
74+
github-token: ${{ secrets.GITHUB_TOKEN }}
75+
parallel-finished: true

.github/workflows/release.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: release
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- main
7+
8+
jobs:
9+
release-please:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: GoogleCloudPlatform/release-please-action@v2
13+
with:
14+
token: ${{ secrets.GITHUB_TOKEN }}
15+
release-type: node
16+
package-name: release-please-action
17+
bump-minor-pre-major: true

.gitignore

+52-3
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,66 @@
22
logs
33
*.log
44
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
8+
# Runtime data
9+
pids
10+
*.pid
11+
*.seed
12+
*.pid.lock
13+
14+
# Directory for instrumented libs generated by jscoverage/JSCover
15+
lib-cov
516

617
# Coverage directory used by tools like istanbul
718
coverage
19+
20+
# nyc test coverage
821
.nyc_output
9-
.coveralls.yml
22+
23+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24+
.grunt
25+
26+
# Bower dependency directory (https://bower.io/)
27+
bower_components
28+
29+
# node-waf configuration
30+
.lock-wscript
31+
32+
# Compiled binary addons (https://nodejs.org/api/addons.html)
33+
build/Release
1034

1135
# Dependency directories
12-
node_modules
36+
node_modules/
37+
jspm_packages/
38+
39+
# TypeScript v1 declaration files
40+
typings/
1341

1442
# Optional npm cache directory
1543
.npm
1644

17-
# Files generated by platform.
45+
# Optional eslint cache
46+
.eslintcache
47+
48+
# Optional REPL history
49+
.node_repl_history
50+
51+
# Output of 'npm pack'
52+
*.tgz
53+
54+
# Yarn Integrity file
55+
.yarn-integrity
56+
57+
# dotenv environment variables file
58+
.env
59+
60+
# next.js build output
61+
.next
62+
63+
# Garbage files
1864
.DS_Store
65+
66+
# Test results
67+
test.xunit

.pretterignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
coverage/
2+
.nyc_output/
3+
CHANGELOG.md

.travis.yml

-32
This file was deleted.

README.md

+25-12
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
# [copy-props][repo-url] [![NPM][npm-img]][npm-url] [![MIT License][mit-img]][mit-url] [![Build Status][travis-img]][travis-url] [![Build Status][appveyor-img]][appveyor-url] [![Coverage Status][coverage-img]][coverage-url]
1+
<p align="center">
2+
<a href="http://gulpjs.com">
3+
<img height="257" width="114" src="https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png">
4+
</a>
5+
</p>
6+
7+
# copy-props
8+
9+
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coveralls Status][coveralls-image]][coveralls-url]
210

311
Copy properties between two objects deeply.
412

@@ -214,14 +222,19 @@ Copyright (C) 2016-2021 Gulp Team.
214222
This program is free software under [MIT][mit-url] License.
215223
See the file LICENSE in this distribution for more details.
216224

217-
[repo-url]: https://github.com/gulpjs/copy-props/
218-
[npm-img]: https://img.shields.io/badge/npm-v2.0.5-blue.svg
219-
[npm-url]: https://www.npmjs.org/package/copy-props/
220-
[mit-img]: https://img.shields.io/badge/license-MIT-green.svg
221-
[mit-url]: https://opensource.org/licenses.MIT
222-
[travis-img]: https://travis-ci.org/gulpjs/copy-props.svg?branch=master
223-
[travis-url]: https://travis-ci.org/gulpjs/copy-props
224-
[appveyor-img]: https://ci.appveyor.com/api/projects/status/github/gulpjs/copy-props?branch=master&svg=true
225-
[appveyor-url]: https://ci.appveyor.com/project/gulpjs/copy-props
226-
[coverage-img]: https://coveralls.io/repos/github/gulpjs/copy-props/badge.svg?branch=master
227-
[coverage-url]: https://coveralls.io/github/gulpjs/copy-props?branch=master
225+
226+
<!-- prettier-ignore-start -->
227+
[downloads-image]: https://img.shields.io/npm/dm/copy-props.svg?style=flat-square
228+
[npm-url]: https://www.npmjs.org/package/copy-props
229+
[npm-image]: https://img.shields.io/npm/v/copy-props.svg?style=flat-square
230+
231+
[ci-url]: https://github.com/gulpjs/copy-props/actions?query=workflow:dev
232+
[ci-image]: https://img.shields.io/github/workflow/status/gulpjs/copy-props/dev?style=flat-square
233+
234+
[coveralls-url]: https://coveralls.io/r/gulpjs/copy-props
235+
[coveralls-image]: https://img.shields.io/coveralls/gulpjs/copy-props/master.svg
236+
<!-- prettier-ignore-end -->
237+
238+
<!-- prettier-ignore-start -->
239+
[mit-url]: https://opensource.org/licenses/MIT
240+
<!-- prettier-ignore-end -->

appveyor.yml

-33
This file was deleted.

package.json

+21-11
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22
"name": "copy-props",
33
"version": "2.0.5",
44
"description": "Copy properties deeply between two objects.",
5+
"author": "Gulp Team <[email protected]> (https://gulpjs.com/)",
56
"main": "index.js",
67
"files": [
78
"index.js"
89
],
910
"scripts": {
1011
"lint": "eslint .",
11-
"test": "mocha",
12-
"coverage": "nyc --reporter=lcov --reporter=text-summary npm test",
13-
"coveralls": "nyc --reporter=text-lcov npm test | coveralls",
12+
"pretest": "npm run lint",
13+
"test": "nyc mocha",
1414
"web:build": "browserify index.js --standalone copyProps -o web/copy-props.js && cd web && uglifyjs copy-props.js --compress --mangle -o copy-props.min.js --source-map url=copy-props.min.js.map",
1515
"chrome:install": "npm i --no-save mocha-chrome",
1616
"chrome:test": "mocha-chrome test/web/browser-test.html",
17-
"build": "npm run lint && npm run coverage && npm run web:build && node test/web/make.js"
17+
"build": "npm run lint && npm run test && npm run web:build && node test/web/make.js"
1818
},
1919
"repository": {
2020
"type": "git",
@@ -28,24 +28,34 @@
2828
"map",
2929
"convert"
3030
],
31-
"author": "Gulp Team <[email protected]> (https://gulpjs.com/)",
3231
"license": "MIT",
32+
"engines": {
33+
"node": ">= 10.13.0"
34+
},
3335
"bugs": {
3436
"url": "https://github.com/gulpjs/copy-props/issues"
3537
},
3638
"homepage": "https://github.com/gulpjs/copy-props#readme",
39+
"nyc": {
40+
"reporter": [
41+
"lcov",
42+
"text-summary"
43+
]
44+
},
45+
"prettier": {
46+
"singleQuote": true
47+
},
3748
"dependencies": {
3849
"each-props": "^1.3.2",
3950
"is-plain-object": "^5.0.0"
4051
},
4152
"devDependencies": {
42-
"browserify": "^16.5.2",
43-
"chai": "^3.5.0",
44-
"coveralls": "^3.1.0",
45-
"eslint": "^7.9.0",
53+
"browserify": "^17.0.0",
54+
"chai": "^4.3.4",
55+
"eslint": "^7.32.0",
4656
"eslint-config-gulp": "^5.0.1",
47-
"mocha": "^3.5.3",
57+
"mocha": "^8.4.0",
4858
"nyc": "^15.1.0",
49-
"uglify-js": "^3.10.4"
59+
"uglify-js": "^3.14.2"
5060
}
5161
}

web/copy-props.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)