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 * 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

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", "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",

View File

@ -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:/}})
]
} }
], ],
} }