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

Breaking/tao 4814 atomic bundles #1842

Merged
merged 23 commits into from
Oct 24, 2018
Merged

Conversation

krampstudio
Copy link
Contributor

@krampstudio krampstudio commented Oct 16, 2018

Migrate TAO to the atomic bundles process

Requires

  • Feature/tao 4814 bundler task grunt-tao-bundle#1

  • use the new bundler library

  • use a unique configuration for the AMD build and test views/build/config/requirejs.build.json

  • update the router to load bundles (and test it by the way)

  • update the AMD loader tag to always load the vendor module

  • update the tao build config

Using the PR you should be able to run build the bundles for the tao extension :

cd views/build
npm i
npx grunt taobundle

* - execute the start method of those controllers
* @param {String} url - the
*/
dispatchUrl : function dispatchUrl(url){
Copy link

Choose a reason for hiding this comment

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

Function dispatchUrl has 69 lines of code (exceeds 25 allowed). Consider refactoring.

if(moduleRoutes.deps){
dependencies = dependencies.concat(moduleRoutes.deps);
}
if(moduleRoutes.css){
Copy link

Choose a reason for hiding this comment

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

Similar blocks of code found in 2 locations. Consider refactoring.

if(action.deps){
dependencies = dependencies.concat(action.deps);
}
if(action.css){
Copy link

Choose a reason for hiding this comment

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

Similar blocks of code found in 2 locations. Consider refactoring.

@codeclimate
Copy link

codeclimate bot commented Oct 16, 2018

Code Climate has analyzed commit 8443356 and detected 3 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 1
Duplication 2

View more on Code Climate.

This was referenced Oct 16, 2018
@jsconan
Copy link
Contributor

jsconan commented Oct 24, 2018

all good! 👍

@jsconan jsconan merged commit 9303c3a into develop Oct 24, 2018
@jsconan jsconan deleted the breaking/TAO-4814_atomic-bundles branch October 24, 2018 14:32
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

Successfully merging this pull request may close these issues.

None yet

3 participants