Skip to content

Commit

Permalink
clean up some deps, bundle with microbundle (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
hartzis committed Jul 3, 2020
1 parent 73091c6 commit fcbfefe
Show file tree
Hide file tree
Showing 9 changed files with 11,372 additions and 1,353 deletions.
17 changes: 0 additions & 17 deletions .babelrc

This file was deleted.

5 changes: 2 additions & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
node_modules
lib
es
examples
dist
examples
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ node_modules
TODO
npm-debug.log
.DS_Store
lib
es
dist
examples/static
coverage
coverage
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

**Infrastructure:**
- Converted tests to `@testing-library/react`, [react testing library](https://github.com/testing-library/react-testing-library)
- Bundle with `microbundle`. [microbundle](https://github.com/developit/microbundle)

# 5.5.0
* Add `first` property to `eventData` that is `true` for first swipe event [issue #160](https://github.com/formidablelabs/react-swipeable/issues/160) and [PR #162](https://github.com/formidablelabs/react-swipeable/pull/162)
Expand Down
3 changes: 3 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
presets: ['@babel/preset-env', '@babel/preset-react']
}
35 changes: 15 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,33 @@
"name": "react-swipeable",
"version": "5.5.1",
"description": "React Swipe event handler component & hook",
"main": "./lib/index.js",
"module": "es/index.js",
"main": "./dist/react-swipeable.js",
"browser": "./dist/react-swipeable.umd.js",
"umd:main": "./dist/react-swipeable.umd.js",
"jsnext:main": "./dist/react-swipeable.modern.js",
"module": "./dist/react-swipeable.module.js",
"source": "./src/index.js",
"scripts": {
"build": "rollup -c",
"build": "microbundle --no-compress --name swipeable --output dist",
"build:examples": "webpack -p --config ./examples/webpack.config.min.js",
"build:examples:old": "cd ./examples && npm install && npm run build",
"build:publish:examples": "npm run build:examples && rimraf examples/node_modules && gh-pages -d examples",
"clean": "rimraf lib es",
"clean": "rimraf dist",
"format": "prettier --write '{src,__{tests,mocks}__}/**/*.js'",
"lint": "eslint .",
"prebuild": "npm run clean",
"prepare": "npm run build",
"pretest": "npm run lint",
"size": "size-limit",
"start:examples": "cd ./examples && webpack-dev-server",
"start:examples:old": "cd ./examples && npm install && npm run start:dev",
"test": "npm run test:unit && npm run dtslint && npm run build && npm run size",
"test": "yarn run test:unit && npm run build && npm run size",
"test:unit": "jest",
"test:unit:watch": "jest --watch",
"test:cover": "jest --coverage",
"dtslint": "dtslint types"
"test:cover": "jest --coverage"
},
"size-limit": [
{
"limit": "1.875 KB",
"path": "es/index.js"
"limit": "1.15 KB",
"path": "dist/react-swipeable.js"
}
],
"jest": {
Expand Down Expand Up @@ -69,23 +70,16 @@
"license": "MIT",
"types": "types",
"devDependencies": {
"@babel/cli": "^7.2.0",
"@babel/core": "^7.2.0",
"@babel/plugin-proposal-class-properties": "^7.2.0",
"@babel/plugin-proposal-object-rest-spread": "^7.2.0",
"@babel/plugin-transform-runtime": "^7.2.0",
"@babel/preset-env": "^7.2.0",
"@babel/preset-react": "^7.0.0",
"@babel/runtime": "^7.1.2",
"@babel/preset-react": "^7.10.4",
"@testing-library/react": "^10.4.3",
"@types/react": "^16.8.12",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "^10.0.1",
"babel-jest": "^24.8.0",
"babel-jest": "^26.1.0",
"babel-loader": "^8.0.5",
"babel-plugin-transform-react-remove-prop-types": "^0.4.19",
"coveralls": "^3.0.3",
"dtslint": "^2.0.2",
"eslint": "^5.9.0",
"eslint-config-prettier": "^3.3.0",
"eslint-plugin-import": "^2.14.0",
Expand All @@ -94,6 +88,7 @@
"eslint-plugin-react-hooks": "^1.6.0",
"gh-pages": "^1.0.0",
"jest": "^26.1.0",
"microbundle": "^0.12.2",
"prettier": "1.15.3",
"react": "^16.13.0",
"react-dom": "^16.13.0",
Expand Down
9 changes: 0 additions & 9 deletions rollup.config.js

This file was deleted.

Loading

0 comments on commit fcbfefe

Please sign in to comment.