npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@axa-ch/generic-release

v1.0.12

Published

Release script needed to release the PODs to NPM. It releases ONLY lib folder!

Downloads

16

Readme

Generic Release Script for NPM

Release script needed to release the PODs to NPM. Make sure to only release the /lib folder to NPM!

Requirements to the REPO

  • develop as main branch and master as released branch
  • user with admin rights to develop and master must execute the script
  • deployment should always be inside @axa-ch npm org
  • user have to have publish rights into the repo

Step by step guide

  • Create your awesome new repository and run npm install @axa-ch/generic-release --save-dev
  • Create a new branch called develop. ⚡
  • Edit git settings and make develop the default branch ⚡ (https://help.github.com/articles/setting-the-default-branch/).
  • Protect master and develop from direct push if needed.
  • In your .npmignore make sure to add all development folders like src or stack. Remember, npm publish will ignore the .gitignore if a .npmignore file is in the root directory ⚡
  • Make sure that in your package.json the correct org is set like so: @axa-ch/your-awesome-project
  • When starting your development, make sure to set the version 0.0.0 if you start in BETA. ⚡ This setting also have to be applied into the package.json
  • Add a dummy build script in your package.json "build": "echo \"Placeholder here\"",
  • Make sure that you have a npm account in the axa-ch npm org
  • Log in into npm in your cli simply by npm login
  • Now we are ready to release the first version to NPM! Only for very most first time, run npm publish --access public
  • Now the release script will work for you. It will add tags in github and increase the BETA counter. More instructions will be found when running the script itself (guided release)
  • You can run the release script simply by running node_modules/.bin/generic-release in your cli in the root directory of your project. Of course you can also create a npm job for it like so:
"scripts": {
  "release": "generic-release lib",
}

Don't forget to add your folders containing your lib exports like so: generic-release lib dist whatever!

Have fun in releasing!

Config example of the axa-ch-pod:

{
  "name": "@axa-ch/axa-ch-pod",
  "version": "0.0.0",
  "description": "AXA CH pod",
  "scripts": {
    "release": "generic-release lib"
    "build": "echo \"Placeholder here\""
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/axa-ch/axa-ch-pod.git"
  },
  "author": "Luca Mele",
  "license": "SEE LICENSE IN README.md",
  "bugs": {
    "url": "https://github.com/axa-ch/axa-ch-pod/issues"
  },
  "homepage": "https://github.com/axa-ch/axa-ch-pod#readme",
  "devDependencies": {
    "@axa-ch/generic-release": "^1.0.1"
  },
  "dependencies": {}
}

License: AXA Versicherungen AG