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

epfl-elements

v4.7.0

Published

#### [πŸ‘‰ View online](https://epfl-si.github.io/elements)

Downloads

37

Readme

Elements

EPFL Web Styleguide

πŸ‘‰ View online

Install

To contribute and run the styleguide, you will need few things :

Then, to install the project onto your workstation:

$ git clone [email protected]:epfl-si/elements.git
$ cd ./elements
$ yarn

Run locally

As listed in the package.json, the following commands are available:

  • $ yarn start : Will launch a live reloaded server to help you during development
  • $ yarn dist : Will build your assets for production usage into the dist/ directory

Backstop tests (local)

EPFL-Elements uses backstop.js to perform visual regression testing.

πŸ’‘ Instead of running the steps below on your workstation, you may want to have GitHub actions do the same for you in the cloud. See the next paragraph.

To run a side-by-side comparison between the original state of Elements and your changes using Backstop, you need to have a locally-running Elements Web app as per the previous Β§. Then:

  1. Make sure all your changes are committed to git (not necessarily pushed)
  2. Run yarn test:prepareπŸ’‘ Do not stop the EPFL-Elements Web app to type in this command! Use a new terminal window instead.
  3. Check out the upstream branch for your work (typically origin/dev): git checkout origin/dev
  4. Run yarn test:reference
  5. Check out your working branch again, e.g. git checkout feature/myfeature
  6. Run yarn test:changes
  7. The report should open in your browser automatically. If not, just open the tests/backstop/html_report/index.html file in your browser

Backstop tests (GitHub actions)

Whenever one creates or updates (pushes to the underlying branch of) a GitHub pull request, a set of GitHub actions kicks off to perform the same visual regression testing as described in the previous paragraph, except that the processing happens in the cloud.

  1. Push your work to a feature branch
  2. If not already done, create a GitHub pull request out of that feature branch
  3. Wait a few minutes for the GitHub actions to terminate. πŸ’‘ If you are feeling impatient and/or bored, browse the repository's Actions tab and click your way through the yellow spinning icons to look at the logs while the GitHub actions are in progress.
  4. If all goes well, the GitHub actions' bots should append two new comments to the pull request's review thread. The second one contains a link to the Backstop report, which is a rather large (~150 Mb) file. In order to take a look at the report:
  5. Download it by clicking the link
  6. Unzip the file (πŸ’‘ Depending on your browser's configuration, this may happen automatically)
  7. Open the file backstop-report/html_report/index.html within the unzipped directory with your browser
  8. If you want to perform additional changes (e.g. to repair regressions spotted by Backstop), just push (or force-push) to the feature branch. When done, the GitHub actions will update the same two review messages in the PR thread (instead of creating new ones).

Create a new release

  1. Ensure that your ~/.yarnrc contains a line like registry "https://registry.npmjs.org/"

The last step will cause the following things to happen:

  • Ensure that you are on the dev branch (or bail out if not)
  • Bump version number
  • Commit, tag and push

... And in turn, that last step will cause the following things to happen server-side, using GitHub Actions: