Skip to content

Commit

Permalink
lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey committed Jun 5, 2018
1 parent df6e0e9 commit aea3664
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion generators/app/templates/scripts/_banner.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const pkg = require('../package.json');

module.exports = `/*! @name ${pkg.name} @version ${pkg.version} @copyright ${pkg.author} @license ${pkg.license} */`
module.exports = `/*! @name ${pkg.name} @version ${pkg.version} @copyright ${pkg.author} @license ${pkg.license} */`;
11 changes: 9 additions & 2 deletions generators/app/templates/scripts/_rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,21 @@ export default [{
banner
},
external: Object.keys(umdGlobals),
plugins: [plugins.resolve, plugins.json, plugins.commonjs, plugins.uglify, plugins.babel]
plugins: [
plugins.resolve,
plugins.json,
plugins.commonjs,
plugins.uglify,
plugins.babel
]
}, {
// cjs and es
input: 'src/plugin.js',
output: [
{file: 'dist/<%= pluginName %>.cjs.js', format: 'cjs', globals: moduleGlobals, banner},
{file: 'dist/<%= pluginName %>.es.js', format: 'es', globals: moduleGlobals, banner}
],
external: Object.keys(moduleGlobals).concat(['global', 'global/window', 'global/document']),
external: Object.keys(moduleGlobals)
.concat(['global', 'global/window', 'global/document']),
plugins: [plugins.json, plugins.babel]
}];

0 comments on commit aea3664

Please sign in to comment.