|
|
@ -16,23 +16,23 @@ const versionData = { |
|
|
|
|
|
|
|
|
|
|
|
const loadLocalSolJson = async () => { |
|
|
|
const loadLocalSolJson = async () => { |
|
|
|
// execute apps/remix-ide/ci/downloadsoljson.sh
|
|
|
|
// 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
|
|
|
|
// 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() |
|
|
|
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 implicitDependencies = JSON.parse(project).implicitDependencies |
|
|
|
|
|
|
|
|
|
|
|
const copyPatterns = implicitDependencies.map((dep) => { |
|
|
|
const copyPatterns = implicitDependencies.map((dep) => { |
|
|
|
try { |
|
|
|
try { |
|
|
|
fs.statSync(__dirname + `/../../dist/apps/${dep}`).isDirectory() |
|
|
|
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) { |
|
|
|
catch (e) { |
|
|
|
console.log('error', e) |
|
|
|
console.log('error', e) |
|
|
@ -130,6 +130,7 @@ module.exports = composePlugins(withNx(), withReact(), (config) => { |
|
|
|
ignored: /node_modules/ |
|
|
|
ignored: /node_modules/ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log('config', config) |
|
|
|
return config; |
|
|
|
return config; |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|