Skip to content

Conversation

mohamedsalem401
Copy link
Member

To use the GrapesJS framework via the CLI, we must first build the CLI itself. Therefore, we should add a build step for the CLI after the installation process.

"start:js": "node node_modules/grapesjs-cli/dist/cli.js serve"

I also added cross-env before some script so that they will work on Windows machines.

@danstarns
Copy link
Contributor

Copy link
Member

@artf artf left a comment

Choose a reason for hiding this comment

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

Thanks @mohamedsalem401 🙇‍♂️
I removed for now postinstall as I think we want to avoid the consumers running build when they install grapesjs as a dependency.

We should probably highlight the CLI build step in the Development steps

@artf artf merged commit 1c16e59 into dev Sep 24, 2024
3 checks passed
@mohamedsalem401 mohamedsalem401 deleted the fix-cli-install branch September 25, 2024 03:06
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.

3 participants