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

Use webpack #826

Merged
merged 16 commits into from
Nov 29, 2018
Merged

Use webpack #826

merged 16 commits into from
Nov 29, 2018

Conversation

rodfersou
Copy link
Member

@rodfersou rodfersou commented Sep 17, 2018

JS

  • Rewrite Layout Manager to fit webpack
  • Rewrite Compose code to fit webpack
  • Rewrite Content Chooser to fit webpack
  • Rewrite Select layout preview
  • Reorganize tile code into individual files
  • Add upgrade step to remove JS registry
  • Remove dependency of collective.bootstrap and add boostrap javascript into webpack

CSS

  • Add upgrade step to remove CSS registry

Viewlet

  • Move static resources to a viewlet

General

  • Fix tests

@idgserpro
Copy link
Member

idgserpro commented Sep 24, 2018

Issues that may be able to be closed when this PR is merged:

@rodfersou rodfersou force-pushed the use-webpack branch 4 times, most recently from 29f6753 to 880b136 Compare September 28, 2018 15:34
@rodfersou
Copy link
Member Author

I run into this issue in our webpack recipe collective/sc.recipe.staticresources#44

IIRC already found one method to fix it, but don't remember in what project used it; also don't have a glue on what is the better solution for this..

Can someone help me find how to fix this?

@hvelarde
Copy link
Member

@rodfersou just add another icon for it.

@rodfersou rodfersou force-pushed the use-webpack branch 3 times, most recently from 94b2ca7 to 685afdc Compare September 29, 2018 00:34
@rodfersou
Copy link
Member Author

At this point the code from this PR is working, just need to fine tune everything to merge.

@rodfersou
Copy link
Member Author

@hvelarde I have a problem here, RF tests don't run locally for this package; it just open the firefox and freeze without navigate to any page... after wait a little gives a timeout.
The strange thing is that it runs fine in brasil.gov.tiles package, and all the versions of packages and firefox looks the same in both packages here.
Need help.

@idgserpro
Copy link
Member

@rodfersou check if the selenium package is the same.

@rodfersou
Copy link
Member Author

@idgserpro yes, it is..

@rodfersou
Copy link
Member Author

Maybe now it is better to don't touch bootstrap

@rodfersou rodfersou force-pushed the use-webpack branch 4 times, most recently from ffc0465 to d2b0776 Compare October 1, 2018 18:34
@rodfersou
Copy link
Member Author

@hvelarde green

@hvelarde
Copy link
Member

@agnogueira @claytonc @idgserpro this seems to be ready, do you mind to help me with a quick review?

@@ -26,14 +27,10 @@ eggs = z3c.checkversions [buildout]
recipe = plone.recipe.codeanalysis[recommended]
directory = ${buildout:directory}/src/collective/cover
clean-lines = True
clean-lines-exclude = ${buildout:directory}/src/collective/cover/static/js/vendor/
csslint = True
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't check be done in the webpack folder?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO, it doesn't make sense to run the linters on code generated by webpack.

debug-statements = True
flake8-ignore = B901,D001,E501,P001,T000
flake8-max-complexity = 12
jshint = True
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't check be done in the webpack folder?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO, it doesn't make sense to run the linters on code generated by webpack.

@hvelarde hvelarde merged commit fa35c56 into master Nov 29, 2018
@hvelarde hvelarde deleted the use-webpack branch November 29, 2018 17:58
@rodfersou
Copy link
Member Author

wow! finally! 👏

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

Successfully merging this pull request may close these issues.

3 participants