Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve child performances #1314

Merged
merged 20 commits into from
Sep 23, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added bundlers test
  • Loading branch information
delvedor committed Sep 21, 2020
commit 723a39e6d43d33c6b621e1d52cacc915bb643a46
7 changes: 7 additions & 0 deletions test/bundlers/parcel-test/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
'use strict'

const { Client } = require('../../../index')
const client = new Client({ node: 'http://localhost:9200' })
client.info((err, result) => {
process.exit(err ? 1 : 0)
})
16 changes: 16 additions & 0 deletions test/bundlers/parcel-test/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "parcel-test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "node bundle.js",
"build": "parcel build index.js --target node --bundle-node-modules --out-file bundle.js --no-source-maps --out-dir ."
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"parcel-bundler": "^1.12.4"
}
}
7 changes: 7 additions & 0 deletions test/bundlers/rollup-test/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
'use strict'

const { Client } = require('../../../index')
const client = new Client({ node: 'http://localhost:9200' })
client.info((err, result) => {
process.exit(err ? 1 : 0)
})
19 changes: 19 additions & 0 deletions test/bundlers/rollup-test/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "rollup-test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "node bundle.js",
"build": "rollup -c"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"@rollup/plugin-commonjs": "^15.1.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^9.0.0",
"rollup": "^2.28.0"
}
}
13 changes: 13 additions & 0 deletions test/bundlers/rollup-test/rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import resolve from '@rollup/plugin-node-resolve'
import commonjs from '@rollup/plugin-commonjs'
import json from '@rollup/plugin-json'

export default {
input: 'index.js',
output: {
file: 'bundle.js',
format: 'iife',
name: 'MyModule'
},
plugins: [resolve(), commonjs({ include: ['../../../node_modules/**'] }), json()]
}
7 changes: 7 additions & 0 deletions test/bundlers/webpack-test/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
'use strict'

const { Client } = require('../../../index')
const client = new Client({ node: 'http://localhost:9200' })
client.info((err, result) => {
process.exit(err ? 1 : 0)
})
17 changes: 17 additions & 0 deletions test/bundlers/webpack-test/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "webpack-test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "node bundle.js",
"build": "webpack"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"webpack": "^4.44.2",
"webpack-cli": "^3.3.12"
}
}
12 changes: 12 additions & 0 deletions test/bundlers/webpack-test/webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
'use strict'

const path = require('path')

module.exports = {
entry: './index.js',
target: 'node',
output: {
filename: 'bundle.js',
path: path.resolve(__dirname)
}
}