Git Product home page Git Product logo

dom-deque's People

Contributors

leodido avatar leogr avatar

Watchers

 avatar  avatar

dom-deque's Issues

Contributing file

Commit a markdown file - ie. CONTRIBUTING.md - specifying rules for contributions.

Polymer packages are not available (or not updated) on npm

All the polymer elements and the polymer library itself are not currently maintained on npm.

Exist a previous attempt to publish polymer and its elements on npm. This test presents cons:

  1. It isn't updated
  2. Polymer itself and its elements are published as scoped package (nothing wrong) which means that external dependencies - i.e. not scoped packages - e.g., prism library - are installed inside

An easy workaround for issue 2 is to move/copy/link the external packages into the scoped package at post-install time - i.e., node_modules/libx to node_modules/@polymer/libx. This is the solution currently adopted.

But problem 1 remains.

Thus, another solution is to use napa: an helper to install github repos without a package.json file (also npm allows this) with a custom name/path (npm does not allow this).

Cons:

  1. This tool can not automatically recursively fetch dependencies.

Which means we have to manually specify all dependencies of our dependencies, and so on.

Conclusions

Both solutions require a post-install hook, so 0 point each.
I choose the second solution since it is desirable to have updatable packages at the (one-time) cost to specify all their dependencies.
Once polymer maintainers will (correctly - i.e., preferably not requiring us to use postinstall script) publish all their libraries plus elements on npm we'll switch back to the natural solution - i.e., solution 1.

I'm implementing it.

Polymer 2.0

I'd like to deprecate che current version (that's just a PoC) then refactor the code in order to make it work with Polymer 2.0.

Issues should be reviewed accordingly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.