Giter Site home page Giter Site logo

Comments (4)

twittwer avatar twittwer commented on June 15, 2024

Do you know what has to be done to achieve this? I thought Nx resolves the template in outputs from configured options.

from nx-tools.

jogelin avatar jogelin commented on June 15, 2024

@twittwer sorry for the late answer.

I don't really know what you mean by "has to be done".

If I execute these steps with my hard coded outputPath in me project.json:

  • remove dist/compodoc/may-app --> if exists
  • exec yarn nx run my-app:compodoc --> store it in dist/compodoc/may-app and in the cloud
  • remove dist/compodoc/may-app
  • exec yarn nx run my-app:compodoc --> get from cloud and set it to dist/compodoc/may-app

If I remove my config outputPath then the last step doesn't work

from nx-tools.

jogelin avatar jogelin commented on June 15, 2024

After playing with the debug mode, I clearly see that the outputPath disappeared in the configurations:

with the config set: Prepare Compodoc...

{
  tsConfig: 'libs/shared/ui/tsconfig.lib.json',
  outputPath: 'dist/compodoc/shared-ui',
  disablePrivate: true,
  disableInternal: true,
  exportFormat: 'json',
  debug: true,
  workspaceDocs: false,
  disableCoverage: true,
  disableSourceCode: false,
  disableDomTree: false,
  disableTemplateTab: false,
  disableStyleTab: false,
  disableGraph: false,
  disableProtected: false,
  disableLifeCycleHooks: true,
  disableRoutesGraph: false,
  disableSearch: false,
  disableDependencies: false,
  language: 'en-US',
  theme: 'gitbook',
  hideGenerator: false,
  port: 8080,
  watch: false
}

without the config set: Prepare Compodoc...

 {
  tsConfig: 'libs/sdc/shared/ui/tsconfig.lib.json',
  disablePrivate: true,
  disableInternal: true,
  exportFormat: 'json',
  debug: true,
  workspaceDocs: false,
  disableCoverage: true,
  disableSourceCode: false,
  disableDomTree: false,
  disableTemplateTab: false,
  disableStyleTab: false,
  disableGraph: false,
  disableProtected: false,
  disableLifeCycleHooks: true,
  disableRoutesGraph: false,
  disableSearch: false,
  disableDependencies: false,
  language: 'en-US',
  theme: 'gitbook',
  hideGenerator: false,
  port: 8080,
  watch: false
}

So I think Nrwl/Nx cannot apply the config: "outputs": ["{options.outputPath}"], correctly

from nx-tools.

twittwer avatar twittwer commented on June 15, 2024

May it be a good option to define only the outputs, like nx's jest configuration?

    "test": {
      "executor": "@nrwl/jest:jest",
      "outputs": ["coverage/libs/foo"],
      "options": {
        "jestConfig": "libs/foo/jest.config.ts",
        "passWithNoTests": true
      }
    },

The minimal options would look like this:

    "compodoc": {
      "executor": "@twittwer/compodoc:compodoc",
      "outputs": ["dist/compodoc/foo"],
      "configurations": {
        "json": {
          "exportFormat": "json"
        }
      }
    }

from nx-tools.

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.