Create sites and manage content in Enonic XP. The documentation can be found here.
Just copy the built JAR files to the $XP_HOME/deploy
folder, or use the deploy
task from the Gradle:
./gradlew deploy
Run the following command to build the application with default options:
./gradlew build
With default build, the application will use the remote lib-admin-ui
dependency and production environment.
To use the development environment (unminifed sources, source maps etc.), you must set its value explicitly with env
parameter (only prod
or dev
supported):
./gradlew build -Penv=dev
If the environment is set, the Gradle will look for the local lib-admin-ui
and xp
repositories in the parent folder of your app-contentstudio
repo. And if any present, will build them, along with building applications, instead of downloading the remote lib-admin-ui
dependency.
The environment parameter will also be passed to lib-admin-ui
.
Both environments are almost identical, except that building in the development environment will result in creating the DTS files, sourcemaps and other things, critical for the debugging. The build itself may also be a bit slower sometimes.
It's possible to build lib-contentstudio
containing d.ts
files for Typescript classes of the Content Studio application. This library can then be used
to inherit from the Content Studio's Typescript classes in another application.
To build the library and deploy it to your local Maven repository:
./gradlew :lib-contentstudio:pTML -Plib
Sometimes, you may want to build your project faster. To do so, just skip the linting (lint
task) and testing (test
task):
./gradlew build -x lint -x test
In cases, when you set the environment type explicitly, skipping the lint
or test
will also result in skipping those two tasks in local lib-admin-ui
build.
To rebuild the project from scratch, you may want to remove all compiles sources and dependencies.
./gradlew clean
In case you want forcefully update all your node dependencies, use:
./gradlew npmInstallForce
Take a note, that you can also use aliases in Gradle, and nIF
would be just enough to run npmInstallForce
.