Skip to content

build: add scripts to the mono repository#44

Merged
baptistegrimaud merged 2 commits intomainfrom
3178-move-build-scripts-to-monorepo
Feb 7, 2025
Merged

build: add scripts to the mono repository#44
baptistegrimaud merged 2 commits intomainfrom
3178-move-build-scripts-to-monorepo

Conversation

@baptistegrimaud
Copy link
Copy Markdown
Contributor

@baptistegrimaud baptistegrimaud commented Feb 6, 2025

Description

Copy the build scripts (to compile, clean, build, pack, deploy and watch) from https://github.com/Jahia/javascript-components/ to this repository, so the project can get rid of the dependency towards @jahia/scripts dependency.
Example of cleanup in Luxe: Jahia/luxe-jahia-demo#178

When the @jahia/javascript-modules-library dependency is added to a project, the following commands are exposed:

  • jahia-build : simply calls the production build (jahia-build_production)
  • jahia-build_development: builds the project with webpack using the development mode
  • jahia-build_production: builds the project with webpack default mode (production)
  • jahia-clean: cleans the generated folder created by the build (dist/)
  • jahia-deploy: builds the project if needed, then deploys the .tgz file to a running Jahia instance (via Docker or curl)
  • jahia-watch: watches for changes and automatically build and deploy them to a running Jahia instance

@baptistegrimaud baptistegrimaud force-pushed the 3178-move-build-scripts-to-monorepo branch 2 times, most recently from a5d284c to 51e741e Compare February 6, 2025 07:47
Comment thread javascript-modules-library/src/bin/jahia-watch.ts Outdated
@baptistegrimaud baptistegrimaud force-pushed the 3178-move-build-scripts-to-monorepo branch from 1b79e2a to 65a6a72 Compare February 7, 2025 15:55
Copy link
Copy Markdown
Member

@GauBen GauBen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:)

@baptistegrimaud baptistegrimaud merged commit 15e1792 into main Feb 7, 2025
@baptistegrimaud baptistegrimaud deleted the 3178-move-build-scripts-to-monorepo branch February 7, 2025 16:37
baptistegrimaud pushed a commit that referenced this pull request Feb 25, 2025
* BACKLOG-23228: folder structure for simple elements

* README.txt to .md for /settings directory instructions

* missing rename for README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BACKLOG-23226 - JS modules - Move build scripts to new monorepo

2 participants