generate a NodeJS dist, bump to 0.1.2
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
d65b6f66dc
commit
a4073c6c85
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Name: js-status-chat-name
|
* Name: js-status-chat-name
|
||||||
* Version: 0.1.1
|
* Version: 0.1.2
|
||||||
* Author: Jakub Sokołowski <jakub@status.im>
|
* Author: Jakub Sokołowski <jakub@status.im>
|
||||||
* Source: https://github.com/status-im/js-status-chat-name
|
* Source: https://github.com/status-im/js-status-chat-name
|
||||||
* License: MIT
|
* License: MIT
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
|
@ -1,8 +1,8 @@
|
||||||
{
|
{
|
||||||
"name": "js-status-chat-name",
|
"name": "js-status-chat-name",
|
||||||
"version": "0.1.1",
|
"version": "0.1.2",
|
||||||
"description": "JS Library for generating Status chat names from keys.",
|
"description": "JS Library for generating Status chat names from keys.",
|
||||||
"main": "index.js",
|
"main": "dist/status-chat-name.node.js",
|
||||||
"repository": "https://github.com/status-im/js-status-chat-name",
|
"repository": "https://github.com/status-im/js-status-chat-name",
|
||||||
"author": "Jakub Sokołowski <jakub@status.im>",
|
"author": "Jakub Sokołowski <jakub@status.im>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|
|
@ -16,20 +16,24 @@ const banner = `
|
||||||
export default {
|
export default {
|
||||||
input: 'src/main.js',
|
input: 'src/main.js',
|
||||||
output: [
|
output: [
|
||||||
{
|
{ /* NodeJS */
|
||||||
|
name: name,
|
||||||
|
banner: banner,
|
||||||
|
file: 'dist/status-chat-name.node.js',
|
||||||
|
format: 'cjs',
|
||||||
|
},
|
||||||
|
{ /* Browser */
|
||||||
name: name,
|
name: name,
|
||||||
banner: banner,
|
banner: banner,
|
||||||
file: 'dist/status-chat-name.js',
|
file: 'dist/status-chat-name.js',
|
||||||
format: 'iife',
|
format: 'iife',
|
||||||
},
|
},
|
||||||
{
|
{ /* Browser Minified */
|
||||||
name: name,
|
name: name,
|
||||||
banner: `/* Meta: ${pkg.name} ${pkg.version} */`,
|
banner: `/* Meta: ${pkg.name} ${pkg.version} */`,
|
||||||
file: 'dist/status-chat-name.min.js',
|
file: 'dist/status-chat-name.min.js',
|
||||||
format: 'iife',
|
format: 'iife',
|
||||||
plugins: [
|
plugins: [ terser({output: {comments: /Meta:/}}) ]
|
||||||
terser({output: {comments: /Meta:/}})
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue