GithubHelp home page GithubHelp logo

netlify-plugin-edge-handlers's Introduction

Netlify Plugin Edge Handlers

This plugin is used to bundle Edge Handlers for deployment. It is included in the list of core plugins in Netlify's build, meaning that any handler under the ./edge-handlers directory will be bundled by Netlify's buildbot.

Usage

This plugin is already integrated into Netlify's build process and will not need to be included in your project for Edge Handlers to work.

To run this plugin locally in an existing project that has Edge Handlers, you'll need to install the netlify build codebase locally and symlink this plugin to that repo. To do so:

  1. Clone the build repo and install dependencies
git clone [email protected]:netlify/build.git

npm i
  1. Create a symlink from netlify-build/packages/build/node_modules/@netlify/plugin-edge-handlers towards the Edge handlers plugin's root directory. You can do this manually with ln -s or npm link

  2. To verify that this step worked, cd /path/to/netlify-build/packages/build, then node -p 'require("@netlify/plugin-edge-handlers")' which should print the onPostBuild exported function

  3. Run the plugin locally in your project by typing in your project directory:

/path/to/netlify-build/packages/build/src/core/bin.js

Testing

To run tests in this plugin, simply run:

npm run test

This will start the integration tests located in the integration-test folder.

netlify-plugin-edge-handlers's People

Contributors

calavera avatar ehmicky avatar mraerino avatar neolegends avatar nicholasklick avatar shortdiv avatar tools-netlify avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.