Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CLI installation and add Windows compatibility for scripts #6166

Merged
merged 3 commits into from
Sep 24, 2024

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
Member

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