Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arcanis/build-pnm
Generate package-name-maps files by consuming the PnP API
https://github.com/arcanis/build-pnm
Last synced: about 2 months ago
JSON representation
Generate package-name-maps files by consuming the PnP API
- Host: GitHub
- URL: https://github.com/arcanis/build-pnm
- Owner: arcanis
- Created: 2018-09-25T11:14:35.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-25T12:47:02.000Z (about 6 years ago)
- Last Synced: 2024-10-11T02:19:30.843Z (2 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# build-pnm
> Experimental [package-name-maps](https://github.com/domenic/package-name-maps) generator
[![npm version](https://img.shields.io/npm/v/build-pnm.svg)](https://www.npmjs.com/package/build-pnm)
[![node version](https://img.shields.io/node/v/build-pnm.svg)](https://www.npmjs.com/package/build-pnm)## Installation
```
yarn add -D build-pnm
```## Usage
Simply add a postinstall script that runs the `build-pnm` binary, then run `yarn` again (note that you need to have Plug'n'Play enabled - in case you haven't enabled it already, just use `--pnp` the next time you run Yarn; you won't have to do it again afterwards):
```
{
"devDependencies": {
"build-pnm": "*",
},
"scripts": {
"postinstall": "build-pnm"
}
}
```It will automatically generate a suitable `package-name-maps.json` file in the local directory.
## License (MIT)
> **Copyright © 2016 Maël Nison**
>
> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
>
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
>
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.