Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use rollup and package.json to generate banner
- Loading branch information
1 parent
3b16f26
commit cb28f2c
Showing
5 changed files
with
36 additions
and
31 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
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,5 +1,7 @@ | ||
export default { | ||
import config from './rollup.config' | ||
|
||
export default Object.assign({}, config, { | ||
entry: 'src/expanding.jquery.js', | ||
dest: 'dist/expanding.jquery.js', | ||
format: 'iife' | ||
}; | ||
}) |
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,6 +1,19 @@ | ||
import json from 'rollup-plugin-json' | ||
var pkg = require('./package.json') | ||
|
||
export default { | ||
entry: 'src/expanding.js', | ||
dest: 'dist/expanding.js', | ||
format: 'umd', | ||
moduleName: 'Expanding' | ||
}; | ||
moduleName: 'Expanding', | ||
plugins: [json({ include: ['./package.json'] })], | ||
banner: [ | ||
'/*', | ||
' * ' + pkg.name + ' ' + pkg.version, | ||
' * Copyright © 2011+ ' + pkg.author.name, | ||
' * Released under the ' + pkg.license + ' license', | ||
' * ' + pkg.homepage, | ||
' */', | ||
'' | ||
].join('\n') | ||
} |