Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
516717b
add missing dev deps
ComLock Sep 11, 2023
7492431
Replace webpack with lessc, postcss and tsup
ComLock Sep 11, 2023
b0b323c
Added npmCheck
ComLock Sep 11, 2023
7f2fc85
Fix for source maps
alansemenov Sep 12, 2023
236edb3
Replace webpack with lessc, postcss and tsup
ComLock Sep 11, 2023
403623f
wip #1817 jquery problems
ComLock Sep 13, 2023
ad541da
wip #1817 webpack specific require.context()
ComLock Sep 14, 2023
4a40ceb
wip #1817 commiting to discuss something
ComLock Sep 18, 2023
ee1c594
wip 1817 graphql problems
ComLock Sep 18, 2023
cd83cf4
1817 more typescript
ComLock Sep 18, 2023
cbb8fb0
constants
ComLock Sep 18, 2023
15fc3f6
1817 everything seems to work
ComLock Sep 19, 2023
0c4e215
Don't build lib, allow code splitting to do it's magic
ComLock Sep 19, 2023
8ad124b
bundle always true for server
ComLock Sep 19, 2023
d908a1d
upgrade node modules
ComLock Sep 19, 2023
9932634
Correct line numbers in source maps
ComLock Sep 19, 2023
79b5567
Cleanup after determining what caused sourcemaps to fail
ComLock Sep 20, 2023
ac04591
Converted tests to typescript
ComLock Sep 20, 2023
0f4f0d2
Finally tests are running again
ComLock Sep 20, 2023
9fd2cb0
Use version 4.8.0-3266-SNAPSHOT of lib-admin-ui
alansemenov Sep 21, 2023
51266c2
Java 11 in build.gradle
alansemenov Sep 21, 2023
5cb2108
Java 11 in build github action
alansemenov Sep 21, 2023
68fa001
lint
ComLock Sep 21, 2023
c09abbd
Fix Linter errors
alansemenov Sep 21, 2023
d6fea2f
Fix failing tests
alansemenov Sep 21, 2023
c9991cd
Specify target for static assets
alansemenov Sep 21, 2023
33869b0
Added missing authLib methods
alansemenov Sep 21, 2023
39431d0
cryptoWorkerUrl
ComLock Sep 22, 2023
ebfca70
fnutts
ComLock Sep 22, 2023
4ff55d8
not a module
ComLock Sep 22, 2023
4ed2b1c
Fix for CryptoWorker
alansemenov Sep 22, 2023
c1c62ef
ui-tests - try/catch errors
Sep 25, 2023
f86ad3a
Remove jquery-ui from dependencies
alansemenov Sep 25, 2023
1272ce0
Avoid class renaming in the bundle #1847
alansemenov Oct 4, 2023
cf1723f
Cleanup
alansemenov Oct 4, 2023
f85c67e
Updated package.json
alansemenov Oct 5, 2023
a2ce321
jquery-ui-dist
ComLock Oct 6, 2023
bb6ee4c
jquery-ui-dist
ComLock Oct 9, 2023
a7899bd
Updated package.json
alansemenov Oct 16, 2023
8b49e67
Updated package-lock.json
alansemenov Oct 18, 2023
72aa3c9
Use @enonic/legacy-slickgrid
ComLock Nov 1, 2023
6cd1fb9
Use @enonic/legacy-slickgrid from npm, not file:
ComLock Nov 1, 2023
8fc6dc1
With the new launcher Q can be a global
ComLock Nov 8, 2023
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
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ indent_style = space

[{*.less,package.json,*.yml}]
indent_size = 2

[tsup/*.ts]
indent_size = 4
indent_style = tab
8 changes: 6 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
module.exports = {
extends: '@enonic/eslint-config',
parserOptions: {
project: './tsconfig.json',
tsconfigRootDir: __dirname,
project: [
'./src/main/resources/tsconfig.json',
'./src/main/resources/_static/tsconfig.json',
'./src/test/resources/tsconfig.json',
],
// tsconfigRootDir: __dirname,
},
'rules': {
'new-cap': ['warn', {'capIsNewExceptions': ['Q']}],
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ jobs:
with:
ref: ${{ github.event.client_payload.ref || github.ref }}

- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'temurin'

- uses: actions/cache@v3
with:
path: |
Expand Down
29 changes: 0 additions & 29 deletions .swcrc

This file was deleted.

70 changes: 57 additions & 13 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,13 @@ dependencies {
include "com.enonic.xp:lib-node:${xpVersion}"
include "com.enonic.xp:lib-auth:${xpVersion}"
include "com.enonic.xp:lib-i18n:${xpVersion}"
include "com.enonic.xp:lib-io:${xpVersion}"
include "com.enonic.lib:lib-admin-ui:${libAdminUiVersion}"
devResources "com.enonic.lib:lib-admin-ui:${libAdminUiVersion}"
include "com.enonic.lib:lib-graphql:2.0.1"
include "com.enonic.lib:lib-graphql:2.1.0"
include "com.enonic.lib:lib-mustache:2.1.0"
include 'com.enonic.lib:lib-router:3.1.0'
include 'com.enonic.lib:lib-static:1.0.3'

testImplementation "com.enonic.xp:testing:${xpVersion}"
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.1'
Expand All @@ -62,42 +65,83 @@ repositories {
xp.enonicRepo( 'dev' )
}

tasks.register('npmCheck', NpmTask) {
dependsOn( 'npmInstall' )
args = [
'run',
'check:types'
]
environment = [
'FORCE_COLOR': 'true',
]
}

tasks.withType(Copy).configureEach {
includeEmptyDirs = false
}

tasks.register('lint', NpmTask) {
dependsOn ( 'npmInstall' )
group "verification"
args = ['run', 'lint']
outputs.upToDateWhen { false }
}

check.dependsOn lint
check.dependsOn( 'lint', 'npmCheck' )

tasks.register('webpack', NpmTask) {
tasks.register('npmBuild', NpmTask) {
dependsOn( 'npmInstall' )
environment = ['NODE_ENV': nodeEnvironment()]
environment = [
'FORCE_COLOR': 'true',
'LOG_LEVEL_FROM_GRADLE': gradle.startParameter.logLevel.toString(),
'NODE_ENV': nodeEnvironment()
]
description = 'Build UI resources (ts, css, etc).'
args = ['run', 'build']
args = ['run', '--silent', 'build']
inputs.dir '.xp/dev'
inputs.dir 'src/main/resources/assets'
inputs.file 'webpack.config.js'
inputs.dir 'src/main/resources'
outputs.dir "$buildDir/build/resources/main"
inputs.file 'tsup.config.ts'
}

jar {
exclude 'assets/**/*.ts'
exclude 'assets/**/*.less'
exclude 'assets/styles/*.js'
tasks.register('npmBuildTests', NpmTask) {
dependsOn( 'npmBuild', 'processTestResources' )
environment = [
'FORCE_COLOR': 'true',
'LOG_LEVEL_FROM_GRADLE': gradle.startParameter.logLevel.toString(),
'NODE_ENV': nodeEnvironment()
]
description = 'Build tests'
args = ['run', '--silent', 'build:tests']
inputs.dir 'src/test/resources'
outputs.dir "$buildDir/build/resources/test"
inputs.file 'tsup.config.ts'
}

processResources {
exclude '**/*.ts'
exclude 'assets/**/*.less' // lessc and postcss will handle this
exclude 'assets/**/*.woff' // postcss-url will copy
exclude 'assets/**/*.woff2' // postcss-url will copy

if ( isProd() )
{
exclude 'assets/**/*.map'
}
}

outputs.dir "$buildDir/resources/main"
processTestResources {
exclude '**/*.ts'
}

dependsOn( 'webpack', 'javadoc', 'test' )
jar {
outputs.dir "$buildDir/resources/main"
dependsOn( 'npmBuild', 'javadoc', 'test' )
}

test {
dependsOn( 'npmBuildTests' )

useJUnitPlatform()
systemProperty 'java.awt.headless', 'true'
jvmArgs '-noverify', '-XX:TieredStopAtLevel=1'
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
# Project settings
#
version=7.14.0-SNAPSHOT
libAdminUiVersion=4.9.0-SNAPSHOT
libAdminUiVersion=4.9.0-3266-SNAPSHOT
systemProp.org.gradle.internal.http.connectionTimeout=120000
systemProp.org.gradle.internal.http.socketTimeout=120000
2 changes: 1 addition & 1 deletion gradle/node.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply plugin: 'com.github.node-gradle.node'

node {
version = '18.17.1'
version = '18.18.1'
download = true
}

Expand Down
Loading