freaktechnik / css-objectnet

Analyze the ID-Class relations of HTML nodes
MIT License
1 stars 0 forks source link
devtools-extension firefox-addon firefox-extension webextension webpack

CSS Objectnet

Greenkeeper badge Travis CI Builds Dependency CI

This is an experimental dev tool to analyze the ID-Class relations of HTML nodes.

The CSS Objectnet panel in the devtools with a graph connecting HTML element IDs with their associated classes. This lets you analyze how you share your code and check classes for only having one responsibility and so on.

Currently there is no interaction on click to the elements in the graph other than a force simulation on the graph.

Translations

The extension is translated via Transifex.

Development

Set up environment

Run npm i to install all required dependencies.

Test extension in browser

By running npm start the extension will be build and web-ext will launch Firefox with the extension temporarily loaded in a throwaway profile.

Build extension

To build the extension, run npm run build.

Run tests

The extension both follows eslint rules and linting rules for WebExtensions by Mozilla. To run the linters, run npm test.