Comments (2)
I think this should be possible yes, but since we use the strapi provided package to generate the project its placed there. You can if you want move the deps from that one manually to the root package.
We could also update the generator to move all the deps after it generated the project to the root package.json
from nx-extend.
Also, keep in mind that you have to set cwd to process.cwd()
because if you run npx strapi build
in an application folder (not root), the build will fail since Strapi internals check for package.json
file alongside Strapi app.
Even so, npx strapi develop
must be executed within Strapi app because it requires src folder. The bad part is that npx strapi develop
also requires you to have a package.json
within Strapi app. So the workaround is to create a package.json
that meets Strapi requirements:
{
"dependencies": {
"@strapi/strapi": "*"
}
}
But, based on this, you don't have to run npx strapi build
in a root anymore. In general, everything is not so straightforward :)
from nx-extend.
Related Issues (20)
- Getting error HOT 6
- Getting error when building strapi in NX HOT 8
- terraform module feature: pre-processing options HOT 2
- [readCachedProjectGraph] ERROR: No cached ProjectGraph is available. HOT 17
- Strapi: Error when building from workspace root HOT 5
- Terraform Destroy Command HOT 3
- Google Cloud functions framework not working when upgrading Nx from 17.0.3 -> 17.1.3 HOT 30
- Pulumi: Support for setting working directory HOT 8
- @nx-extend/e2e-runner doesn't kill devServerTarget on SIGINT HOT 5
- Question: How does the `deploy` Executor deal with `node_modules` with GCP functions HOT 2
- Terraform executor - custom args, or -var-file? HOT 1
- Add support for terraform validate and terraform test
- `shadcn-ui` not working with pnpm HOT 2
- @nx-extend/strapi No sqlite package HOT 1
- gcp-functions: Peer dependencies not included in `package.json`
- [Feature] Add support for building and deploying Cloud Run Jobs HOT 5
- terraform module: How to specify working directory? HOT 1
- nx add <ui lib> button conflicts with regular nx add HOT 6
- Add all components with `shadcn-ui`
- bug: missing stack property HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nx-extend.