From c79872ec0eff254a84b3d810b6cdf7953046467c Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Thu, 24 Sep 2020 14:42:56 +0530 Subject: [PATCH] ipfs publish successful --- apps/remix-ide/ci/publishIpfs | 7 +------ package-lock.json | 3 ++- package.json | 1 - 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/apps/remix-ide/ci/publishIpfs b/apps/remix-ide/ci/publishIpfs index 701f23fe1f..c56a5f37bf 100755 --- a/apps/remix-ide/ci/publishIpfs +++ b/apps/remix-ide/ci/publishIpfs @@ -1,6 +1,5 @@ #!/usr/bin/env node -const all = require('it-all') const IpfsHttpClient = require('ipfs-http-client') const { globSource } = IpfsHttpClient console.log('current folder', process.cwd()) @@ -11,11 +10,7 @@ const folder = process.cwd() + '/temp_publish_docker'; const ipfs = IpfsHttpClient({ host, port: 443, protocol: 'https' }) try { let result = await ipfs.add(globSource(folder, { recursive: true}), { pin: false }) - console.log('result ====>', result) - const remoteFolder = result - // const remoteFolder = result[result.length - 1] - console.log('remoteFolder ====>', remoteFolder) - const hash = remoteFolder.cid.toString() + const hash = result.cid.toString() console.log('ipfs://' + hash) console.log('https://ipfsgw.komputing.org/ipfs/' + hash) console.log('https://gateway.ipfs.io/ipfs/' + hash) diff --git a/package-lock.json b/package-lock.json index ba196be8bf..fb056a94c8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20952,7 +20952,8 @@ "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==" + "integrity": "sha512-7K+gjHHzZ7t+bCkrtulYiow35k3UgqH7miC+iUa9RGiyDRXJ6hVDeFsDrnWrlscjrkLFOJRKHxNOke4FNoQnhw==", + "dev": true }, "it-concat": { "version": "1.0.1", diff --git a/package.json b/package.json index a9967f7a92..b5c2dd380b 100644 --- a/package.json +++ b/package.json @@ -136,7 +136,6 @@ "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",