xdn-framework-detector

Detects the framework that a project is using by analyzing its dependencies.

Usage no npm install needed!

<script type="module">
  import xdnFrameworkDetector from 'https://cdn.skypack.dev/xdn-framework-detector';
</script>

README

xdn-framework-detector

Detects the framework that a project is using by analyzing its dependencies.

Adding frameworks

To add a framework, first add an entry to src/frameworks.js:

{
  name: 'Next.js', // the name of the framework - will be displayed to the user in the CLI output
  builder: 'xdn-next', // the xdn-* package used to build apps with that framework for the XDN
  command: 'xdn-next-build', // the bin command in the above package that needs to be run to build the app for deployment on the XDN
  dependency: 'next', // If this package is installed, we know we're using this framework
}