Skip to content

Commit

Permalink
infra to transpile for npm
Browse files Browse the repository at this point in the history
  • Loading branch information
loucadufault committed Dec 13, 2021
1 parent 9102c1a commit 523031c
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"presets": [ "@babel/preset-env", "@babel/preset-react"],
"plugins": [
"@babel/plugin-transform-runtime"
]
}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/lib/
/node_modules/
package-lock.json
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/src/
/test/
/.github/
11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "magnetic-slider",
"version": "1.0.0",
"version": "1.0.1",
"description": "A lightweight extension of @material-ui's Slider component complying to a super-set of its API spec, that enables the thumb to snap to nearby marks on the slider with configurable behaviour.",
"main": "MagneticSlider.js",
"main": "lib/MagneticSlider.js",
"scripts": {
"prepublish": "rm -rf lib && NODE_ENV=production babel src --out-dir lib",
"test": "npm run test"
},
"repository": {
Expand All @@ -27,5 +28,11 @@
"peerDependencies": {
"react": "^17.0.2",
"@material-ui/core": "^4.12.3"
},
"devDependencies": {
"@babel/cli": "^7.16.0",
"@babel/core": "^7.16.0",
"@babel/preset-env": "^7.16.4",
"@babel/preset-react": "^7.16.0"
}
}
File renamed without changes.

0 comments on commit 523031c

Please sign in to comment.