-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
1,314 additions
and
1,449 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import vue from 'rollup-plugin-vue' | ||
import babel from '@rollup/plugin-babel' | ||
import cjs from '@rollup/plugin-commonjs' | ||
import { terser } from 'rollup-plugin-terser' | ||
|
||
export default { | ||
input: 'src/entry.js', | ||
plugins: [ | ||
vue(), | ||
babel({ babelHelpers: 'bundled', exclude: 'node_modules/**', }), | ||
cjs(), | ||
terser() | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import base from './rollup.config.base' | ||
import resolve from '@rollup/plugin-node-resolve' | ||
|
||
const config = Object.assign({}, base, { | ||
output: { | ||
exports: 'named', | ||
name: 'VueSnap', | ||
file: 'dist/vue-snap.js', | ||
format: 'iife' | ||
}, | ||
external: [ 'vue' ] | ||
}) | ||
|
||
config.plugins.push(resolve()) | ||
|
||
export default config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import base from './rollup.config.base' | ||
|
||
const config = Object.assign({}, base, { | ||
output: { | ||
exports: 'named', | ||
name: 'VueSnap', | ||
file: 'dist/vue-snap.esm.js', | ||
format: 'esm', | ||
globals: { | ||
'seamless-scroll-polyfill/dist/esm/Element.scrollBy': 'Element_scrollBy' | ||
} | ||
}, | ||
external: [ | ||
'vue', | ||
'seamless-scroll-polyfill' | ||
] | ||
}) | ||
|
||
export default config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import base from './rollup.config.base' | ||
|
||
const config = Object.assign({}, base, { | ||
output: { | ||
exports: 'named', | ||
name: 'VueSnap', | ||
file: 'dist/vue-snap.umd.js', | ||
format: 'umd', | ||
globals: { | ||
'seamless-scroll-polyfill/dist/esm/Element.scrollBy': 'Element_scrollBy' | ||
} | ||
}, | ||
external: [ | ||
'vue', | ||
'seamless-scroll-polyfill' | ||
] | ||
}) | ||
|
||
export default config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
// Polyfill: Intersection observer (This is not a part of vue-snap) | ||
import 'intersection-observer' | ||
|
||
// Common | ||
import Vue from 'vue' | ||
import VueSnap from '../../dist/vue-snap.min' | ||
|
||
Vue.use(VueSnap) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
38842d1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to following URLs: