Skip to content
This repository has been archived by the owner on Sep 30, 2023. It is now read-only.

Commit

Permalink
Updating webpack and other deps
Browse files Browse the repository at this point in the history
* Updating storage adapter and tests

* reverting addition of localstorage-down

* linting

* updating circle config to lts

* package.json engines

* [email protected]

* [email protected]

* updating webpack

* webpack conf updates

* dist files

* fixing circle config

* standard 16 linting
  • Loading branch information
aphelionz authored May 25, 2021
1 parent ae25fc9 commit f253704
Show file tree
Hide file tree
Showing 13 changed files with 5,579 additions and 12,499 deletions.
12 changes: 6 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
version: 2.1

executors:
node12-browsers:
lts-browsers:
docker:
- image: circleci/node:12-browsers
- image: circleci/node:lts-browsers

jobs:
setup:
executor: node12-browsers
executor: lts-browsers
steps:
- checkout
- run: mkdir -p /tmp/workspace
Expand All @@ -25,19 +25,19 @@ jobs:
- conf
- package.json
test-node:
executor: node12-browsers
executor: lts-browsers
steps:
- attach_workspace:
at: ./
- run: npm run test:node
test-browser:
executor: node12-browsers
executor: lts-browsers
steps:
- attach_workspace:
at: ./
- run: npm run test:browser
build:
executor: node12-browsers
executor: lts-browsers
steps:
- attach_workspace:
at: ./
Expand Down
14 changes: 6 additions & 8 deletions conf/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,22 @@ module.exports = {
},
target: 'web',
mode: 'production',
devtool: 'sourcemap',
node: {
console: false,
Buffer: true
},
devtool: 'source-map',
plugins: [
],
resolve: {
modules: [
'node_modules',
path.resolve(__dirname, '../node_modules')
]
],
fallback: {
path: require.resolve('path-browserify')
}
},
resolveLoader: {
modules: [
'node_modules',
path.resolve(__dirname, '../node_modules')
],
moduleExtensions: ['-loader']
]
}
}
19 changes: 12 additions & 7 deletions conf/webpack.tests.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ module.exports = {
target: 'web',
mode: 'production',
devtool: 'source-map',
node: {
child_process: 'empty'
},
plugins: [
new webpack.DefinePlugin({
'process.env': {
Expand All @@ -37,14 +34,18 @@ module.exports = {
modules: [
'node_modules',
path.resolve(__dirname, '../node_modules')
]
],
fallback: {
assert: require.resolve('assert/'),
path: require.resolve('path-browserify'),
stream: require.resolve('stream-browserify')
}
},
resolveLoader: {
modules: [
'node_modules',
path.resolve(__dirname, '../node_modules')
],
moduleExtensions: ['-loader']
]
},
module: {
rules: [
Expand All @@ -57,7 +58,11 @@ module.exports = {
presets: [
['@babel/preset-env', { modules: false }]
],
plugins: ['@babel/syntax-object-rest-spread', '@babel/transform-runtime', '@babel/plugin-transform-modules-commonjs']
plugins: [
'@babel/syntax-object-rest-spread',
'@babel/transform-runtime',
'@babel/plugin-transform-modules-commonjs'
]
}
}
},
Expand Down
23 changes: 2 additions & 21 deletions dist/orbit-db-store.min.js

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions dist/orbit-db-store.min.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* [js-sha3]{@link https://github.com/emn178/js-sha3}
*
* @version 0.8.0
* @author Chen, Yi-Cyuan [[email protected]]
* @copyright Chen, Yi-Cyuan 2015-2018
* @license MIT
*/

//! stable.js 0.1.8, https://github.com/Two-Screen/stable

//! © 2018 Angry Bytes and contributors. MIT licensed.
Loading

0 comments on commit f253704

Please sign in to comment.