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

@jenkins-cd/blueocean-core-js

v1.10.4

Published

Shared JavaScript libraries for use with Jenkins Blue Ocean

Downloads

5,639

Readme

Blue Ocean Core JS

This is an npm module that contains common javascript libraries/utilities that are used across modules and plugins in Blue Ocean.

For Developers

The blueocean-core-js is not automatically incorporated into full builds of the blueocean-plugin project. It is published as its own npm module which is then referenced in other Blue Ocean plugins, notably:

  • blueocean-web (note that since "web" is responsible for "bootstrapping" the Blue Ocean UI, the version specified in blueocean-web/package.json is the version provided to all other modules)
  • blueocean-dashboard
  • blueocean-personalization

Developing with Prerelease Versions

To test changes in blueocean-core-js, perform the following steps:

  • Tick the version number in package.json and npm-shrinkwrap.json and ensure a "prelease" version specified, e.g. 0.0.90-SNAPSHOT-1
  • npm run gulp
  • npm publish --tag beta (the "beta" tag is important)
    • If you receive an error about the package already existing, tick the version up again, e.g. 0.0.90-SNAPSHOT-2 and repeat above steps.
  • Then update the modules that reference core-js:
    • With script: bin/cleanInstall.js @jenkins-cd/[email protected]
    • Or manually in blueocean-web, blueocean-dashboard, and blueocean-personalization
  • You should see all package.json and npm-shrinkwrap.json updated to reflect the new version number.
  • Push changes to your branch and ensure that the blueocean-plugin and ATH builds both pass.

Publishing a Production Version

Once the changes to blueocean-core-js are approved via PR, perform the following steps:

  • Ensure your branch is 100% up to date with master. This is critical, otherwise recent changes may be lost and break the app.
    • If changes to core-js were made in the interim, ideally you should merge and publish a new pre-release version to ensure builds still pass.
  • Tick version numbers in package.json and npm-shrinkwrap.json to a production version, e.g. "0.0.90"
  • npm run gulp
  • npm publish
  • Commit the changes to package.json and npm-shrinkwrap.json
  • Tick the version number in package.json and npm-shrinkwrap.json and ensure a "prelease" suffix specified, e.g. 0.0.91-SNAPSHOT
  • Commit the changes to package.json and npm-shrinkwrap.json
  • Then update the modules that reference core-js:
    • With script: bin/cleanInstall.js @jenkins-cd/[email protected]
    • Or manually in blueocean-web, blueocean-dashboard, and blueocean-personalization
  • You should see all package.json and npm-shrinkwrap.json updated to reflect the new version number.
  • Push changes to your branch and ensure that the blueocean-plugin and ATH builds both pass.
  • Merge your PR to master.

Running Tests

Tests are run via jest using the gulp-jest plugin. Three modes of execution are supported:

npm run test

Runs jest and outputs JUnit test reports and code coverage metrics, in the 'reports' and 'coverage' dirs. This is the "full" execution that is run in CI.

npm run test-fast

Runs jest without test reports or coverage. Fastest run, useful for local development.

npm run test-debug

Runs jest in debug mode listening on localhost:5858. You must attach a debugger for execution to proceed. Test reports and coverage are skipped.

Running select test(s)

All of the above profiles support executing one or more tests via jest's testPathPattern parameter:

npm run test-fast -- --test test/js/UrlUtils-spec.js // one test npm run test-fast -- --test /capability/ // any tests in a 'capability' dir npm run test-fast -- --test Url // any test with 'Url' in the name