This issue has been created
 
 
CLI / cid:jira-generated-image-avatar-c72023fc-7123-4f71-a65b-fe4a02580d4d CLI-15 Open

Add per language project in synced dir

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-90709bf3-8759-48d6-9c0d-cc327e796394 Josué Tille created this issue on 01/Oct/24 11:21
 
Summary: Add per language project in synced dir
Issue Type: cid:jira-generated-image-avatar-c72023fc-7123-4f71-a65b-fe4a02580d4d New Feature
Assignee: Unassigned
Created: 01/Oct/24 11:21
Priority: cid:jira-generated-image-static-major-3b9dbed1-dbb2-4ab2-ba93-749159bdd5d0 Major
Reporter: Josué Tille
Description:

Currently in the synced directory we only provide hierarchy in the XFF.

This is to create a directory for each language. By example in java directory we will have all code related to java (so groovy and velocity scripts). For javascript it will be the same.

Here are an example of what I think we can do:

├── css
│   └── example
│       └── WebHome
│           └── StyleSheetExtension_0.css
├── java
│   ├── pom.xml
│   └── src
│       └── main
│           ├── java
│           │   └── org
│           │       └── example
│           │           └── WebHome
│           │               ├── ContentMacroGroovy_0.groovy
│           │               └── ScriptComponent_0.groovy
│           └── resources
│               └── example
│                   └── WebHome
│                       ├── ContentMacroVelocity_0.vm
│                       └── SkinFileOverride_0.vm
├── js
│   └── example
│       └── WebHome
│           └── JavaScriptExtension_0.js
└── xff
    └── spaces
        └── example
            └── pages
                └── WebHome
                    ├── content
                    └── objects
                        ├── XWiki.JavaScriptExtension
                        │   └── 0
                        │       └── properties
                        │           ├── cache
                        │           ├── code
                        │           ├── code.js
                        │           ├── name
                        │           ├── parse
                        │           └── use
                        ├── XWiki.ScriptComponentClass
                        │   └── 0
                        │       └── properties
                        │           ├── scope
                        │           ├── script_content
                        │           ├── script_content.groovy
                        │           └── script_language
                        ├── XWiki.StyleSheetExtension
                        │   └── 0
                        │       └── properties
                        │           ├── cache
                        │           ├── code
                        │           ├── code.less
                        │           ├── contentType
                        │           ├── name
                        │           ├── parse
                        │           └── use
                        └── XWiki.XWikiSkinFileOverrideClass
                            ├── content
                            ├── content.vm
                            └── path

So each script which are in page (in macro) or in object are provided in specific par language directory.

This have several advantages:

  • We can have a specific hierarchy for each specific project language, so the IDE can have the autocompletion by default.
  • The hierarchy is less complex and so we can access more quickly to each file.

Note for javascript and css code the hierarchy can be improved, I don't really know what is the recommended hierarchy now.