-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Gabriel-Tiberiu Imre-Lucaci
authored and
Gabriel-Tiberiu Imre-Lucaci
committed
Apr 2, 2019
1 parent
7080847
commit e23f12b
Showing
40 changed files
with
7,567 additions
and
5,145 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 +1,4 @@ | ||
libfec.js | ||
node_modules | ||
dist | ||
src/libquiet | ||
!.gitkeep |
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,15 @@ | ||
|
||
import { string } from 'rollup-plugin-string' | ||
|
||
export default { | ||
input: 'src/index.mjs', | ||
plugins: [ | ||
string( { | ||
include: [ | ||
'src/libquiet/quiet.js', | ||
'src/processors/receive.mjs', | ||
'src/processors/transmit.mjs', | ||
] | ||
} ) | ||
] | ||
} |
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,17 @@ | ||
|
||
import livereload from 'rollup-plugin-livereload' | ||
import serve from 'rollup-plugin-serve' | ||
import prod from './rollup.config.prod' | ||
import web from './rollup.config.web' | ||
|
||
export default { | ||
... web, | ||
plugins: [ | ||
... web.plugins.filter( plugin => ! prod.plugins.includes( plugin ) ), | ||
serve( { | ||
contentBase: 'example', | ||
open: true, | ||
} ), | ||
livereload( 'dist' ) | ||
] | ||
} |
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,15 @@ | ||
|
||
import common from './rollup.config.common' | ||
import prod from './rollup.config.prod' | ||
|
||
export default { | ||
... common, | ||
plugins: [ | ||
... common.plugins, | ||
... prod.plugins, | ||
], | ||
output: { | ||
file: 'dist/index.js', | ||
format: 'cjs', | ||
}, | ||
} |
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,8 @@ | ||
|
||
import minify from 'rollup-plugin-babel-minify' | ||
|
||
export default { | ||
plugins: [ | ||
minify( ), | ||
] | ||
} |
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,16 @@ | ||
|
||
import common from './rollup.config.common' | ||
import prod from './rollup.config.prod' | ||
|
||
export default { | ||
... common, | ||
plugins: [ | ||
... common.plugins, | ||
... prod.plugins, | ||
], | ||
output: { | ||
file: 'dist/quiet.js', | ||
format: 'iife', | ||
name: 'Quiet', | ||
}, | ||
} |
Oops, something went wrong.