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

Adding more NodeModules to the Automatic build process #1681

Open
3 of 12 tasks
NiHoffmann opened this issue Jul 16, 2024 · 1 comment
Open
3 of 12 tasks

Adding more NodeModules to the Automatic build process #1681

NiHoffmann opened this issue Jul 16, 2024 · 1 comment
Labels
enhancement New feature or request frontend

Comments

@NiHoffmann
Copy link
Collaborator

NiHoffmann commented Jul 16, 2024

With the new Source Code Editor (Issue #1665) a way to add Node Modules to the automatic build process will be introduces.

More modules have to be added to this build process.

Affected Modules can be found in the static resources in the libs folder, these will no longer have to be copied over by hand (if there is a npm module available).

They may be add them to the nodePaths variable (gulpfile.js), as well as registered as npm module if not already present.

nodePaths: [
        <....>
nodePaths: [
        {
            moduleName: '<name_for_libs_folder>',
            bases: [
                {
                    base: '<relative_path_to_module_base>,
                    src: [
                        {
                            folderSrc: '<relative_path_from_base_to_src_folder>',
                            folderDest: '<relative_path_froM_module_in_libs_to_dest>',
                            files: [<files_to_be_copied>],
                        },
                    ],
                },
            ],
        },
        <....>
    ],

for additional information on how to add modules read the comments.

TODO:

  • ace
  • bootstrap
  • dapjs
  • enjoyHint
  • huebee
  • jquery
  • neuralnetwork
  • slick
  • socket.io
  • sound
  • thymip
  • webots

Blockly will mostlikely not be part of this process.

@NiHoffmann
Copy link
Collaborator Author

NiHoffmann commented Sep 4, 2024

An Example for this (adding bootstrap and dapjs) and some suggested changes can be foud at feature/Issue1681.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request frontend
Projects
None yet
Development

No branches or pull requests

1 participant