Skip to content

Commit

Permalink
Improving packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
tnicola committed Nov 1, 2018
1 parent f7489f9 commit f62a1d2
Show file tree
Hide file tree
Showing 11 changed files with 387 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
/*module.exports = {
root: true,
env: {
node: true,
Expand All @@ -14,4 +14,4 @@ module.exports = {
parserOptions: {
parser: 'babel-eslint',
},
};
};*/
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ yarn-error.log*
*.njsproj
*.sln
*.sw*
*.tgz
20 changes: 20 additions & 0 deletions config/rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/* eslint-disable */
import vue from 'rollup-plugin-vue'; // Handle .vue SFC files
import buble from 'rollup-plugin-buble'; // Transpile/polyfill with reasonable browser support
import uglify from 'rollup-plugin-uglify';

export default {
input: 'src/components/index.js', // Path relative to package.json
output: {
name: 'VueVoice',
exports: 'named',
},
plugins: [
vue({
css: true, // Dynamically inject css as a <style> tag
compileTemplate: true, // Explicitly convert template to render function
}),
buble(), // Transpile to ES5
// uglify()
],
};
Loading

0 comments on commit f62a1d2

Please sign in to comment.