An open API service indexing awesome lists of open source software.

https://github.com/anyulled/package-dependency

a package dependency poc
https://github.com/anyulled/package-dependency

babel react react-dom webpack webpack-dev-server webpack3

Last synced: 2 months ago
JSON representation

a package dependency poc

Awesome Lists containing this project

README

          

# DefinePlugin POC

this is a sample of defining global constants and passing them through every dependent package.

## Instructions

first, create a symbolic link for your dependent app, install the respective dependencies and build your app

```
cd dependentApp
npm install
npm run build
npm link
```

This will create a link to `dependentapp` package in your global user npm package folder.
Next, go to your main app and refer to the link you just created above.

```
cdd mainApp
npm install
npm link dependentApp
```

Finally, just run your app.

`npm start`

Variables defined at `mainApp` should be visible on `dependentApp` also.