| 95 | } |
| 96 | |
| 97 | async updateIdsCommand() { |
| 98 | this.concepts.forEach(file => { |
| 99 | const dest = path.join(this.conceptsFolder, file.filename) |
| 100 | const particle = new Particle(Disk.read(dest)) |
| 101 | const newParticle = particle.toString().replace( |
| 102 | `import ../code/conceptPage.scroll |
| 103 | id `, |
| 104 | `import ../code/conceptPage.scroll |
| 105 | id ${file.filename.replace(".scroll", "")} |
| 106 | name ` |
| 107 | ) |
| 108 | Disk.write(dest, newParticle.toString()) |
| 109 | }) |
| 110 | } |
| 111 | |
| 112 | // todo: can we use parsersBundle from scroll.js? |
| 113 | buildParsersFileCommand() { |