Skip to content

Commit

Permalink
Fix #189 Upgrade to new lib-static
Browse files Browse the repository at this point in the history
  • Loading branch information
ComLock committed Oct 29, 2024
1 parent 79c54a1 commit 4d9bff3
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ dependencies {
// ─────────────────────────────────────────────────────────────────────────
// https://repo.enonic.com/service/rest/repository/browse/public/com/enonic/lib/

// https://market.enonic.com/vendors/enonic/lib-asset
// Remember to uncomment compilerOptions.paths['/lib/enonic/asset'] for types in src/main/resources/tsconfig.json
// include 'com.enonic.lib:lib-asset:1.0.0'

// https://market.enonic.com/vendors/enonic/cache-lib
// include 'com.enonic.lib:lib-cache:2.2.0'

Expand All @@ -59,7 +63,8 @@ dependencies {
// include 'com.enonic.lib:lib-router:3.1.0'

// https://market.enonic.com/vendors/enonic/static-asset-lib
// include 'com.enonic.lib:lib-static:1.0.3'
// Remember to uncomment compilerOptions.paths['/lib/enonic/static'] for types in src/main/resources/tsconfig.json
// include 'com.enonic.lib:lib-static:2.0.0'

// https://market.enonic.com/vendors/enonic/text-encoding
// include 'com.enonic.lib:lib-text-encoding:2.1.1'
Expand Down
22 changes: 22 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"@enonic-types/core": "^7.14.4",
"@enonic-types/global": "^7.14.4",
"@enonic-types/lib-admin": "^7.14.4",
"@enonic-types/lib-asset": "^1.0.0",
"@enonic-types/lib-auth": "^7.14.4",
"@enonic-types/lib-cluster": "^7.14.4",
"@enonic-types/lib-common": "^7.14.4",
Expand All @@ -18,6 +19,7 @@
"@enonic-types/lib-project": "^7.14.4",
"@enonic-types/lib-repo": "^7.14.4",
"@enonic-types/lib-scheduler": "^7.14.4",
"@enonic-types/lib-static": "^2.0.0",
"@enonic-types/lib-task": "^7.14.4",
"@enonic-types/lib-value": "^7.14.4",
"@enonic-types/lib-websocket": "^7.14.4",
Expand Down
6 changes: 6 additions & 0 deletions src/main/resources/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@
// A series of entries which re-map imports to lookup locations relative
// to the baseUrl if set, or to the tsconfig file itself otherwise.
"paths": {
// Uncomment this if lib-asset is included in ../../../build.gradle
// "/lib/enonic/asset": ["../../../node_modules/@enonic-types/lib-asset"],

// Uncomment this if lib-static is included in ../../../build.gradle
// "/lib/enonic/static": ["../../../node_modules/@enonic-types/lib-static"],

"/lib/xp/*": ["../../../node_modules/@enonic-types/lib-*"],
"/*": ["./*"],
},
Expand Down

0 comments on commit 4d9bff3

Please sign in to comment.