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

@ef-class/infra-cli

v1.1.14

Published

infrastucture command-line developer tools

Downloads

51

Readme

infra-cli

npm install -g @ef-class/infra-cli

infrastructure teardown

  • infra-cli teardown --app {{app}} --branch {{branch}}
    • delete the CloudFront CDNs for the apps
    • delete the domains for the apps

infrastructure create

  • infra-cli create --acc {{account}} --app {{app}} --branch {{branch}}
    • create the CloudFront CDNs for the apps
    • create the domains for the apps

infrasturcture check

  • infra-cli check --acc {{account}} --app {{app}} --branch {{branch}}
    • checks the Terrafrom script is correct

--app Can be have a vlaue of '*' which equates to all the apps in the config or it can be a listy 'a,b,c' or it can be a single app 'a'

Config file

You will need to create this config file and add it to the root of the project.

infra.config.json

{
    "devel": { 
        "account": "devel",
        "apps": ["accounts", "student", "teacher", "static", "lesson-item-renderer", "design-system"],
        "state": {
            "bucket": "ctx-terraform-state-devel",
            "dir": "devel/fe_features",
            "region": "eu-west-1"
        },
        "aws": {
            "secret": "{{aws secrect}}",
            "key": "{{aws key}}",
            "region": "eu-west-1"
        },
        "terraform": { 
            "delimiter": "o",
            "domain": "ctx.ef.com",
            "s3": {
                "bucket": "ef-class-web-devel",
                "loggingPrefix": "logs/cloudfront/",
                "originAccessIdentity": "origin-access-identity/cloudfront/E3N3GP1T23HRMI" 
            },
            "r53": { 
                "zoneId": "ZVRF914X2I9LY"                
            },
            "cf": { 
                "amcCert": "arn:aws:acm:us-east-1:817216657652:certificate/c6c4616d-0f8d-492e-bf1e-9d66c17e3730"
            }
        }
    }
}

Usage

cd ef-class/ef-class-web

infra-cli --help

infra-cli teardown --help infra-cli create --help infra-cli check --help

Development

npm run test to run the tests. This command first builds then runs the tests.

npm run refresh to install the cli locally for manual testing. You can run this command after a code update and it'll build and reinstall the npm package for the cli locally.

npm run build transpiles the ts to js.