Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies, cleanup, bugfixes #1694

Open
wants to merge 48 commits into
base: hotfix-2.0.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
57d1830
Prepare next feature version
npomaroli Apr 26, 2024
c62479c
Add option to skip build, if git commit is equal to git commit of last
npomaroli Jun 5, 2024
b01d5f2
Merge pull request #1673 from alohaeditor/f-gpu-1755
npomaroli Jun 7, 2024
32b7aeb
Fix error
npomaroli Jun 13, 2024
2bb114f
GPU-1692: Remove ecma5shims
deckdom Jun 17, 2024
e01d02d
GPU-1692: Remove non-standard ECMA implementations
deckdom Jun 19, 2024
81dbb3e
GPU-1559: Fixed content-rules and more basic JS call replacements
deckdom Jun 19, 2024
f94acd0
GPU-1559: JCrop update; Amplify removal; Bugfixes
deckdom Jun 19, 2024
b094fa6
Merge pull request #1674 from alohaeditor/f-gpu-1559
deckdom Jul 1, 2024
a5f22d2
Fixed import of jquery-ui in image-plugin
deckdom Jul 2, 2024
6b4f2f0
Removed unused files and packages
deckdom Jul 2, 2024
1138727
Updated building scripts execution
deckdom Jul 2, 2024
c26c732
Moved jcrop dependency into repository again
deckdom Jul 2, 2024
251f0aa
Added jcrop styles
deckdom Jul 2, 2024
737dbfb
Updated dependencies and license information
deckdom Jul 2, 2024
2a0a738
Merge pull request #1677 from alohaeditor/dev-ci-building
deckdom Jul 2, 2024
d51f29c
GPU-1740: Fixed format plugin configuration
deckdom Sep 3, 2024
a4c3026
Fixed typos and translations
deckdom Sep 3, 2024
17b40b8
Fixed missing translations, and cleanup
deckdom Sep 3, 2024
c23697b
Cite plugin cleanup and general bugfixes
deckdom Sep 5, 2024
d2af2fe
Merge branch 'hotfix-2.0.x' into dev
npomaroli Sep 16, 2024
7e819d4
GPU-1828: Fix table insertion: use jquery function for jquery object
guggi Oct 28, 2024
a7f5639
GPU-1828: Make sure parentElements is a jquery object
guggi Oct 28, 2024
e850a91
Merge pull request #1687 from alohaeditor/f-gpu-1828
guggi Oct 28, 2024
2efb723
GPU-1826: Fix special char insertion
guggi Oct 30, 2024
2526ab6
GPU-1826: Unwrap symbol object earlier in contextResolve
guggi Oct 30, 2024
5492418
GPU-1826: Return function if content type is not string or jquery
guggi Oct 30, 2024
36886c2
Merge pull request #1688 from alohaeditor/f-gpu-1826
guggi Oct 30, 2024
2ebcc77
Merge branch 'hotfix-2.0.x' into dev
deckdom Nov 18, 2024
47328f2
Merge branch 'dev' into f-gpu-1740
deckdom Nov 19, 2024
df5f8dd
GPU-1740: Fixed another usage of URL.canParse
deckdom Nov 21, 2024
bbdc7d7
Merge pull request #1691 from alohaeditor/f-gpu-1740
deckdom Nov 25, 2024
119233b
Fixed variable name typo
deckdom Nov 26, 2024
ba4cfd8
Fixed other not found variables
deckdom Nov 26, 2024
6ee2dec
GPU-1559: Added changelog entry
deckdom Dec 4, 2024
13d60f4
Merge branch 'hotfix-2.0.x' into dev
deckdom Dec 4, 2024
75e52e9
[Jenkins | hotfix-2.1.x] Release of version 2.1.0
GenticsDev Dec 5, 2024
7c66e5c
[Jenkins | hotfix-2.1.x] Prepare for the next development iteration (…
GenticsDev Dec 5, 2024
a67dd1e
Merge pull request #1696 from alohaeditor/hotfix-2.0.x
deckdom Dec 17, 2024
491f93c
[Jenkins | hotfix-2.1.x] Release of version 2.1.1
GenticsDev Dec 17, 2024
b024ffa
[Jenkins | hotfix-2.1.x] Prepare for the next development iteration (…
GenticsDev Dec 17, 2024
a035af2
Fixed reference to undefined variable
deckdom Dec 17, 2024
546cce7
Added changelog entry
deckdom Dec 18, 2024
27b621f
Corrected ticket number in changelog
deckdom Dec 18, 2024
89c8b80
Merge branch 'hotfix-2.0.x' into hotfix-2.1.x
deckdom Dec 18, 2024
591fd58
Merge branch 'hotfix-2.0.x' into hotfix-2.1.x
deckdom Dec 18, 2024
517927b
[Jenkins | hotfix-2.1.x] Release of version 2.1.2
GenticsDev Dec 18, 2024
952c00d
[Jenkins | hotfix-2.1.x] Prepare for the next development iteration (…
GenticsDev Dec 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
97 changes: 0 additions & 97 deletions .githooks/pre-commit

This file was deleted.

27 changes: 26 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ spec:
}

parameters {
booleanParam(name: 'checkGitCommit', defaultValue: false, description: 'If set to true, the current git revision is compared with the git revision of the last successful build. If they are equal, the build is skipped and env.BUILD_SKIPPED is set to true')
booleanParam(name: 'unitTests', defaultValue: true, description: 'Whether to run the unit tests')
booleanParam(name: 'release', defaultValue: false, description: 'Whether to perform a release')
booleanParam(name: 'releaseWithNewChangesOnly', defaultValue: true, description: 'Release: Abort the build if there are no new changes')
Expand All @@ -75,7 +76,31 @@ spec:
}

stages {
stage('Check git commit') {
when {
expression {
return Boolean.valueOf(params.checkGitCommit)
}
}

steps {
script {
if ( env.GIT_COMMIT == env.GIT_PREVIOUS_SUCCESSFUL_COMMIT ) {
echo "env.GIT_COMMIT (" + env.GIT_COMMIT + ") = env.GIT_PREVIOUS_SUCCESSFUL_COMMIT (" + env.GIT_PREVIOUS_SUCCESSFUL_COMMIT + "). Skip building."
env.BUILD_SKIPPED = "true"
} else {
echo "env.GIT_COMMIT (" + env.GIT_COMMIT + ") != env.GIT_PREVIOUS_SUCCESSFUL_COMMIT (" + env.GIT_PREVIOUS_SUCCESSFUL_COMMIT + "). Need to rebuild."
}
}
}
}

stage('Build, Deploy') {
when {
expression {
return env.BUILD_SKIPPED != "true"
}
}
steps {
githubBuildStarted()

Expand Down Expand Up @@ -138,7 +163,7 @@ spec:
stage("Publish release") {
when {
expression {
return Boolean.valueOf(release)
return Boolean.valueOf(params.release) && env.BUILD_SKIPPED != "true"
}
}

Expand Down
4 changes: 2 additions & 2 deletions bin/build-aloha-editor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ run_command() {
echo
}

run_command "Installing dependencies..." "npm install -SD --no-fund --no-audit"
run_command "Installing dependencies..." "npm install --no-fund --no-audit"
run_command "Performing linting..." "npx eslint src/lib"
run_command "Building Aloha-Editor $BUILD_PROFILE..." "npx r.js -o 'build/aloha/$BUILD_PROFILE.js'"
run_command "Building Aloha-Editor $BUILD_PROFILE..." "./node_modules/.bin/r_js -o 'build/aloha/$BUILD_PROFILE.js'"

run_command "Building Aloha-Editor $BUILD_PROFILE (full)..." "cat build/aloha/license-header.frag target/$BUILD_PROFILE/lib/require.js target/$BUILD_PROFILE/lib/vendor/jquery-3.7.0.js target/$BUILD_PROFILE/lib/aloha.js > target/$BUILD_PROFILE/lib/aloha-full.js"
run_command "Building Aloha-Editor $BUILD_PROFILE (full; minified)..." "npx uglifyjs target/$BUILD_PROFILE/lib/require.js target/$BUILD_PROFILE/lib/vendor/jquery-3.7.0.js target/$BUILD_PROFILE/lib/aloha.js --compress --mangle --source-map --output 'target/$BUILD_PROFILE/lib/aloha-full.min.js'"
Expand Down
8 changes: 4 additions & 4 deletions build/aloha/build-profile-with-common-extra-plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,16 @@
"jqueryui": 'vendor/jquery-ui-1.13.2',

// For the repository browser
'PubSub': 'vendor/pubsub/js/pubsub-unminified',
'PubSub': 'vendor/pubsub',
'Class': 'vendor/class',
'RepositoryBrowser': 'vendor/repository-browser/js/repository-browser-unminified',
'RepositoryBrowser': 'vendor/repository-browser/js/repository-browser',
'jstree': 'vendor/jquery.jstree', // Mutates jquery
'jqgrid': 'vendor/jquery.jqgrid', // Mutates jquery
'jquery-layout': 'vendor/jquery.layout', // Mutates jquery
'jqgrid-locale-en': 'vendor/grid.locale.en', // Mutates jqgrid
'jqgrid-locale-de': 'vendor/grid.locale.de', // Mutates jqgrid
'repository-browser-i18n-de': 'vendor/repository-browser/js/repository-browser-unminified',
'repository-browser-i18n-en': 'vendor/repository-browser/js/repository-browser-unminified',
'repository-browser-i18n-de': 'vendor/repository-browser/js/repository-browser',
'repository-browser-i18n-en': 'vendor/repository-browser/js/repository-browser',

// Shortcuts for all common plugins
"ui": "../plugins/common/ui/lib",
Expand Down
8 changes: 4 additions & 4 deletions build/aloha/build-profile-with-common-plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,16 @@
"jqueryui": 'vendor/jquery-ui-1.13.2',

// For the repository browser
'PubSub': 'vendor/pubsub/js/pubsub-unminified',
'PubSub': 'vendor/pubsub',
'Class': 'vendor/class',
'RepositoryBrowser': 'vendor/repository-browser/js/repository-browser-unminified',
'RepositoryBrowser': 'vendor/repository-browser/js/repository-browser',
'jstree': 'vendor/jquery.jstree', // Mutates jquery
'jqgrid': 'vendor/jquery.jqgrid', // Mutates jquery
'jquery-layout': 'vendor/jquery.layout', // Mutates jquery
'jqgrid-locale-en': 'vendor/grid.locale.en', // Mutates jqgrid
'jqgrid-locale-de': 'vendor/grid.locale.de', // Mutates jqgrid
'repository-browser-i18n-de': 'vendor/repository-browser/js/repository-browser-unminified',
'repository-browser-i18n-en': 'vendor/repository-browser/js/repository-browser-unminified',
'repository-browser-i18n-de': 'vendor/repository-browser/js/repository-browser',
'repository-browser-i18n-en': 'vendor/repository-browser/js/repository-browser',

// Shortcuts for all common plugins
"ui": "../plugins/common/ui/lib",
Expand Down
13 changes: 5 additions & 8 deletions build/aloha/build-with-plugin-separated.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,16 +267,16 @@
"jqueryui": 'vendor/jquery-ui-1.9.0.custom-aloha',

// For the repository browser
'PubSub': 'vendor/pubsub/js/pubsub-unminified',
'PubSub': 'vendor/pubsub',
'Class': 'vendor/class',
'RepositoryBrowser': 'vendor/repository-browser/js/repository-browser-unminified',
'RepositoryBrowser': 'vendor/repository-browser/js/repository-browser',
'jstree': 'vendor/jquery.jstree', // Mutates jquery
'jqgrid': 'vendor/jquery.jqgrid', // Mutates jquery
'jquery-layout': 'vendor/jquery.layout-1.3.0-rc29.14', // Mutates jquery
'jqgrid-locale-en': 'vendor/grid.locale.en', // Mutates jqgrid
'jqgrid-locale-de': 'vendor/grid.locale.de', // Mutates jqgrid
'repository-browser-i18n-de': 'vendor/repository-browser/js/repository-browser-unminified',
'repository-browser-i18n-en': 'vendor/repository-browser/js/repository-browser-unminified',
'repository-browser-i18n-de': 'vendor/repository-browser/js/repository-browser',
'repository-browser-i18n-en': 'vendor/repository-browser/js/repository-browser',

// Shortcuts for all common plugins
"ui": "../plugins/common/ui/lib",
Expand Down Expand Up @@ -428,12 +428,9 @@
'jquery',
'i18n',

'util/json2',
'util/class',
'util/lang',
'util/range',
'util/maps',
'util/maps',
'util/dom',
'util/position',
'util/trees',
Expand All @@ -456,7 +453,7 @@
'aloha/nls/i18n',

'vendor/class',
'vendor/pubsub/js/pubsub',
'vendor/pubsub',
'vendor/amplify.store',
'vendor/sanitize'
]
Expand Down
14 changes: 0 additions & 14 deletions build/aloha/copy-dependencies.js

This file was deleted.

11 changes: 11 additions & 0 deletions build/changelog/entries/2024/12/12550.GPU-1559.enhancement
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Utility functions and features which have native browser implementations have been removed:
* @aloha/ecma5shims@
* @util/arrays@
* @util/json2@
* @util/maps@

Dependencies like that have also been removed:
* @ierange-m2@
* @json2@
* @amplify-store@
* @sanitize@
1 change: 1 addition & 0 deletions build/changelog/entries/2024/12/12552.SUP-17927.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed access to invalid variables due to merge conflicts
8 changes: 8 additions & 0 deletions build/changelog/mappings/2.1.0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"version": "2.1.0",
"date": "05.12.2024",
"changeLogEntryFileNames": [
"12550.GPU-1559.enhancement"
],
"genericProperties": {}
}
8 changes: 8 additions & 0 deletions build/changelog/mappings/2.1.1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"version": "2.1.1",
"date": "17.12.2024",
"changeLogEntryFileNames": [
"12551.SUP-17877.bugfix"
],
"genericProperties": {}
}
8 changes: 8 additions & 0 deletions build/changelog/mappings/2.1.2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"version": "2.1.2",
"date": "18.12.2024",
"changeLogEntryFileNames": [
"12552.SUP-17927.bugfix"
],
"genericProperties": {}
}
Loading