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

Commit

Permalink
chore: update aegir (#425)
Browse files Browse the repository at this point in the history
Removes boilerplate config that isn't needed any more.
  • Loading branch information
achingbrain authored Apr 8, 2022
1 parent c2c0fe5 commit 1cb62cb
Show file tree
Hide file tree
Showing 16 changed files with 49 additions and 44 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"build": "lerna run build",
"lint": "lerna run lint",
"dep-check": "lerna run dep-check",
"release": "lerna exec --concurrency 1 -- semantic-release -e semantic-release-monorepo"
"release": "lerna run --concurrency 1 release -- --"
},
"dependencies": {
"lerna": "^4.0.0",
Expand Down
8 changes: 5 additions & 3 deletions packages/webrtc-star-protocol/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,17 @@
]
},
"scripts": {
"clean": "aegir clean",
"lint": "aegir lint",
"dep-check": "aegir dep-check dist/src/**/*.js dist/test/**/*.js",
"build": "tsc"
"dep-check": "aegir dep-check",
"build": "aegir build",
"release": "aegir release"
},
"dependencies": {
"@multiformats/multiaddr": "^10.1.7",
"socket.io-client": "^4.1.2"
},
"devDependencies": {
"aegir": "^36.1.3"
"aegir": "^37.0.7"
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

let firstRun = true
let sigServers = []

Expand Down Expand Up @@ -41,9 +39,12 @@ async function stop () {
}

/** @type {import('aegir').PartialOptions} */
module.exports = {
export default {
test: {
before: boot,
after: stop
},
build: {
bundle: false
}
}
17 changes: 9 additions & 8 deletions packages/webrtc-star-signalling-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,18 +126,19 @@
]
},
"scripts": {
"clean": "aegir clean",
"lint": "aegir lint",
"dep-check": "aegir dep-check dist/src/**/*.js dist/test/**/*.js",
"build": "tsc",
"pretest": "npm run build",
"test": "aegir test -f \"./dist/test/**/*.js\"",
"test:node": "npm run test -- -t node --cov",
"start": "node src/sig-server/bin.js"
"dep-check": "aegir dep-check",
"build": "aegir build",
"test": "aegir test -t node",
"test:node": "aegir test -t node --cov",
"start": "node src/sig-server/bin.js",
"release": "aegir release"
},
"dependencies": {
"@hapi/hapi": "^20.0.0",
"@hapi/inert": "^6.0.3",
"@libp2p/logger": "^1.1.2",
"@libp2p/logger": "^1.1.3",
"@libp2p/webrtc-star-protocol": "^1.0.0",
"@multiformats/multiaddr": "^10.1.7",
"menoetius": "0.0.3",
Expand All @@ -149,7 +150,7 @@
"devDependencies": {
"@types/hapi__hapi": "^20.0.10",
"@types/hapi__inert": "^5.2.3",
"aegir": "^36.1.3",
"aegir": "^37.0.7",
"p-event": "^5.0.1",
"p-wait-for": "^4.1.0",
"socket.io-client-v2": "npm:socket.io-client@^2.3.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/webrtc-star-signalling-server/test/sig-server.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-env mocha */

import { expect } from 'aegir/utils/chai.js'
import { expect } from 'aegir/chai'
import { Multiaddr } from '@multiformats/multiaddr'
import { SigServer, sigServer } from '../src/index.js'
import pWaitFor from 'p-wait-for'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
'use strict'

// TODO: Temporary fix per wrtc issue
// https://github.com/node-webrtc/node-webrtc/issues/636#issuecomment-774171409
process.on('beforeExit', (code) => process.exit(code))

import { sigServer } from '@libp2p/webrtc-star-signalling-server'

let firstRun = true

/** @type {import('aegir').PartialOptions} */
module.exports = {
export default {
test: {
async before () {
const options1 = {
Expand All @@ -32,7 +32,6 @@ module.exports = {
firstRun = false
}

const { sigServer } = await import('@libp2p/webrtc-star-signalling-server')
const sigServers = []

sigServers.push(await sigServer(options1))
Expand Down
32 changes: 17 additions & 15 deletions packages/webrtc-star-transport/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,23 +121,24 @@
]
},
"scripts": {
"clean": "aegir clean",
"lint": "aegir lint",
"dep-check": "aegir dep-check dist/src/**/*.js dist/test/**/*.js",
"build": "tsc",
"pretest": "npm run build",
"test": "aegir test -f \"./dist/test/**/*.spec.js\"",
"test:node": "npm run test -- -t node -f ./dist/test/node.js ",
"test:chrome": "npm run test -- -t browser -f ./dist/test/browser.js ",
"test:firefox": "npm run test -- -t browser -- --browser firefox -f ./dist/test/browser.js",
"dep-check": "aegir dep-check",
"build": "aegir build",
"test": "aegir test",
"test:node": "aegir test -t node -f ./dist/test/node.js --cov",
"test:chrome": "aegir test -t browser -f ./dist/test/browser.js --cov",
"test:firefox": "aegir test -t browser -- --browser firefox -f ./dist/test/browser.js",
"test:dns": "WEBRTC_STAR_REMOTE_SIGNAL_DNS=1 aegir test -t browser",
"test:ip": "WEBRTC_STAR_REMOTE_SIGNAL_IP=1 aegir test -t browser"
"test:ip": "WEBRTC_STAR_REMOTE_SIGNAL_IP=1 aegir test -t browser",
"release": "aegir release"
},
"dependencies": {
"@libp2p/interfaces": "^1.3.15",
"@libp2p/logger": "^1.1.2",
"@libp2p/peer-id": "^1.1.8",
"@libp2p/utils": "^1.0.9",
"@libp2p/webrtc-peer": "^1.0.2",
"@libp2p/interfaces": "^1.3.20",
"@libp2p/logger": "^1.1.3",
"@libp2p/peer-id": "^1.1.9",
"@libp2p/utils": "^1.0.10",
"@libp2p/webrtc-peer": "^1.0.5",
"@libp2p/webrtc-star-protocol": "^1.0.0",
"@multiformats/mafmt": "^11.0.2",
"@multiformats/multiaddr": "^10.1.7",
Expand All @@ -153,10 +154,11 @@
"socket.io-client": "^4.1.2"
},
"devDependencies": {
"@libp2p/interface-compliance-tests": "^1.1.17",
"@libp2p/interface-compliance-tests": "^1.1.21",
"@libp2p/peer-id-factory": "^1.0.9",
"@libp2p/webrtc-star-signalling-server": "^1.0.0",
"@mapbox/node-pre-gyp": "^1.0.5",
"aegir": "^36.1.3",
"aegir": "^37.0.7",
"electron-webrtc": "~0.3.0",
"it-all": "^1.0.5",
"p-wait-for": "^4.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/webrtc-star-transport/test/transport/dial.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-env mocha */
import { expect } from 'aegir/utils/chai.js'
import { expect } from 'aegir/chai'
import { Multiaddr } from '@multiformats/multiaddr'
import { pipe } from 'it-pipe'
import all from 'it-all'
Expand Down
2 changes: 1 addition & 1 deletion packages/webrtc-star-transport/test/transport/discovery.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-env mocha */

import { expect } from 'aegir/utils/chai.js'
import { expect } from 'aegir/chai'
import { Multiaddr } from '@multiformats/multiaddr'
import { pEvent } from 'p-event'
import { cleanUrlSIO } from '../../src/utils.js'
Expand Down
2 changes: 1 addition & 1 deletion packages/webrtc-star-transport/test/transport/filter.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-env mocha */

import { expect } from 'aegir/utils/chai.js'
import { expect } from 'aegir/chai'
import { Multiaddr } from '@multiformats/multiaddr'
import type { WebRTCStar } from '../../src/index.js'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-env mocha */

import { expect } from 'aegir/utils/chai.js'
import { expect } from 'aegir/chai'
import { WebRTCStar } from '../../src/index.js'

describe('instantiate the transport', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/webrtc-star-transport/test/transport/listen.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-env mocha */

import { expect } from 'aegir/utils/chai.js'
import { expect } from 'aegir/chai'
import { Multiaddr } from '@multiformats/multiaddr'
import { pEvent } from 'p-event'
import type { WebRTCStar } from '../../src/index.js'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-env mocha */

import { expect } from 'aegir/utils/chai.js'
import { expect } from 'aegir/chai'
import { Multiaddr } from '@multiformats/multiaddr'
import { pipe } from 'it-pipe'
import type { WebRTCStar } from '../../src/index.js'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-env mocha */

import { expect } from 'aegir/utils/chai.js'
import { expect } from 'aegir/chai'
import { Multiaddr } from '@multiformats/multiaddr'
import { sigServer } from '@libp2p/webrtc-star-signalling-server'
import { pEvent } from 'p-event'
Expand Down
2 changes: 1 addition & 1 deletion packages/webrtc-star-transport/test/transport/track.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env mocha */
/* eslint-disable no-console */

import { expect } from 'aegir/utils/chai.js'
import { expect } from 'aegir/chai'
import { Multiaddr } from '@multiformats/multiaddr'
import { pipe } from 'it-pipe'
import pWaitFor from 'p-wait-for'
Expand Down
2 changes: 1 addition & 1 deletion packages/webrtc-star-transport/test/utils.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-env mocha */

import { expect } from 'aegir/utils/chai.js'
import { expect } from 'aegir/chai'
import { Multiaddr } from '@multiformats/multiaddr'
import { cleanMultiaddr, cleanUrlSIO } from '../src/utils.js'

Expand Down

0 comments on commit 1cb62cb

Please sign in to comment.