-
Notifications
You must be signed in to change notification settings - Fork 431
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate datatypes-date-time into build/packaging process (#496)
* Integrate datatypes-date-time into build process * Add recognizers-text-data-types-timex-expression to main package's deps * Bumping npm package version of data-types-timex
- Loading branch information
1 parent
2e4be3e
commit 87f62bc
Showing
5 changed files
with
49 additions
and
6 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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
{ | ||
"lerna": "2.5.1", | ||
"packages": [ | ||
"packages/recognizers-*" | ||
"packages/recognizers-*", | ||
"packages/datatypes-date-time" | ||
], | ||
"version": "1.0.0" | ||
} |
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,4 @@ | ||
* | ||
!dist/*.js | ||
!dist/types/**/* | ||
!README.md |
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,26 @@ | ||
import resolve from 'rollup-plugin-node-resolve'; | ||
import commonjs from 'rollup-plugin-commonjs'; | ||
import sourceMaps from 'rollup-plugin-sourcemaps'; | ||
import pkg from './package.json'; | ||
import camelCase from 'lodash.camelcase'; | ||
|
||
export default { | ||
input: `index.js`, | ||
output: [ | ||
{ file: pkg.module, format: 'es' }, | ||
{ file: pkg.main, name: camelCase(pkg.name), format: 'umd', exports: 'named' }, | ||
{ file: pkg.browser, format: 'iife', name: camelCase(pkg.name), exports: 'named' } | ||
], | ||
exports: 'named', | ||
sourcemap: true, | ||
plugins: [ | ||
// Allow bundling cjs modules (unlike webpack, rollup doesn't understand cjs) | ||
commonjs(), | ||
// Allow node_modules resolution, so you can use 'external' to control | ||
// which external modules to include in the bundle | ||
// https://github.com/rollup/rollup-plugin-node-resolve#usage | ||
resolve(), | ||
// Resolve source maps to the original source | ||
sourceMaps() | ||
] | ||
}; |