|
|
|
@ -16,23 +16,23 @@ const versionData = { |
|
|
|
|
|
|
|
|
|
const loadLocalSolJson = async () => { |
|
|
|
|
// execute apps/remix-ide/ci/downloadsoljson.sh
|
|
|
|
|
const child = require('child_process').execSync('bash ./apps/remix-ide/ci/downloadsoljson.sh', { encoding: 'utf8', cwd: process.cwd(), shell: true }) |
|
|
|
|
//const child = require('child_process').execSync('bash ' + __dirname + '/ci/downloadsoljson.sh', { encoding: 'utf8', cwd: process.cwd(), shell: true })
|
|
|
|
|
// show output
|
|
|
|
|
console.log(child) |
|
|
|
|
//console.log(child)
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fs.writeFileSync('./apps/remix-ide/src/assets/version.json', JSON.stringify(versionData)) |
|
|
|
|
fs.writeFileSync(__dirname + '/src/assets/version.json', JSON.stringify(versionData)) |
|
|
|
|
|
|
|
|
|
loadLocalSolJson() |
|
|
|
|
|
|
|
|
|
const project = fs.readFileSync('./apps/remix-ide/project.json', 'utf8') |
|
|
|
|
const project = fs.readFileSync(__dirname + '/project.json', 'utf8') |
|
|
|
|
|
|
|
|
|
const implicitDependencies = JSON.parse(project).implicitDependencies |
|
|
|
|
|
|
|
|
|
const copyPatterns = implicitDependencies.map((dep) => { |
|
|
|
|
try { |
|
|
|
|
fs.statSync(__dirname + `/../../dist/apps/${dep}`).isDirectory() |
|
|
|
|
return { from: `../../dist/apps/${dep}`, to: `plugins/${dep}` } |
|
|
|
|
return { from: __dirname + `../../dist/apps/${dep}`, to: `plugins/${dep}` } |
|
|
|
|
} |
|
|
|
|
catch (e) { |
|
|
|
|
console.log('error', e) |
|
|
|
@ -128,6 +128,7 @@ module.exports = composePlugins(withNx(), withReact(), (config) => { |
|
|
|
|
ignored: /node_modules/ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
console.log('config', config) |
|
|
|
|
return config; |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|