Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 2.47 KB

README.md

File metadata and controls

42 lines (29 loc) · 2.47 KB

@nx-extend/strapi

@nx-extend/strapi NPM package

Nx plugin to generate and run your Strapi project.

Setup

Install

npm install -D @nx-extend/strapi
nx g @nx-extend/strapi:init

Usage

Build

Available options:

name type default description
--production boolean false Build in production mode
--root string Project root Root of the Strapi project to use
--outputPath string Output path to output the build to
--envVars object Define env variables to set before building (can be used in project.json)
--generateLockFile string false Generate a lockfile

Serve

Available options:

name type default description
--build string true Starts your application with the autoReload enabled and skip the administration panel build process
--watchAdmin string false Starts your application with the autoReload enabled and the front-end development server. It allows you to customize the administration panel
--root string Project root Root of the Strapi project to use
--envVars object Define env variables to set before building (can be used in project.json)