All Projects → dart-archive → custom-element-apigen

dart-archive / custom-element-apigen

Licence: BSD-3-Clause license
Tool to generate Dart APIs for polymer custom elements written in Javascript

Programming Languages

dart
5743 projects
HTML
75241 projects
javascript
184084 projects - #8 most used programming language
shell
77523 projects

Custom Elements APIGen

This package contains a tool that lets you wrap custom elements written with polymer.js and provide a Dart API for them.

The tool assumes that the JavaScript code was packaged using bower and follows bower packages conventions.

To use it, you need to:

  • Install node/npm.

  • Globally install bower and hydrolysis npm packages using npm install -g <package>.

  • configure bower to put the packages under lib/src/ instead of the default bower_components. For exmaple, with a .bowerrc file as follows:

    {
      "directory": "lib/src"
    }
    
  • setup your bower.json file

  • install packages via bower install

  • (one time) create a configuration file for this tool

  • run the tool via pub run custom_element_apigen:update configfile.yaml

There is not much documentation written for this tool. You can find examples of how this tool is used in the polymer_elements package.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].