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

@home_agency/rcdl--assets

v8.11.9

Published

This repository contains the development files used to generate the Royal Canin Web Design Language assets.

Downloads

14

Readme

Royal Canin Design Language Assets

Contribution

The Design Language is an open source project meant to continuously evolve through input and collaboration between our digital teams and our agency partners, and as such it can be contributed to via GitHub.

Please refer to the instructions below to get set up and start contributing.

Prepare your environment

Global tools – Ensure you have these minimum requirements installed:

A command line tool package manager (mac: homebrew / windows: scoop) Git command line tools or a GUI for git (We recommend Sourcetree) NVM with a node 8.16+ NPM version 3+ Clone both of the repositories into folders wherever you’d like to work.

Pre Installation

Install Docker Get permissions to access the organisation's docker images

Install Process

Assets Repo
  • npm run setup - This will download the docker images and install dependencies.
  • npm run develop - This starts a serverless environment, compiles files and end up watching for changes. It never stops.

Website Repo

  • npm install - To install dependencies and the package that contains the assets.

Windows only: Once the packages have finished downloading run npm install gulp-cli -g to install Gulp globally on your machine (this only needs to be run once not for both projects).

After the installation has completed you should see a node_modules folder, if you don’t or the installation fails with an error please contact .

In either of the cloned repos you can now simply run gulp to see a list of possible tasks that can be executed with a description of their output. For more information about the tasks keep reading.

Design Language Assets

Windows only: You will need to navigate to ./src/svgs/ in the commandline and run: git clone --depth=1 [email protected]:emcrisostomo/flags flags

  • gulp tasklist – Lists all the tasks available.
  • gulp build – Runs through all the tasks necessary to gather compile the assets ready for development.
  • gulp develop – Watches for any code changes then recompiles the css and javascript as needed. Also launches a local endpoint (http://localhost:9000) for *supplying the assets for development in the portal
  • gulp tasklist – Lists all the tasks available.
  • gulp release – Similar to the build script but uses the currently applied git tag to mark various assets with the correct version.

Design Language Portal

  • gulp develop-portal-cdn – Starts the portal and uses the assets supplied by the production CDN.
  • gulp develop-portal-local – Starts the portal and uses the assets supplied by the local endpoint provided by the Assets repo.
  • gulp develop-element-local --{component-name} – Generates a special page with just those components loaded using the local endpoint for the assets, e.g gulp develop-element-local --buttons
  • gulp develop-element-cdn --{component-name} – Generates a special page with just those components loaded using the production CDN for the assets, e.g gulp develop-element-local --buttons
  • gulp release – Runs through the built steps, moves any assets to where they need to be and finishes.

Coding standards

Both repositories contain code linting configurations in the root of the repository, .stylelint and .eslint. These ensure that all JS and CSS/SCSS follows the same standard formatting and helps prevent bugs and errors. We recommend that you set up integrated linting in your preferred text editor/IDE. We have provided a list of guides for common editors below:

ESLint & StyleLint

Both of these rule sets are used by the task manager to check code that''s being compiled but you can also add them to your IDE so onscreen highlighting.

The following IDEs have full support for inline linting:

Find more ESLint integration options .

Find more StyleLint integration options .

Documenting Code

Javascript and SCSS should be documented using and comments respectively. Please refer to the full documentation of each for proper annotation usage.

Releasing To the World

  • Create a release branch with the name as version number or feature to test
  • Set version number in src/config
  • run gulp release
  • push to github

Git workflow

Both repositories follow the GitFlow branching model. There are two main branches, master and develop. New features should be added by creating a feature branch off of develop. Once you have completed the new feature you can submit a pull request so that the code can be reviewed and merged accordingly. More detailed information can be found.

For more information see: https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow https://www.youtube.com/watch?v=1lSdqrs2f5c