Skip to content

Commit

Permalink
Merge pull request #517 from bigopon/master
Browse files Browse the repository at this point in the history
refactor(build): add umd build
  • Loading branch information
EisenbergEffect authored Jan 12, 2019
2 parents 7a68981 + f669d38 commit 74bb04f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
"license": "MIT",
"author": "Jeremy Danyow <[email protected]> (https:/danyow.net/)",
"main": "dist/commonjs/aurelia-validation.js",
"module": "dist/es2015/aurelia-validation.js",
"browser": "dist/umd/aurelia-validation.js",
"unpkg": "dist/umd/aurelia-validation.js",
"types": "dist/aurelia-validation.d.ts",
"typings": "dist/aurelia-validation.d.ts",
"repository": {
Expand Down
23 changes: 19 additions & 4 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,25 @@ const entryName = 'aurelia-validation';

export default [{
input: `src/${entryName}.ts`,
output: {
file: `dist/es2015/${entryName}.js`,
format: 'es'
},
output: [
{
file: `dist/es2015/${entryName}.js`,
format: 'es'
},
{
file: `dist/umd/${entryName}.js`,
format: 'umd',
name: 'au.validation',
globals: {
'aurelia-binding': 'au',
'aurelia-templating': 'au',
'aurelia-dependency-injection': "au",
"aurelia-logging": "au.LogManager",
"aurelia-pal": "au",
"aurelia-task-queue": "au",
}
}
],
plugins: [
typescript({
useTsconfigDeclarationDir: true,
Expand Down

0 comments on commit 74bb04f

Please sign in to comment.