You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "David Jencks (Jira)" <ji...@apache.org> on 2020/06/27 20:51:00 UTC

[jira] [Commented] (CAMEL-15249) Utilize yarn workspaces

    [ https://issues.apache.org/jira/browse/CAMEL-15249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17147107#comment-17147107 ] 

David Jencks commented on CAMEL-15249:
--------------------------------------

yarn workspaces seem like using a bulldozer where a teaspoon would do.

I suggest adding some more scripts to package.json.  I can't get this to work with yarn, but with npm the following works:

-- add the gulp dependencies from antora-ui-camel/package.json to package.json

-- add these scripts to package.json:

 

```

"build:install": "npm i --cache=.cache/npm",
"build:antora-ui": "gulp --cwd antora-ui-camel",

```

 

npm run build:install and npm run build:antora-ui both do what one expects.

 

> Utilize yarn workspaces
> -----------------------
>
>                 Key: CAMEL-15249
>                 URL: https://issues.apache.org/jira/browse/CAMEL-15249
>             Project: Camel
>          Issue Type: Improvement
>          Components: website
>            Reporter: Zoran Regvart
>            Priority: Major
>
> To make the build simpler, i.e. that we just need to run {{yarn}} followed by {{yarn build}} we can utilize [Yarn workspaces|https://classic.yarnpkg.com/en/docs/workspaces/]. By using workspaces we would not need to change into {{antora-ui-camel}} and build there, but the Antora UI would be built as a dependency/module of the workspace.
> Perhaps we can even make it so that we only need to run {{yarn}} (not so sure this is a good idea) or we only need to run {{yarn build}}.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)