forked from akveo/nebular
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(aio): fix a package bundling
- Loading branch information
Alexander Zhukov
committed
Apr 27, 2017
1 parent
30cb75c
commit 7c04a04
Showing
7 changed files
with
68 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
/tmp | ||
/compiled | ||
/build | ||
/lib | ||
|
||
# dependencies | ||
node_modules | ||
|
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { | ||
ROLLUP_GLOBALS, | ||
getLicenseBanner, | ||
} from './rollup.config.common'; | ||
|
||
const globals = Object.assign({}, ROLLUP_GLOBALS, { | ||
'immutable': 'immutable', | ||
}); | ||
|
||
const banner = getLicenseBanner('@nga/auth', '../../lib/auth/package.json'); | ||
|
||
export default { | ||
context: 'this', | ||
external: Object.keys(globals), | ||
globals, | ||
moduleName: 'nga.auth', | ||
entry: 'lib/auth/index.js', | ||
dest: 'lib/auth/bundles/auth.umd.js', | ||
banner, | ||
format: 'umd', | ||
moduleId: '', | ||
} |
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,22 +1,22 @@ | ||
import { | ||
ROLLUP_GLOBALS, | ||
BUILD_CONFIG, | ||
getLicenseBanner, | ||
} from './rollup.config.common'; | ||
|
||
const globals = Object.assign({}, ROLLUP_GLOBALS, { | ||
'immutable': 'immutable', | ||
}); | ||
|
||
const banner = getLicenseBanner('@nga/theme', '../../src/framework/theme/package.json'); | ||
const banner = getLicenseBanner('@nga/theme', '../../lib/theme/package.json'); | ||
|
||
export default { | ||
...Object.assign({}, BUILD_CONFIG, { | ||
external: Object.keys(globals), | ||
globals, | ||
moduleName: 'nga.theme', | ||
entry: 'dist/theme/index.js', | ||
dest: 'dist/theme/bundles/theme.umd.js', | ||
banner, | ||
}), | ||
context: 'this', | ||
external: Object.keys(globals), | ||
globals, | ||
moduleName: 'nga.theme', | ||
entry: 'lib/theme/index.js', | ||
dest: 'lib/theme/bundles/theme.umd.js', | ||
banner, | ||
format: 'umd', | ||
moduleId: '', | ||
} |
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