Skip to content

hlx up without config should render with helix-pages code #929

@tripodsan

Description

@tripodsan

when running hlx up with no helix-config.yaml nor a src directory, the project should render using the fallback code from https://github.com/adobe/helix-pages.

The code should be provided via an npm package, so that it is stable in respect to semver when installing helix-cli, but also allows to update if needed. alternatively, hlx up could automatically download the code from github.

Suggestion

- [ ] create a `@adobe/helix-pages` npm package that contains the `src` and `htdocs` folder. - [ ] add `@adobe/helix-pages` as `dependency` to `helix-cli` - [ ] `hlx up` will check if a fallback code repository is needed, and if so, it will ensure that the packaged code is used for rendering. eg: 1. set the `code` and `static` repository to `${hlx-cli-installpath}/node_modules/@adobe/helix-pages` 2. set the source directory to `${hlx-cli-installpath}/node_modules/@adobe/helix-pages/src`
  • hlx up will check if a fallback code repository is needed, and if so, it will ensure that the
    helix-pages repository is checked out to .hlx/pages/master and the code is used for rendering. eg:
    1. set the static repository to .hlx/pages/master
    2. set the source directory to .hlx/pages/master/src

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions