-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from maniator/rollup
Use rollup instead of webpack for bundling the library
- Loading branch information
Showing
8 changed files
with
46 additions
and
78 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 |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
npm-debug.log | ||
node_modules | ||
dist | ||
lib |
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,9 +1,9 @@ | ||
.idea | ||
npm-debug.log | ||
node_modules | ||
example | ||
config | ||
release.js | ||
_config.yml | ||
.npmignore | ||
.gitignore | ||
rollup.config.js |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,29 @@ | ||
import buble from 'rollup-plugin-buble'; | ||
import nodeResolve from 'rollup-plugin-node-resolve'; | ||
import sizes from 'rollup-plugin-sizes'; | ||
import license from 'rollup-plugin-license'; | ||
|
||
const pkg = require('./package.json'); | ||
|
||
const banner = `servable v${pkg.version} | ||
${pkg.homepage} | ||
@author ${pkg.author} | ||
@preserve`; | ||
|
||
export default { | ||
entry: 'src/index.js', | ||
dest: 'dist/index.js', | ||
format: 'umd', | ||
moduleName: 'Servable', | ||
sourceMap: true, | ||
plugins: [ | ||
buble(), | ||
sizes(), | ||
license({ | ||
banner, | ||
}), | ||
nodeResolve({ | ||
jsnext: true | ||
}) | ||
] | ||
} |
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,7 +1,5 @@ | ||
export const noop = () => null; | ||
|
||
export * from './utilities/makeHot'; | ||
|
||
export const isPromise = (p) => p !== null && typeof p === 'object' && typeof p.then === 'function'; | ||
|
||
export const isObservable = (o$) => o$ !== null && typeof o$ === 'object' && typeof o$.subscribe === 'function'; |