gulp task for libs version in package.json

refactor_remix_debug1b^2
aniket-engg 4 years ago committed by Aniket
parent 30011b83bd
commit 12d0d09845
  1. 25
      gulpfile.js
  2. 2201
      package-lock.json
  3. 2
      package.json

@ -36,4 +36,29 @@ task('updateChangelog', async function () {
// Write the concatenated content to CHANGELOG.md (We delete and create file to place the new data on top)
fs.writeFileSync(__dirname + '/CHANGELOG.md', data);
await Promise.resolve();
});
/**
* @dev Task to sync libs version from 'dist' folder as lerna published from there
*/
task('syncLibVersions', async function () {
const libs = [
'remix-analyzer',
'remix-astwalker',
'remix-debug',
'remix-lib',
'remix-simulator',
'remix-solidity',
'remix-tests',
'remix-url-resolver'
]
libs.forEach(lib => {
const distPackageJSON = require(__dirname + '/dist/libs/' + lib + '/package.json')
const libVersion = distPackageJSON.version
let packageJSON = require(__dirname + '/libs/' + lib + '/package.json')
packageJSON.version = libVersion
fs.writeFileSync(__dirname + '/libs/' + lib + '/package.json', JSON.stringify(packageJSON, null, 2), 'utf8')
})
await Promise.resolve();
});

2201
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -47,6 +47,7 @@
"build:libs": "nx run-many --target=build --parallel=false --with-deps=true --projects=remix-analyzer,remix-astwalker,remix-debug,remix-lib,remix-simulator,remix-solidity,remix-tests,remix-url-resolver",
"test:libs": "nx run-many --target=test --projects=remix-analyzer,remix-astwalker,remix-debug,remix-lib,remix-simulator,remix-solidity,remix-tests,remix-url-resolver",
"publish:libs": "npm run build:libs; lerna publish --skip-git",
"bumpVersion:libs": "gulp; gulp syncLibVersions;",
"browsertest": "sleep 5 && npm run nightwatch_local",
"csslint": "csslint --ignore=order-alphabetical --errors='errors,duplicate-properties,empty-rules' --exclude-list='apps/remix-ide/assets/css/font-awesome.min.css' apps/remix-ide/assets/css/",
"downloadsolc_root": "wget --no-check-certificate https://solc-bin.ethereum.org/bin/soljson-v0.6.6+commit.6c089d02.js -O ./apps/remix-ide/soljson.js",
@ -205,6 +206,7 @@
"fast-levenshtein": "^2.0.6",
"ganache-cli": "^6.8.1",
"gists": "^1.0.1",
"gulp": "^4.0.2",
"ipfs-http-client": "35.1.1",
"ipfs-mini": "^1.1.5",
"is-electron": "^2.2.0",

Loading…
Cancel
Save