Skip to content

Commit

Permalink
chore!: Remove pre-built browser bundle & browser tests (#9)
Browse files Browse the repository at this point in the history
chore: Remove extra eslint configuration
chore: Cleanup package.json
chore: Update license years
chore: Replace chai to expect
  • Loading branch information
sttk committed Oct 2, 2022
1 parent e9800b5 commit 3f75efd
Show file tree
Hide file tree
Showing 15 changed files with 70 additions and 2,357 deletions.
4 changes: 0 additions & 4 deletions .eslintignore
@@ -1,6 +1,2 @@
# Coverage directory used by tools like istanbul
coverage

# Browerify output directories
web
test/web
5 changes: 1 addition & 4 deletions .eslintrc
@@ -1,6 +1,3 @@
{
"extends": "gulp",
"rules": {
"max-statements": 0
}
"extends": "gulp"
}
1 change: 0 additions & 1 deletion .prettierignore
@@ -1,4 +1,3 @@
coverage/
.nyc_output/
CHANGELOG.md
web/
2 changes: 1 addition & 1 deletion LICENSE
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2016-2021 Takayuki Sato <sttk.xslet@gmail.com>, Blaine Bublitz <blaine.bublitz@gmail.com>, and Eric Schoffstall <yo@contra.io>
Copyright (c) 2016-2022 Takayuki Sato <sttk.xslet@gmail.com>, Blaine Bublitz <blaine.bublitz@gmail.com>, and Eric Schoffstall <yo@contra.io>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
21 changes: 3 additions & 18 deletions README.md
Expand Up @@ -18,25 +18,13 @@ To install from npm:
$ npm i each-props --save
```

## Load this module

For Node.js:

```js
const eachProps = require('each-props');
```

For Web browser:

```html
<script src="each-props.min.js"></script>
```

## Usage

Apply a function to all (non plain object) properties.

```js
const eachProps = require('each-props');

var obj = { a: 1, b: { c: 'CCC', d: { e: 'EEE' } } };

eachProps(obj, function (value, keyChain, nodeInfo) {
Expand Down Expand Up @@ -114,10 +102,7 @@ Executes the _fn_ function for all properties.

## License

Copyright (C) 2016-2021 Gulp Team.

This program is free software under [MIT][mit-url] License.
See the file LICENSE in this distribution for more details.
MIT

<!-- prettier-ignore-start -->
[downloads-image]: https://img.shields.io/npm/dm/each-props.svg?style=flat-square
Expand Down
24 changes: 6 additions & 18 deletions package.json
Expand Up @@ -5,21 +5,15 @@
"author": "Gulp Team <team@gulpjs.com> (https://gulpjs.com/)",
"main": "index.js",
"files": [
"index.js"
"index.js",
"LICENSE"
],
"scripts": {
"lint": "eslint .",
"pretest": "npm run lint",
"test": "nyc mocha",
"web:build": "browserify index.js --standalone eachProps -o web/each-props.js && cd web && uglifyjs each-props.js --compress --mangle -o each-props.min.js --source-map url=each-props.min.js.map",
"chrome:install": "npm i --no-save mocha-chrome",
"chrome:test": "mocha-chrome test/web/browser-test.html",
"build": "npm run lint && npm run test && npm run web:build && node test/web/make.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/gulpjs/each-props.git"
"test": "nyc mocha --async-only"
},
"repository": "gulpjs/each-props",
"keywords": [
"deep",
"each",
Expand All @@ -32,10 +26,6 @@
"engines": {
"node": ">= 10.13.0"
},
"bugs": {
"url": "https://github.com/gulpjs/each-props/issues"
},
"homepage": "https://github.com/gulpjs/each-props#readme",
"nyc": {
"reporter": [
"lcov",
Expand All @@ -50,13 +40,11 @@
"object.defaults": "^1.1.0"
},
"devDependencies": {
"browserify": "^17.0.0",
"chai": "^4.3.4",
"eslint": "^7.32.0",
"eslint-config-gulp": "^5.0.1",
"eslint-plugin-node": "^11.1.0",
"expect": "^27.5.1",
"mocha": "^8.4.0",
"nyc": "^15.1.0",
"uglify-js": "^3.14.2"
"nyc": "^15.1.0"
}
}

0 comments on commit 3f75efd

Please sign in to comment.