Skip to content

pigeonposse/pkg-extended-scripts

PKG-EXTENDED-SCRIPTS by PIGEONPOSSEβ„’

License Version Web About us Donate

πŸ—’ Description

List all your scripts in a separate file to the package.json

Separate the package.json scripts to another file and run them with the pes or pkg-extended-scripts command

πŸ”‘ Installation

Using NPM

npm install @pigeon-posse/pkg-extended-scripts

βš™οΈ Usage

  1. create a file named pes.config.{js,cjs,mjs,cjs,ts,mts,cts}.
  2. Write your scripts to the file. for example:
    /** @type {import('@pigeon-posse/pkg-extended-scripts').Config} */
    export default {
      "hello" : () => console.log( 'Hello Pigeon πŸ•ŠοΈπŸŒˆ' ),
    }
  3. Run these scripts using the pes or pkg-extended-scripts commands

That's it, now you can list all your scripts in a separate file to the package.json

Optional

If you use the package it may be good practice to leave a scripts in the package.json that indicates that the scripts are in a separate file. For example:

  • In package.json
{
  "scripts" : {
     "ext-scripts": "npx @pigeon-posse/pkg-extended-scripts"
  }
}

πŸ‘¨β€πŸ’» Development

You can contribute via Github

Issues Pull requests

β˜• Donate

Help us to develop more interesting things.

Donate

πŸ“œ License

This software is licensed with MIT License

Read more

🐦 About us

PigeonPosse is a ✨ code development collective ✨ focused on creating practical and interesting tools that help developers and users enjoy a more agile and comfortable experience. Our projects cover various programming sectors and we do not have a thematic limitation in terms of projects.

More

Collaborators

Name Role GitHub
AngelEspejo Author @AngelEspejo
PigeonPosse Collective @PigeonPosse

About

βž—πŸ“œ Separate scripts from package.json.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published