Giter Site home page Giter Site logo

devtools-core's Introduction

DevTools Core

  • devtools-client-adapters
  • devtools-launchpad
  • devtools-network-request
  • devtools-config
  • devtools-modules
  • devtools-sham-modules

Local Development

Installing Locally

It's very common to work on a package and test it on a tool like the Debugger. There are a couple strategies for this: link, local install, and package install.

Linking

Linking is the most common approach. Here, yarn creates a symlink from the debugger's node_modules/devtools-client-adapters directory to the devtools-core devtools-client-adapters package directory.

  • Once the debugger is linked then any change in the code will be reflected in the debugger.
  • Making changes does not require re-starting the dev-server.
  • Ignores any pre-publish steps that might be important.
  • Could create a bundling issue because devtools-client-adapters has its own set of node_modules, which are not shared with the debugger or other tools.

Steps:

cd devtools-core/packages/devtools-client-adapters
yarn link
cd ../../../debugger.html
yarn link devtools-client-adapters
Local install

Local install lets you install a package locally. It's similar to publishing a new version and installing it remotely. There are two options:

1. adding a local package
cd debugger.html
yarn add file:../devtools-core/packages/devtools-client-adapters
2. adding a local tarball
cd devtools-core/packages/devtools-client-adapters
yarn pack
cd ../../../debugger.html
yarn add ../devtools-core/packages/devtools-client-adapters/devtools-client-adapters-v0.0.5.tgz

The two options are very similar, but have slightly different semantics. When you install the tarball, you're recreating the remote publish and install process so changes to bin scripts or other dist files will be better supported.

devtools-core's People

Contributors

amitzur avatar arthur801031 avatar bomsy avatar clarkbw avatar dalimil avatar garbee avatar jasonlaster avatar juliandescottes avatar nchevobbe avatar tromey avatar wldcordeiro avatar

Watchers

 avatar  avatar  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.