Skip to content

Commit f1d9f3b

Browse files
chore: update dependencies and add CDN/Build support
1 parent 345657f commit f1d9f3b

File tree

4 files changed

+27
-15
lines changed

4 files changed

+27
-15
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,17 @@ export default {
5555

5656
```
5757

58-
### :link::x: Using a CDN
58+
### :link: Using a CDN
59+
60+
[UNPKG](https://unpkg.com/vue-next-level-scroll/dist/) | [jsDelivr](https://cdn.jsdelivr.net/npm/vue-next-level-scroll/dist/) (available as window.ifBot)
61+
62+
```js
63+
Vue.component('scroll', window.nextLevelScroll)
64+
65+
// Continue as you wish. If you want to load a scroll behavior polyfill, do it **before** adding the CDN link.
66+
67+
```
5968

60-
Sorry! You can't use *VueNextLevelScroll* with a CDN by now.
6169

6270
## :hammer_and_wrench: Usage
6371

package.json

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,15 @@
1616
"dev": "nuxt test/fixture",
1717
"lint": "eslint lib test",
1818
"test": "npm run lint && jest",
19-
"release": "standard-version && git push --follow-tags && npm publish",
19+
"build": "bili --format cjs,es,umd,umd-min --moduleName nextLevelScroll --no-babel.babelrc",
20+
"release": "npm run build && standard-version && git push --follow-tags && npm publish",
2021
"commitlint": "commitlint -e $GIT_PARAMS",
2122
"coverage": "codecov"
2223
},
24+
"sideEffects": false,
2325
"files": [
24-
"lib"
26+
"src",
27+
"dist"
2528
],
2629
"keywords": [
2730
"vue",
@@ -57,35 +60,36 @@
5760
]
5861
},
5962
"devDependencies": {
60-
"@commitlint/cli": "^6.1.3",
61-
"@commitlint/config-conventional": "^6.1.3",
63+
"@commitlint/cli": "^7.0.0",
64+
"@commitlint/config-conventional": "^7.0.1",
6265
"@vue/server-test-utils": "^1.0.0-beta.15",
6366
"@vue/test-utils": "^1.0.0-beta.15",
6467
"babel-core": "^6.26.0",
65-
"babel-jest": "^22.4.3",
68+
"babel-jest": "^23.0.1",
6669
"babel-loader": "^7.1.2",
6770
"babel-preset-vue-app": "^2.0.0",
71+
"bili": "^3.1.2",
6872
"cheerio": "^1.0.0-rc.2",
6973
"codecov": "latest",
70-
"cross-env": "^5.1.5",
74+
"cross-env": "^5.1.6",
7175
"eslint": "^4.19.1",
7276
"eslint-config-standard": "^12.0.0-alpha.0",
73-
"eslint-plugin-import": "^2.11.0",
77+
"eslint-plugin-import": "^2.12.0",
7478
"eslint-plugin-jest": "latest",
7579
"eslint-plugin-node": "^6.0.1",
76-
"eslint-plugin-promise": "^3.7.0",
80+
"eslint-plugin-promise": "^3.8.0",
7781
"eslint-plugin-standard": "^3.1.0",
7882
"flush-promises": "^1.0.0",
7983
"husky": "^1.0.0-rc.2",
8084
"jest": "latest",
81-
"jest-serializer-vue": "^1.0.0",
85+
"jest-serializer-vue": "^2.0.0",
8286
"jsdom": "latest",
8387
"standard-version": "latest",
84-
"vue-jest": "^2.5.0",
85-
"vue-loader": "^15.0.10",
88+
"vue-jest": "^2.6.0",
89+
"vue-loader": "^15.2.4",
8690
"vue-server-renderer": "^2.5.17-beta.0",
8791
"vue-template-compiler": "^2.5.17-beta.0",
88-
"webpack": "^4.8.2",
92+
"webpack": "^4.10.2",
8993
"webpack-dev-server": "^3.1.4"
9094
},
9195
"dependencies": {
File renamed without changes.

test/ScrollNextLevel.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable no-console */
22
import { mount } from '@vue/test-utils'
3-
import ScrollNextLevel from '../lib'
3+
import ScrollNextLevel from '../src'
44
import Target from './fixtures/Target'
55
import { render } from '@vue/server-test-utils'
66
import flushPromises from 'flush-promises'

0 commit comments

Comments
 (0)