8000 GitHub - alcoceba/next.js-explorer: Next.js Explorer Chrome & Firefox browser extension for Next.js
[go: up one dir, main page]

Skip to content

Next.js Explorer Chrome & Firefox browser extension for Next.js

License

Notifications You must be signed in to change notification settings

alcoceba/next.js-explorer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Next.js Explorer

License: CC BY-NC 4.0 CI code style: prettier Coverage Status

Next.js Explorer is a browser extension for Google Chrome and Firefox designed to help developers explore and visualize the structure and data of their Next.js applications.

Chome Web Store Firefox Add-On

Getting Started

To get started with Next.js Explorer, follow the steps below.

Prerequisites

Make sure you have the following installed:

  • Node.js (v20 or higher)
  • npm or yarn
  • Chrome or Firefox for testing the extension

Installation

Clone the repository to your local machine:

git clone https://github.com/alcoceba/next.js-explorer.git
cd next.js-explorer

Install the necessary dependencies:

npm install
# o
8000
r
yarn install

Development

To bundle the project and load it as a Google Chrome extension or Firefox addon:

  • For Chrome:

    npm run watch:chrome

    This command will bundle the project and watch for changes, allowing you to load it as an extension in Chrome.

  • For Firefox:

    npm run watch:firefox

    This command will bundle the project and watch for changes, allowing you to load it as an addon in Firefox.

After running one of these commands, follow the steps below to load the extension/addon:

For Chrome:

  1. Open Chrome and go to chrome://extensions/.
  2. Enable "Developer mode" (toggle switch in the top-right corner).
  3. Click on "Load unpacked" and select the dist/chrome directory.

For Firefox:

  1. Open Firefox and go to about:debugging.
  2. Click on "This Firefox" in the sidebar.
  3. Click on "Load Temporary Add-on" and select the dist/firefox/manifest.json file.

Code Quality

Before committing changes, ensure your code meets the project's quality standards:

Formatting

Prettier is configured to ensure consistent code style:

npm run format          # Format all files
npm run format:check    # Check if files are formatted (CI)

Linting

ESLint and StyleLint check code quality:

npm run lint            # Check code quality
npm run lint:fix        # Fix linting issues automatically
npm run stylelint       # Check CSS
npm run stylelint:fix   # Fix CSS issues automatically

Testing

A comprehensive test suite using Jest and React Testing Library covers all components:

npm test                # Run all tests once
npm test:watch          # Run tests in watch mode during development
npm test:coverage       # Generate coverage reports

All tests are located alongside their corresponding components with the .test.js suffix.

Component Documentation (Storybook)

Browse and develop UI components in isolation using Storybook:

npm run storybook       # Start Storybook dev server on port 6006
npm run build-storybook # Build static documentation site

All core components have stories located alongside them with the .stories.js suffix.

Building for Production

To build the project for production:

  • For Chrome:

    npm run build:chrome

    This command will create a production-ready bundle for Chrome in the dist/chrome directory.

  • For Firefox:

    npm run build:firefox

    This command will create a production-ready bundle for Firefox in the dist/firefox directory.

License

This project is licensed under the BSD 3-Clause License - see the LICENSE file for details.

About

Next.js Explorer Chrome & Firefox browser extension for Next.js

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0