process result properly

pull/452/head
aniket-engg 4 years ago committed by Aniket
parent b78a9e7169
commit f6417bc805
  1. 4
      apps/remix-ide/ci/publishIpfs
  2. 10
      package-lock.json
  3. 1
      package.json

@ -1,5 +1,6 @@
#!/usr/bin/env node
const all = require('it-all')
const IpfsHttpClient = require('ipfs-http-client')
const { globSource } = IpfsHttpClient
console.log('current folder', process.cwd())
@ -9,7 +10,8 @@ const folder = process.cwd() + '/temp_publish_docker';
const host = 'ipfs.komputing.org' // ethdev berlin ipfs node
const ipfs = IpfsHttpClient({ host, port: 443, protocol: 'https' })
try {
let result = await ipfs.add(globSource(folder, { recursive: true}), { pin: false })
let result = await all(ipfs.add(globSource(folder, { recursive: true}), { pin: false }))
console.log('result ====>', result)
const remoteFolder = result[result.length - 1]
console.log('remoteFolder ====>', remoteFolder)
const hash = remoteFolder.cid.toString()

10
package-lock.json generated

@ -20952,8 +20952,7 @@
"it-all": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/it-all/-/it-all-1.0.4.tgz",
"integrity": "sha512-7K+gjHHzZ7t+bCkrtulYiow35k3UgqH7miC+iUa9RGiyDRXJ6hVDeFsDrnWrlscjrkLFOJRKHxNOke4FNoQnhw==",
"dev": true
"integrity": "sha512-7K+gjHHzZ7t+bCkrtulYiow35k3UgqH7miC+iUa9RGiyDRXJ6hVDeFsDrnWrlscjrkLFOJRKHxNOke4FNoQnhw=="
},
"it-concat": {
"version": "1.0.1",
@ -27337,7 +27336,6 @@
},
"dezalgo": {
"version": "1.0.3",
"resolved": false,
"integrity": "sha1-f3Qt4Gb8dIvI24IFad3c5Jvw1FY=",
"requires": {
"asap": "^2.0.0",
@ -27966,7 +27964,6 @@
},
"normalize-git-url": {
"version": "3.0.2",
"resolved": false,
"integrity": "sha1-jl8Uvgva7bc+ByADEKpBbCc1D8Q="
},
"normalize-package-data": {
@ -28004,7 +28001,6 @@
},
"npm-install-checks": {
"version": "3.0.0",
"resolved": false,
"integrity": "sha1-1K7N/VGlPjcjt7L5Oy7ijjB7wNc=",
"requires": {
"semver": "^2.3.0 || 3.x || 4 || 5"
@ -28351,7 +28347,6 @@
},
"realize-package-specifier": {
"version": "3.0.3",
"resolved": false,
"integrity": "sha1-0N74gpUrjeP2frpekRmWYScfQfQ=",
"requires": {
"dezalgo": "^1.0.1",
@ -28888,7 +28883,6 @@
"dependencies": {
"unique-slug": {
"version": "2.0.0",
"resolved": false,
"integrity": "sha1-22Z258fMBimHj/GWCXx4hVrp9Ks=",
"requires": {
"imurmurhash": "^0.1.4"
@ -35011,7 +35005,7 @@
"events": {
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/events/-/events-3.2.0.tgz",
"integrity": "sha512-/46HWwbfCX2xTawVfkKLGxMifJYQBWMwY1mjywRtb4c9x8l5NP3KoJtnIOiL1hfdRkIuYhETxQlo62IF8tcnlg==",
"integrity": "sha1-k7h8GPjvzUICpGGuxN/AVWtjk3k=",
"dev": true
}
}

@ -136,6 +136,7 @@
"ethereumjs-tx": "^2.1.2",
"ethereumjs-vm": "4.1.3",
"http-server": "^0.11.1",
"it-all": "^1.0.4",
"merge": "^1.2.0",
"npm-install-version": "^6.0.2",
"signale": "^1.4.0",

Loading…
Cancel
Save