generate a NodeJS dist, bump to 0.1.2

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2020-02-10 21:34:58 +01:00
parent d65b6f66dc
commit a4073c6c85
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
5 changed files with 3237 additions and 9 deletions

View File

@ -1,7 +1,7 @@
/**
* Name: js-status-chat-name
* Version: 0.1.1
* Version: 0.1.2
* Author: Jakub Sokołowski <jakub@status.im>
* Source: https://github.com/status-im/js-status-chat-name
* License: MIT

File diff suppressed because one or more lines are too long

3224
dist/status-chat-name.node.js vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,8 +1,8 @@
{
"name": "js-status-chat-name",
"version": "0.1.1",
"version": "0.1.2",
"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",
"author": "Jakub Sokołowski <jakub@status.im>",
"license": "MIT",

View File

@ -16,20 +16,24 @@ const banner = `
export default {
input: 'src/main.js',
output: [
{
{ /* NodeJS */
name: name,
banner: banner,
file: 'dist/status-chat-name.node.js',
format: 'cjs',
},
{ /* Browser */
name: name,
banner: banner,
file: 'dist/status-chat-name.js',
format: 'iife',
},
{
{ /* Browser Minified */
name: name,
banner: `/* Meta: ${pkg.name} ${pkg.version} */`,
file: 'dist/status-chat-name.min.js',
format: 'iife',
plugins: [
terser({output: {comments: /Meta:/}})
]
plugins: [ terser({output: {comments: /Meta:/}}) ]
}
],
}