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

Copy kopytko_modules to another folder #64

Open
alexkn1 opened this issue Mar 29, 2023 · 6 comments
Open

Copy kopytko_modules to another folder #64

alexkn1 opened this issue Mar 29, 2023 · 6 comments

Comments

@alexkn1
Copy link

alexkn1 commented Mar 29, 2023

Hi,

I am looking for a way to copy the framework kopytko_modules to another folder other than "/components".

So when I ' import /path they are outside the component directory.

Thank You!!

@pawelhertman
Copy link
Contributor

Hi @alexkn1, so far Kopytko Modules supports only copying /components and /source directories to have control over not importing unnecessary files like images from other packages. However, in the future, it would be nice to have configurable paths of assets to import.

@alexkn1
Copy link
Author

alexkn1 commented Apr 3, 2023

Hi @alexkn1, so far Kopytko Modules supports only copying /components and /source directories to have control over not importing unnecessary files like images from other packages. However, in the future, it would be nice to have configurable paths of assets to import.

Can you guide me where I can modify the code to change the path?

So instead of


/Components/kopytko_modules/{framework}

To /kopytko_modules/{framework}

Thanks

@pawelhertman
Copy link
Contributor

I'm afraid it would be a challenging change. Anyway, what would you like to achieve? According to https://developer.roku.com/en-gb/docs/developer-program/core-concepts/developing-scenegraph-applications.md, e.g. components have to be under /components directory

@alexkn1
Copy link
Author

alexkn1 commented Apr 6, 2023

I'm afraid it would be a challenging change. Anyway, what would you like to achieve? According to https://developer.roku.com/en-gb/docs/developer-program/core-concepts/developing-scenegraph-applications.md, e.g. components have to be under /components directory

What about /source directory?

I am just trying to organize framework vs my own ones to a different folder.

Thanks!

@pawelhertman
Copy link
Contributor

I'm sorry, I'm not sure what you're asking about regarding the source directory.

To help you, I need more details. What kind of organisation do you need that kopytko modules files imported to the {components|source}/kopytko_modules/ directory doesn't suit you?

@bchelkowski
Copy link
Member

I'm afraid it would be a challenging change. Anyway, what would you like to achieve? According to https://developer.roku.com/en-gb/docs/developer-program/core-concepts/developing-scenegraph-applications.md, e.g. components have to be under /components directory

What about /source directory?

I am just trying to organize framework vs my own ones to a different folder.

Thanks!

Files from imported kopytko_modules (external ones, npm packages) are moved to the same directories (component/source) in the project.
So If the kopytko_module (npm package) has directory components all files will be copied to your project's component dir, and if it has a source directory, all files from there will be copied to your project's source dir.

When it comes to the files imported locally in the project, those files won't be moved. All your project files will be copied as they are, you can only remove or move them using plugins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants