@yoursurprise/slider 0.0.12 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +4 -4
  2. package/package.json +22 -12
package/README.md CHANGED
@@ -16,18 +16,18 @@ Before using this slider, please consider the following:
16
16
  - There is no configuration of aforementioned features (yet)
17
17
 
18
18
  Todos:
19
- - Add a demo page
19
+ - ~~Add a demo page~~
20
20
  - Add more configuration
21
21
  - Add end-to-end tests
22
- - Set up proper workflows in GitHub
23
- - Set the GitHub repository to public
22
+ - ~~Set up proper workflows in GitHub~~
23
+ - ~~Set the GitHub repository to public~~
24
24
  - Support more browsers
25
25
 
26
26
  All browsers with [IntersectionObserver](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API) will be supported, as of right now, only the latest versions of browsers are supported.
27
27
 
28
28
  ## Installation
29
29
 
30
- ### npm
30
+ ### npm
31
31
 
32
32
  `npm install @yoursurprise/slider --save`
33
33
 
package/package.json CHANGED
@@ -1,21 +1,36 @@
1
1
  {
2
2
  "name": "@yoursurprise/slider",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "Basic React slider using modern Javascript and CSS",
5
- "main": "dist/index.js",
6
5
  "module": "dist/index.js",
6
+ "main": "dist/index.js",
7
+ "targets": {
8
+ "main": false,
9
+ "module": false
10
+ },
7
11
  "type": "module",
8
12
  "files": [
9
13
  "src/*",
10
14
  "dist/*"
11
15
  ],
16
+ "scripts": {
17
+ "test": "jest",
18
+ "lint": "eslint src/",
19
+ "build": "rm -rf ./dist && rollup -c --bundleConfigAsCjs",
20
+ "build-pages": "rm -rf ./dist && parcel build index.html --public-url ./",
21
+ "watch": "rollup -c -w --bundleConfigAsCjs",
22
+ "serve": "parcel index.html",
23
+ "deploy-pages": "gh-pages -d dist"
24
+ },
12
25
  "peerDependencies": {
13
- "react": "^18.2.0"
26
+ "react": "^18.2.0",
27
+ "react-dom": "^18.2.0"
14
28
  },
15
29
  "devDependencies": {
16
30
  "@babel/preset-env": "^7.19.4",
17
31
  "@babel/preset-react": "^7.18.6",
18
32
  "@babel/preset-typescript": "^7.18.6",
33
+ "@parcel/transformer-sass": "^2.8.3",
19
34
  "@rollup/plugin-commonjs": "^23.0.2",
20
35
  "@rollup/plugin-node-resolve": "^15.0.1",
21
36
  "@rollup/plugin-typescript": "^9.0.2",
@@ -35,12 +50,14 @@
35
50
  "eslint-plugin-react": "^7.31.10",
36
51
  "eslint-plugin-react-hooks": "^4.6.0",
37
52
  "eslint-plugin-testing-library": "^5.9.1",
53
+ "gh-pages": "^5.0.0",
38
54
  "jest": "^29.2.2",
39
55
  "jest-environment-jsdom": "^29.2.2",
40
56
  "npm": "^8.19.3",
57
+ "parcel": "^2.8.3",
41
58
  "postcss": "^8.4.18",
42
59
  "react": "^18.2.0",
43
- "react-dom": "*",
60
+ "react-dom": "^18.2.0",
44
61
  "react-test-renderer": "^18.2.0",
45
62
  "rollup": "^3.2.5",
46
63
  "rollup-plugin-peer-deps-external": "^2.2.4",
@@ -49,12 +66,6 @@
49
66
  "ts-node": "^10.9.1",
50
67
  "typescript": "^4.8.4"
51
68
  },
52
- "scripts": {
53
- "test": "jest",
54
- "lint": "eslint src/",
55
- "build": "rm -rf ./dist && rollup -c --bundleConfigAsCjs",
56
- "watch": "rollup -c -w --bundleConfigAsCjs"
57
- },
58
69
  "repository": {
59
70
  "type": "git",
60
71
  "url": "git+ssh://git@github.com/YourSurpriseCom/slider.git"
@@ -71,6 +82,5 @@
71
82
  "bugs": {
72
83
  "url": "https://github.com/YourSurpriseCom/slider/issues"
73
84
  },
74
- "homepage": "https://github.com/YourSurpriseCom/slider#readme",
75
- "dependencies": {}
85
+ "homepage": "https://github.com/YourSurpriseCom/slider#readme"
76
86
  }