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

osiota-dev

v1.2.4

Published

This repository contains helper scripts for the development of [osiota](https://github.com/osiota/osiota).

Downloads

78

Readme

Development helper for the osiota project

This repository contains helper scripts for the development of osiota.

Overview

Create App

Follow the next steps, to create a new osiota app based on the template repository. Using the template repository simplifies the maintaince of the base files. Most steps were automated by separate scripts located in the osiota-dev project.

Step 1.a: Create repository from template:

npx osiota-dev-new-module ../osiota-app-NAME
cd ../osiota-app-NAME

Step 2: Integrate:

Create (oder adapt) you osiota based application.

And run:

npm install

You may as well commit your changes.

Step 3: Create and edit schema file(s):

If you need to create the schema.json file, run for each osiota entry script file (here file.js):

npx osiota-dev-create-schema file.js
vim file-schema.json

And adapt it and the package file:

npx osiota-dev-adapt-ps 

Step 4: Generate README file:

npm run doc

Don't forget to commit:

git add package.json schema.json *-schema.json README.md
git commit -m "+package, schema and readme"

Step 5: Push the new repository:

Go to github and create a repository. We recommand using the same name as before.

git remote add origin [email protected]:MYNAME/osiota-app-NAME.git
git push --set-upstream origin master

ALTERNATIVE: If you are part of the osiota development team, you can use a helper script to create the repository automatically:

npx osiota-dev-upload-to-github-group

Step 6: Publish to npm:

npx osiota-dev-publish

Maintanance

Update generated files:

Update README:

npm run doc

Update package.json

npx osiota-dev-adapt-ps

Publish a new version:

A small change: 1.2.X which just fixes something

npx osiota-dev-publish patch

A normal change: 1.X.0 which adds an additional feature

npx osiota-dev-publish minor

A big step: X.0.0 which is INCOMPATIBLE with the versions before.

npx osiota-dev-publish major

Update base repository

To update your repository to the newest version of the template repository:

npx osiota-dev-merge-base-repo

Migrate App

If you already have a git repository, providing an osiota app, you can migrate the commits with the following commands:

Step 1.b: Clone and adapt existing repository:

First you need the osiota-dev project:

git clone https://github.com/osiota/osiota-dev

Now clone and adapt an existing repository:

./osiota-dev/migrate-module [email protected]:energy-router/REPO.git [osiota-app-NEWNAME]
cd osiota-app-NEWNAME

Follow step 2 and following of section Create app.

License

This software is released under the MIT license.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.