writing()

in generators/backend/index.js [37:58]


  writing() {
    if (!this.props.withBackend) {
      return;
    }
    this.log(`🛠️ Creating backend...`);

    this.fs.copyTpl(
      this.templatePath("src/backend"),
      this.destinationPath("src/backend"),
      this.props
    );
    this.fs.write(
      this.destinationPath(`src/backend/.python-version`),
      this.props.pythonVersion
    );
    if (this.props.solutionLevel == 100) {
      this.fs.copy(
        this.templatePath("src/backend/.dockerignore"),
        this.destinationPath("src/backend/.dockerignore")
      );
    }
  }