-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from GerkinDev/feature/rollup
Use rollup for builds
- Loading branch information
Showing
22 changed files
with
1,968 additions
and
8,239 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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,51 @@ | ||
import resolve from 'rollup-plugin-node-resolve'; | ||
import globals from 'rollup-plugin-node-globals'; | ||
import commonjs from 'rollup-plugin-commonjs'; | ||
import json from 'rollup-plugin-json'; | ||
import { terser } from 'rollup-plugin-terser'; | ||
|
||
// The module name | ||
const name = 'vuejs-datatable'; | ||
|
||
// Plugins used for build | ||
const plugins = [ | ||
resolve({ browser: true }), | ||
commonjs({ | ||
namedExports: { | ||
// left-hand side can be an absolute path, a path | ||
// relative to the current directory, or the name | ||
// of a module in node_modules | ||
'object-path': [ 'get', 'set' ], | ||
'axios': [ 'get' ], | ||
} | ||
}), | ||
globals(), | ||
json(), | ||
terser(), | ||
]; | ||
|
||
// Destination dir | ||
const outDir = 'build'; | ||
|
||
// Should we generate source maps? | ||
const sourcemap = true; | ||
|
||
const generateDemoConfig = dir => ({ | ||
input: `${__dirname}/${dir}/app.js`, | ||
output: { | ||
preferBuiltins: false, | ||
file: `${__dirname}/${dir}/${outDir}/app.js`, | ||
format: 'iife', | ||
// Use `name` as window to hack a bit & avoid exports. | ||
name: 'window', | ||
sourcemap, | ||
globals: { vue: 'Vue' }, | ||
}, | ||
plugins, | ||
external: ['vue'], | ||
}) | ||
|
||
export default [ | ||
generateDemoConfig('ajax'), | ||
generateDemoConfig('custom-theme'), | ||
] |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.