Quantcast
Viewing all articles
Browse latest Browse all 3491

Application build is failing in complex packaging case - Pull request has failing steal test case


When "steal.paths" are in index.html file application build is failing
- build command "./js /Users/aballa/my/projects/steal/test/complexpackaging/com.my.common/scripts/build.js" fails with below error

  1. OUTPUT
  2. aballa-macbook-pro:projects aballa$ ./js /Users/aballa/my/projects/steal/test/complexpackaging/com.my.common/scripts/build.js 
  3. Building to steal/test/complexpackaging/common/
  4. opening steal/test/complexpackaging/com.my.common/resources/index.html
  5. adding dependencies
  6. + stealconfig.js
  7. + common/my/init.js

  8. stealing common/my/common.js
  9. + common/my/common.js
  10. + common/my/common-1.js
  11. + common/my/common-2.js
  12. + common/my/common-1.css
  13. + common/my/common-2.css
  14. !!!!!!!!!!! ERROR !!!!!!!!!!!
  15. -message    = Cannot read property "files" from undefined
  16. -fileName   = 
  17. -name       = TypeError
  18. -lineNumber = 0

When "steal.paths" are in stealconfig.js file package css doesn't have merged css

- see /steal/test/complexpackaging/com.my.common/resources/stealconfig.js
/steal/test/complexpackaging/common/packages/common.css doesn't have merged css
- build command "./js /Users/aballa/my/projects/steal/test/complexpackaging/com.my.common/scripts/build.js" is successful

  1. OUTPUT
  2. aballa-macbook-pro:projects aballa$ ./js /Users/aballa/my/projects/steal/test/complexpackaging/com.my.common/scripts/build.js 
  3. Building to steal/test/complexpackaging/common/
  4. opening steal/test/complexpackaging/com.my.common/resources/index.html
  5. adding dependencies
  6. + stealconfig.js
  7. + common/my/init.js

  8. stealing common/my/common.js
  9. + common/my/common.js
  10. + common/my/common-1.js
  11. + common/my/common-2.js
  12. + common/my/common-1.css
  13. + common/my/common-2.css
  14. Building packages
  15. Package: steal/test/complexpackaging/common//packages/common js/css
  16. + common/my/common-1.js
  17. + common/my/common-2.js
  18. + common/my/common-1.css
  19. + common/my/common-2.css
  20. + common/my/common.js
  21. Building steal/test/complexpackaging/common/production.js

Requirement
- Each module should have its own package (e.g. com.my.common will have common.js package)
- Module (e.g. com.my.app1) which is dependent on other common modules (e.g. com.my.common) will steal the package (common.js package) instead of including common.js in its production.js. By doing so we can deliver common modules independently without having to build and deliver all module which are dependent on common modules when ever common modules change.

Viewing all articles
Browse latest Browse all 3491

Trending Articles