Code Monkey home page Code Monkey logo

Comments (4)

zxkane avatar zxkane commented on June 7, 2024

pls also add tsc support of jsii configuration, it allows customize the tsconfig.json generated by jsii. It might reuse the existing tsconfig for jsii tsc section.

from projen.

github-actions avatar github-actions commented on June 7, 2024

This issue is now marked as stale because it hasn't seen activity for a while. Add a comment or it will be closed soon.

from projen.

github-actions avatar github-actions commented on June 7, 2024

Closing this issue as it hasn't seen activity for a while. Please add a comment @mentioning a maintainer to reopen.

from projen.

thtliife avatar thtliife commented on June 7, 2024

@eladb this is my workaround in .projenrc.ts:

const project = new VueJsProject({
  name: 'my-vuejs-sample',
  description: "my awesome vue project",
  // ...
  devDeps: [
    'projen-vuejs'
  ],
/* customize tsconfig (projen actually applies this to `tsconfig.dev.json` */
tsconfig: {
  compilerOptions: {
    baseUrl: './',
    paths: {
      '@': [ './src' ]
    }
  }
}
});

/* add this to sort out tsconfig customisation for all files under the `./src` folder */
if (!project.disableTsconfig) {
  new JsonFile(project, 'src/tsconfig.json', {
    obj: {
      extends: '../tsconfig.dev.json'
    }
  });
}
/* tsconfig fixt */

project.synth();

I also add a very similar thing to my personalized external modules like:

if (!options.disableTsconfig) {
  new JsonFile(this, 'src/tsconfig.json', {
    committed: true,
    readonly: true,
    obj: {
      extends: '../tsconfig.dev.json'
    }
  });
}

Hope this helps

from projen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.