-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Builder should automatically pick CKEditor version based on package.j…
…son.
- Loading branch information
Showing
1 changed file
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,7 +57,8 @@ echo "Starting CKBuilder..." | |
|
||
JAVA_ARGS=${ARGS// -t / } # Remove -t from args. | ||
|
||
VERSION="4.7.2 DEV" | ||
VERSION=`node -pe "require('./package.json').version"` | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
mlewand
Author
Contributor
|
||
VERSION="$VERSION DEV" | ||
REVISION=$(git rev-parse --verify --short HEAD) | ||
SEMVER_REGEX="^([0-9]+)\.([0-9]+)\.([0-9]+)(\-[0-9A-Za-z-]+)?(\+[0-9A-Za-z-]+)?$" | ||
|
||
|
This means that we now need to have Node.js installed in order to build the CKEditor. This is a pain, especially if you build the CKEditor on a Continuous Integration server and you need to ask your infrastructure team to install yet another tool on all the CI agents. I would rather use grep, or perl, or an environment variable, or parse the JSON using Java, rather than adding a dependency on Node.js for such a small thing.