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

create-github-actions-setup-for-ember-addon

v0.7.0

Published

Setup GitHub Actions for an Ember Addon

Downloads

4

Readme

Create GitHub Actions setup for Ember Addon

Creates GitHub Actions for Ember Addon with NPM init / yarn create command.

This is early alpha software. Use with care and double check the generated GitHub Actions workflow.

Features

  • Update an existing GitHub Actions workflow to latest blueprints using configuration from last run.
  • Analyse an existing TravisCI configuration and migrate it over to GitHub Actions.
  • Calculate reasonable defaults based on your project.

Usage

# in a yarn repo
yarn create github-actions-setup-for-ember-addon

# in an npm repo
npm init github-actions-setup-for-ember-addon

The configuration to be used depends on the repository. It is determined using this algorithm:

  1. Use configuration persisted in .github/workflows/ci.yml by a previous run if exists.
  2. Analyse .travis.yml if one exist.
  3. Fallback to defaults.

Defaults

The script tries to calculate sensitive defaults if no configuration from a previous run nor an existing .travis.yml is found. The defaults are calculated based on the actual project:

  • Determines node version based on minimum allowed version on engines.node key of project's package.json.
  • Picks up package manager used by your project based on existence of either package-lock.json or yarn.lock.
  • Includes all Ember Try scenarios defined in config/ember-try.js in generated test matrix.
  • Configures CI to run test against all browsers configured in Testem's launch_in_ci configuration.

Limitations of Travis CI parser

  • Only supports TravisCI configuration following the schema used by Ember CLI >= 3.4.
  • Environment variables used in TravisCI pipelines are not migrated (yet).
  • Customizations of before_install or script steps are not migrated (yet).

Contributing

Merge requests are very much appreciated. Parts that could be improved are:

  • The generated GitHub Actions workflow may not reflect latest best practices.
  • The script is only tested against TravisCI configurations created by recent Ember CLI versions so far. Extending that test coverage (and fixing bugs) would be great.
  • Only a very limited subset of common customizations of the default TravisCI configuration is supported. Would love to support more common patterns.
  • The script could be extended to allow the user to set configuration variables with command line flags rather than extracting them from an existing TravisCI configuration.

Contributing documentation is provided in CONTRIBUTING.md to lower entry barrier. In case you face additional questions do not hesitate to either open an issue or contact me (@jelhan) on Ember Community Discord.

License

This project is licensed under the MIT License.