Skip to content

Commit

Permalink
build: add several bundles and cdn
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAlexLichter committed May 22, 2018
1 parent 8facc0f commit 2c486c8
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 6 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,16 @@ export default {

```

### :link::x: Using a CDN
### :link: Using a CDN

Sorry! No CDN available for VueIfBot right now.
[UNPKG](https://unpkg.com/vue-if-bot/dist/) | [jsDelivr](https://cdn.jsdelivr.net/npm/vue-if-bot/dist/) (available as window.ifBot)

```js
Vue.component('if-bot', window.ifBot)

// Continue as you wish

```

## :hammer_and_wrench: Usage

Expand Down
14 changes: 11 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,30 @@
"description": "Hide stuff from bots (especially cookie consents)",
"author": "Alexander Lichter <[email protected]>",
"license": "MIT",
"main": "lib/index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/Developmint/vue-if-bot"
},
"bugs": {
"url": "https://github.com/Developmint/vue-if-bot/issues"
},
"main": "dist/vue-if-bot.cjs.js",
"module": "dist/vue-if-bot.es.js",
"cdn": "dist/vue-if-bot.min.js",
"unpkg": "dist/vue-if-bot.min.js",
"jsdelivr": "dist/vue-if-bot.min.js",
"scripts": {
"lint": "eslint lib test",
"test": "npm run lint && jest",
"build": "bili --format cjs,es,umd,umd-min --moduleName ifBot --no-babel.babelrc",
"release": "standard-version && git push --follow-tags && npm publish",
"commitlint": "commitlint -e $GIT_PARAMS",
"coverage": "codecov"
},
"sideEffects": false,
"files": [
"lib"
"src",
"dist"
],
"keywords": [
"vue",
Expand Down Expand Up @@ -68,6 +75,7 @@
"babel-jest": "^22.4.4",
"babel-loader": "^7.1.2",
"babel-preset-vue-app": "^2.0.0",
"bili": "^3.1.2",
"cheerio": "^1.0.0-rc.2",
"codecov": "latest",
"cross-env": "^5.1.5",
Expand All @@ -84,7 +92,7 @@
"jsdom": "latest",
"standard-version": "latest",
"vue-jest": "^2.6.0",
"vue-loader": "^15.1.0",
"vue-loader": "^15.2.0",
"vue-router": "^3.0.1",
"vue-server-renderer": "^2.5.16",
"vue-template-compiler": "^2.5.16",
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion test/VueIsBot.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { mount } from '@vue/test-utils'
import { renderToString } from '@vue/server-test-utils'
import VueIfBot from '../lib'
import VueIfBot from '../src'

const slotContent = '<div>I am the content</div>'

Expand Down

0 comments on commit 2c486c8

Please sign in to comment.