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

name space and resources directory #575

Closed
oetiker opened this issue Oct 7, 2019 · 6 comments

Comments

@oetiker
Copy link
Member

commented Oct 7, 2019

If I try to use the package 'pkg.bla' in my project 'pkg' and 'pkg.bla' have resources in 'pkg/bla' then the resources from 'pkg/bla' will not get copied. Only the ones from the 'pkg' directory of the main project.

the real live problem is https://github.com/ITISFoundation/qx-osparc-theme (name space 'osparc.theme') which does not play well with the main project which has the namespace 'osparc'.

the theme package contains fonts which do not get copied.

@johnspackman

This comment has been minimized.

Copy link
Member

commented Oct 7, 2019

i'm confused - do you mean that you have an app which has resource/pkg/bla and a library which has resource/pkg/bla but only the app's resource/pkg/bla is copied?

@johnspackman

This comment has been minimized.

Copy link
Member

commented Oct 7, 2019

it sounds like it would be easy to put together working example, please could you or @ignapas upload something? Or if it's the osparc open source, just some steps to checkout and reproduce would be fine

@ignapas

This comment has been minimized.

Copy link

commented Oct 7, 2019

I am preparing an example today or tomorrow the latest. Thanks John

@ignapas

This comment has been minimized.

Copy link

commented Oct 8, 2019

/project $ qx --version
1.0.0-beta.20190924-0742

This is the app resources folder:

source/resource/osparc
├── gridsterjs
│   ├── jquery-3.3.1.min.js
│   ├── jquery.gridster-0.7.0.min.css
│   ├── jquery.gridster-0.7.0.min.js
│   ├── jquery.gridster.demo.css
│   ├── jquery.gridster.osparc.css
│   └── jquery.gridster.with-extras-0.7.0.min.js
├── img0.jpg
├── img10.jpg
├── img11.jpg
├── img12.jpg
├── img13.jpg
├── img14.jpg
├── img15.jpg
├── img16.jpg
├── img17.jpg
├── img18.jpg
├── img19.jpg
├── img1.jpg
├── img20.jpg
├── img21.jpg
├── img22.jpg
├── img23.jpg
├── img24.jpg
├── img25.jpg
├── img2.jpg
├── img3.jpg
├── img4.jpg
├── img5.jpg
├── img6.jpg
├── img7.jpg
├── img8.jpg
├── img9.jpg
├── itis-white.png
├── loading
│   ├── loader.html
│   ├── osparc-icon-black-S.png
│   └── ProgressLoaderWidgetOsparc.css
├── loading.gif
├── modelerMockup.png
├── nih-419.png
├── osparc-black.png
├── osparc-black.svg
├── osparc-red.svg
├── osparc-white.png
├── osparc-white-small.png
├── osparc-white.svg
├── rat-light.png
├── rat.png
├── screenshot_container.png
├── screenshot_dash-plot.png
├── screenshot_file-picker.png
├── screenshot_form.png
├── screenshot_grid.png
├── screenshot_modeler.png
├── screenshot_notebook.png
├── screenshot_postpro.png
├── screenshot_voxels.png
├── screenshot_workbench.png
├── test.png
├── yoonsun-light.png
├── yoonsun.png
└── z43-color.ico

2 directories, 61 files

This is the package's resources folder:

qx_packages/ITISFoundation_qx-osparc-theme_v0_4_13/source/resource
├── osparc
│   └── theme
│       └── font
│           ├── LICENSE.txt
│           ├── README-opensans.txt
│           ├── roboto-mono-v6-latin_latin-ext-700.eot
│           ├── roboto-mono-v6-latin_latin-ext-700italic.eot
│           ├── roboto-mono-v6-latin_latin-ext-700italic.svg
│           ├── roboto-mono-v6-latin_latin-ext-700italic.ttf
│           ├── roboto-mono-v6-latin_latin-ext-700italic.woff
│           ├── roboto-mono-v6-latin_latin-ext-700italic.woff2
│           ├── roboto-mono-v6-latin_latin-ext-700.svg
│           ├── roboto-mono-v6-latin_latin-ext-700.ttf
│           ├── roboto-mono-v6-latin_latin-ext-700.woff
│           ├── roboto-mono-v6-latin_latin-ext-700.woff2
│           ├── roboto-mono-v6-latin_latin-ext-italic.eot
│           ├── roboto-mono-v6-latin_latin-ext-italic.svg
│           ├── roboto-mono-v6-latin_latin-ext-italic.ttf
│           ├── roboto-mono-v6-latin_latin-ext-italic.woff
│           ├── roboto-mono-v6-latin_latin-ext-italic.woff2
│           ├── roboto-mono-v6-latin_latin-ext-regular.eot
│           ├── roboto-mono-v6-latin_latin-ext-regular.svg
│           ├── roboto-mono-v6-latin_latin-ext-regular.ttf
│           ├── roboto-mono-v6-latin_latin-ext-regular.woff
│           ├── roboto-mono-v6-latin_latin-ext-regular.woff2
│           ├── roboto-v18-latin_latin-ext-700.eot
│           ├── roboto-v18-latin_latin-ext-700italic.eot
│           ├── roboto-v18-latin_latin-ext-700italic.svg
│           ├── roboto-v18-latin_latin-ext-700italic.ttf
│           ├── roboto-v18-latin_latin-ext-700italic.woff
│           ├── roboto-v18-latin_latin-ext-700italic.woff2
│           ├── roboto-v18-latin_latin-ext-700.svg
│           ├── roboto-v18-latin_latin-ext-700.ttf
│           ├── roboto-v18-latin_latin-ext-700.woff
│           ├── roboto-v18-latin_latin-ext-700.woff2
│           ├── roboto-v18-latin_latin-ext-italic.eot
│           ├── roboto-v18-latin_latin-ext-italic.svg
│           ├── roboto-v18-latin_latin-ext-italic.ttf
│           ├── roboto-v18-latin_latin-ext-italic.woff
│           ├── roboto-v18-latin_latin-ext-italic.woff2
│           ├── roboto-v18-latin_latin-ext-regular.eot
│           ├── roboto-v18-latin_latin-ext-regular.svg
│           ├── roboto-v18-latin_latin-ext-regular.ttf
│           ├── roboto-v18-latin_latin-ext-regular.woff
│           └── roboto-v18-latin_latin-ext-regular.woff2
└── widgetbrowser
    ├── blank.html
    ├── fo_tester.swf
    ├── loading66.gif
    ├── people.json
    ├── test.png
    └── tree.json

4 directories, 48 files

And his is how it the output folder looks:

source-output/resource/osparc
└── theme
    └── font
        ├── LICENSE.txt
        ├── README-opensans.txt
        ├── roboto-mono-v6-latin_latin-ext-700.eot
        ├── roboto-mono-v6-latin_latin-ext-700italic.eot
        ├── roboto-mono-v6-latin_latin-ext-700italic.svg
        ├── roboto-mono-v6-latin_latin-ext-700italic.ttf
        ├── roboto-mono-v6-latin_latin-ext-700italic.woff
        ├── roboto-mono-v6-latin_latin-ext-700italic.woff2
        ├── roboto-mono-v6-latin_latin-ext-700.svg
        ├── roboto-mono-v6-latin_latin-ext-700.ttf
        ├── roboto-mono-v6-latin_latin-ext-700.woff
        ├── roboto-mono-v6-latin_latin-ext-700.woff2
        ├── roboto-mono-v6-latin_latin-ext-italic.eot
        ├── roboto-mono-v6-latin_latin-ext-italic.svg
        ├── roboto-mono-v6-latin_latin-ext-italic.ttf
        ├── roboto-mono-v6-latin_latin-ext-italic.woff
        ├── roboto-mono-v6-latin_latin-ext-italic.woff2
        ├── roboto-mono-v6-latin_latin-ext-regular.eot
        ├── roboto-mono-v6-latin_latin-ext-regular.svg
        ├── roboto-mono-v6-latin_latin-ext-regular.ttf
        ├── roboto-mono-v6-latin_latin-ext-regular.woff
        ├── roboto-mono-v6-latin_latin-ext-regular.woff2
        ├── roboto-v18-latin_latin-ext-700.eot
        ├── roboto-v18-latin_latin-ext-700italic.eot
        ├── roboto-v18-latin_latin-ext-700italic.svg
        ├── roboto-v18-latin_latin-ext-700italic.ttf
        ├── roboto-v18-latin_latin-ext-700italic.woff
        ├── roboto-v18-latin_latin-ext-700italic.woff2
        ├── roboto-v18-latin_latin-ext-700.svg
        ├── roboto-v18-latin_latin-ext-700.ttf
        ├── roboto-v18-latin_latin-ext-700.woff
        ├── roboto-v18-latin_latin-ext-700.woff2
        ├── roboto-v18-latin_latin-ext-italic.eot
        ├── roboto-v18-latin_latin-ext-italic.svg
        ├── roboto-v18-latin_latin-ext-italic.ttf
        ├── roboto-v18-latin_latin-ext-italic.woff
        ├── roboto-v18-latin_latin-ext-italic.woff2
        ├── roboto-v18-latin_latin-ext-regular.eot
        ├── roboto-v18-latin_latin-ext-regular.svg
        ├── roboto-v18-latin_latin-ext-regular.ttf
        ├── roboto-v18-latin_latin-ext-regular.woff
        └── roboto-v18-latin_latin-ext-regular.woff2

2 directories, 42 files

You see only those resources from the theme are present while the ones from the app are missing. This is sometimes working, sometime not. Actually today I coudn't make it work...

@ignapas

This comment has been minimized.

Copy link

commented Oct 8, 2019

If I try to use the package 'pkg.bla' in my project 'pkg' and 'pkg.bla' have resources in 'pkg/bla' then the resources from 'pkg/bla' will not get copied. Only the ones from the 'pkg' directory of the main project.

the real live problem is https://github.com/ITISFoundation/qx-osparc-theme (name space 'osparc.theme') which does not play well with the main project which has the namespace 'osparc'.

the theme package contains fonts which do not get copied.

right now it is only the fonts which get copied and all images are gone

@ignapas

This comment has been minimized.

johnspackman added a commit to johnspackman/qooxdoo-compiler that referenced this issue Oct 9, 2019
@hkollmann hkollmann closed this in 38704e5 Oct 10, 2019
johnspackman added a commit to johnspackman/qooxdoo-compiler that referenced this issue Oct 14, 2019
* commit '2b00a827c55bf2d06cc30e0720dbc7dfb50bf23f':
  Update push-to-experimental.yml
  run npm audit fix (qooxdoo#579)
  fix for qooxdoo#570 (qooxdoo#578)
  fixes qooxdoo#575 (qooxdoo#576)
  fixes a bug in parsing jsdoc (qooxdoo#574)
  Fix install of local path (qooxdoo#573)
  Fix for qooxdoo#524 (qooxdoo#571)
  fix for qooxdoo#519
  [ci skip] fix type
  [ci skip] working on actions
  [ci skip] Working on action
  Update push-to-experimental.yml
  Update push-to-experimental.yml
  Update push-to-experimental.yml
  Update push-to-experimental.yml
  Update push-to-experimental.yml
  Update push-to-experimental.yml
  Action for outgoing web hook to qooxdoo/experimental
johnspackman added a commit to johnspackman/qooxdoo-compiler that referenced this issue Oct 14, 2019
johnspackman added a commit to johnspackman/qooxdoo-compiler that referenced this issue Oct 14, 2019
* uglify-sequencing:
  no message
  Update push-to-experimental.yml
  run npm audit fix (qooxdoo#579)
  fix for qooxdoo#570 (qooxdoo#578)
  fixes qooxdoo#575 (qooxdoo#576)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.