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

ember-cli-front-end-builds

v0.1.0

Published

Easily deploy your Ember CLI app to a [front_end_builds](https://github.com/tedconf/front_end_builds) Rails backend.

Downloads

13

Readme

ember-cli-front-end-builds

Easily deploy your Ember CLI app to a front_end_builds Rails backend.

The deploy process involves:

  1. Creating a build of your ember-cli app
  2. Uploading your assets to S3
  3. Notifying your Rails backend with info about the new build

Installation

npm install --save-dev ember-cli-front-end-builds

Backend

Please make sure you have setup your Rails backend with the front_end_builds gem.

You should also setup the admin area and add your application.

Amazon S3

You'll also need to setup a S3 bucket, and allow it to be accessed publicly. Add a policy such as:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "PublicReadForGetBucketObjects",
            "Effect": "Allow",
            "Principal": "*",
            "Action": "s3:GetObject",
            "Resource": "arn:aws:s3:::MY-BUCKET-NAME/*"
        }
    ]
}

Ember App Setup

In your App's Brocfile.js, you'll want to prepend your asset fingerprinting with your S3 Bucket URL:

var app = new EmberApp({
  'fingerprint': {
    prepend: "https://s3.amazonaws.com/MY-BUCKET-NAME/dist/"
  }
});

Please note that if you are serving assets off S3 and your bucket is not in the US Standard region your prepend string should be https://MY-BUCKET-NAME.s3.amazonaws.com/dist/.

Setup

To get started with deploy configuration simply run:

ember deploy:setup

This will ask you a series questions about your application and write a configuration file to config/deploy.js.

Explaining the configuration file.

TODO

{
  "production": {
    "assets": {
      "accessKeyId": "[your-id]",
      "secretAccessKey": "[your-key]",
      "bucket": "[your-s3-bucket]",
      "prefix": "[optional, dir on S3 to dump all assets]",
      "distPrefix": "[optional, dir on S3 to put `dist` in e.g. dist-{{SHA}}]"
    },
    "index": {
      "app": "[app name, e.g. ted-ed-lesson-creator]",
      "endpoints": [
        "[endpoint to notify, e.g. http://local.ted.com:3000/ted-ed-lesson-creator]"
      ]
    }
  }
}

Usage

To deploy your application just run

ember deploy --environment=ENV

Where ENV is the name of the environment you wish to deploy to.