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

iwb_serenity

v3.1.3

Published

Immoweb Front-end Framework

Downloads

30

Readme

Serenity

Internal front-end framework for Immoweb.

Read the Serenity docs

Table of contents

Quick start

Dev

Compile CSS (include lint, scss compilation, autoprefixer and minification)

    npm run css

For development purpose (Watch scss files change and launch compilation)

    npm run watch:css

File Structure

Source files are saved inside /src folder. Compiled files are saved inside /dist folder.

iwb_serenity/
├── dist/
│   ├── css/
│   │   ├── serenity.css
│   │   ├── serenity.css.map
│   │   ├── serenity.min.css
│   │   └── serenity.min.css.map
└───┴── src/
        └── scss/
            ├── utils/
            │   └── ...
            └── serenity.scss

Documentation

Serenity documentation can be consulted in the /docs folder or online (thanks to GitHub Pages.

Running the documentation locally

  1. Make sure you have Node.js and npm installed.
  2. Run npm ci to install Node.js dependencies.
  3. Run npm start to compile CSS and JavaScript files, generate the docs, and watch for changes (which is suitable for development) or npm run docs:build to build the documentation website in /doc/.vuepress/dist.
  4. To browse the documentation:
  • If you ran npm start, you can browse the documentation on http://localhost:8080.
  • If you ran npm run docs:build, the documentation website is in /doc/.vuepress/dist.

Deploying the documentation

Thanks to a GitHub action, the documentation website is automatically deployed when a release tag is created.

To trigger a deployment at another moment:

  1. Go to Actions / Deploy Documentation.
  2. Click Run workflow, let the default branch on master and click Run workflow.
  3. Wait a couple of seconds for the dispatched action to appear in the list below the button.

Test your changes without releasing

To test your changes in a real-world project before publishing a new version of Serenity, use the npm link feature.

In the following how-to, Serenity Project refers to your local Serenity source, Your Project refers to your local project that use Serenity.

  1. Inside Your Project, manually delete node_modules/iwb_serenity.
  2. Inside the Serenity Project, run npm link.
  3. Inside Your Project, run npm link iwb_serenity.

Now your project uses the iwb_serenity local version.

To roll back to the default state:

  1. Inside Your Project, run npm unlink iwb_serenity.
  2. Inside the Serenity Project, run npm unlink.
  3. Inside Your Project, eventually reinstall the desired version of serenity (npm install iwb_serenity).