This repository has been archived by the owner. It is now read-only.
Enonic XP bundled applications.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle
modules
scripts
testing
.eslintignore
.eslintrc.js
.gitignore
.travis.yml
LICENSE.txt
NOTICE.txt
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
package-lock.json
package.json
postcss.config.js
settings.gradle
tsconfig.json
tslint.json

README.md

Enonic XP Apps

Travis Build Status License

Core applications for Enonic XP.

Usage

Just copy the built JAR files to the $XP_HOME/deploy folder, or use the deploy task from the Gradle:

./gradlew deploy

Building

Default

Run the following command to build all applications with default options:

./gradlew build

With default build, applications will use the remote lib-admin-ui dependency and the environment variable won't be set.

Environment

To use the specific environment, you must set its value explicitly with env parameter (only prod or dev):

./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 xp-apps 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.

Quick

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.

Clean

To rebuild the project from scratch, you may want to remove all compiles sources and dependencies. In that case, using clean command may not be enough. To remove the build and dependencies, use:

./gradlew flush

NPM upgrade

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.