https://github.com/m4b/get-polymer-imports
Simple python script to get all the polymer imports from a bower_components directory
https://github.com/m4b/get-polymer-imports
Last synced: 12 months ago
JSON representation
Simple python script to get all the polymer imports from a bower_components directory
- Host: GitHub
- URL: https://github.com/m4b/get-polymer-imports
- Owner: m4b
- License: mit
- Created: 2015-06-12T21:14:58.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-07-14T01:38:39.000Z (almost 11 years ago)
- Last Synced: 2025-02-23T10:16:48.616Z (over 1 year ago)
- Language: Python
- Size: 145 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# get-polymer-imports
Simple python script to get all the polymer imports from a bower_components directory
# Usage
`./get_polymer_imports bower_components > all.html` outputs an 'acceptable' file you can then import into your `` in your project's `index.html`.
Essentially, it excludes `demo`, `test`, and `src` directories. It also ignores the `polymer` directory, and simply uses `../bower_components/polymer/polymer.html`.
If you want to change the initial prefix from `..`, simply add that as the second argument, i.e.:
`./get_polymer_imports bower_components ''` to use no prefix.
It will also work on a `components` directory, but nothing else, because who knows what hell will break lose otherwise.