DNA transcription and translation in wasm with rust
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
544 B

  1. #!/usr/bin/env node
  2. const { spawn } = require("child_process");
  3. const fs = require("fs");
  4. let folderName = '.';
  5. if (process.argv.length >= 3) {
  6. folderName = process.argv[2];
  7. if (!fs.existsSync(folderName)) {
  8. fs.mkdirSync(folderName);
  9. }
  10. }
  11. const clone = spawn("git", ["clone", "https://github.com/rustwasm/create-wasm-app.git", folderName]);
  12. clone.on("close", code => {
  13. if (code !== 0) {
  14. console.error("cloning the template failed!")
  15. process.exit(code);
  16. } else {
  17. console.log("🦀 Rust + 🕸 Wasm = ❤");
  18. }
  19. });