All Projects → poetic → Ember Cli Github Pages

poetic / Ember Cli Github Pages

Licence: mit
Easily manage gh-pages of your ember-cli addon

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Ember Cli Github Pages

ember-youtube
An Ember.js component to load, play and control YouTube videos using the iframe API
Stars: ✭ 57 (-65.24%)
Mutual labels:  ember-cli, ember-addon
ember-credit-card
"make your credit card form dreamy in one line of code"
Stars: ✭ 89 (-45.73%)
Mutual labels:  ember-cli, ember-addon
ember-content-loader
Easy, customizable content placeholders / skeletons screens
Stars: ✭ 41 (-75%)
Mutual labels:  ember-cli, ember-addon
ember-cli-nouislider
{{range-slider}} component for ember-cli powered by noUiSlider
Stars: ✭ 43 (-73.78%)
Mutual labels:  ember-cli, ember-addon
Ember Cli Coffeescript
Adds precompilation of CoffeeScript files and all the basic generation types to the ember generate command.
Stars: ✭ 72 (-56.1%)
Mutual labels:  ember-cli, ember-addon
ember-cli-string-helpers
Set of the String helpers extracted from DockYard's ember-composable-helpers.
Stars: ✭ 73 (-55.49%)
Mutual labels:  ember-cli, ember-addon
ember-luxon
🕐 🌐 [deprecated] Addon thats brings Luxon to Ember applications.
Stars: ✭ 20 (-87.8%)
Mutual labels:  ember-cli, ember-addon
ember-cli-ifa
Ember CLI addon for injecting fingerprinted asset map file into Ember app
Stars: ✭ 54 (-67.07%)
Mutual labels:  ember-cli, ember-addon
Ember Simple Auth Auth0
Auth0 + lock.js, built on ember-simple-auth
Stars: ✭ 53 (-67.68%)
Mutual labels:  ember-cli, ember-addon
Ember Cli Scss Lint
An ember-cli addon to integrate sass-lint for standards adherence and improved style consistency
Stars: ✭ 7 (-95.73%)
Mutual labels:  ember-cli, ember-addon
ember-template-inspector
An ember add-on which opens the template file in the code editor while inspecting an element.
Stars: ✭ 15 (-90.85%)
Mutual labels:  ember-cli, ember-addon
Ember Cli Stripe
Stripe checkout for Ember
Stars: ✭ 84 (-48.78%)
Mutual labels:  ember-cli, ember-addon
Ember Cli Notifications
⚛ Atom inspired notification messages for ember-cli
Stars: ✭ 168 (+2.44%)
Mutual labels:  ember-cli, ember-addon
ember-cli-es6-transform
Import ES6 modules from npm, bower or anywhere else in your app.
Stars: ✭ 13 (-92.07%)
Mutual labels:  ember-cli, ember-addon
Ember Decorators
Useful decorators for Ember applications.
Stars: ✭ 360 (+119.51%)
Mutual labels:  ember-cli, ember-addon
Ember Cli Bundle Analyzer
Analyze the size and contents of your Ember app's bundles
Stars: ✭ 78 (-52.44%)
Mutual labels:  ember-cli, ember-addon
Ember Model Validator
ember-cli addon adds validation support to your Ember-Data models.
Stars: ✭ 141 (-14.02%)
Mutual labels:  ember-cli, ember-addon
Ember Impagination
An Ember Addon that puts the fun back in asynchronous, paginated datasets
Stars: ✭ 123 (-25%)
Mutual labels:  ember-addon
Generator Jekyll Starter Kit
🚀 Jekyll Progressive Web App Generator.
Stars: ✭ 139 (-15.24%)
Mutual labels:  gh-pages
Ember Content Placeholders
Composable components for rendering fake (progressive) content like facebook
Stars: ✭ 121 (-26.22%)
Mutual labels:  ember-addon

ember-cli-github-pages

npm version Ember Observer Score Code Climate
Dependency Status devDependency Status

If you need to throw up a quick example of your addon in action, this is the addon for you!

This addon provides new command(s) to help manage a gh-pages branch for your addon. It's an addon for addons.

Installation & Setup

First you need to install ember-cli-github-pages:

ember install ember-cli-github-pages

Upon install, this addon will modify your 'tests/dummy/config/environment.js'. Commit these changes with the following command:

git add -A && git commit -m "Added ember-cli-github-pages addon"

Then you need to create the gh-pages branch and remove the unnecessary files:

git checkout --orphan gh-pages && rm -rf `bash -c "ls -a | grep -vE '\.gitignore|\.git|node_modules|bower_components|(^[.]{1,2}/?$)'"` && touch .gitkeep && git add -A && git commit -m "initial gh-pages commit"

Usage

Once that's done, you can checkout the branch you want to create the gh-page from (likely master) and run the command to build and commit it.

Then run ember github-pages:commit --message "some commit message" in order to rebuild gh-pages branch.

git checkout master
ember github-pages:commit --message "Initial gh-pages release"

Ember Addons: Add a Demo URL

Once you've created a gh-pages branch, tell the world! Add a demoURL key to the ember-addon object in your package.json. See the ember-cli documention for details.

A note about Org and User Pages

While in general, github repo pages will serve the content in the gh-pages branch, org and user pages serve content in the master branch. When using this addon to develop a Org or User page, edit your Ember Application on an alternate branch such as ember. Once you are ready to build the application and send to GitHub you can either:

  • add the --branch master option to the ember github-pages:commit command
  • make the gh-pages branch on your local machine track the master branch on origin via the command:
git branch --set-upstream gh-pages origin/master

A complete Org/User Pages example

  1. Create a new Ember CLI project ember new myBlog. Replace myBlog with the name of your project.
  2. Go to the newly created project and install this addon: cd myBlog && ember install ember-cli-github-pages.
  3. Remove the changes made to environment.js, as they are not required for Org/User pages: git checkout -- tests/dummy/config/environment.js
  4. Commit the changes: git add -A && git commit -m "Added ember-cli-github-pages addon https://github.com/poetic/ember-cli-github-pages"
  5. Create a new branch named ember which will store all the ember related code: git checkout -b ember
  6. Run the following command as mentioned above: git checkout master && rm -rf `ls -a | grep -vE '\.gitignore|\.git|node_modules|bower_components|(^[.]{1,2}/?$)'` && git add -A && git commit -m "initialises gh-pages(in case of organisation master) commit"
  7. Switch back to ember branch: git checkout ember;
  8. Build the site using ember-cli-github-pages: ember github-pages:commit --branch master --message "adds base site"
  9. Create new Org/User repo on Github and add the origin: git remote add origin https://github.com/knoxxs/knoxxs.github.io.git. Here knoxxs is my username.
  10. Push the master branch: git push -u origin master.
  11. Open http://knoxxs.github.io/.

Advanced Usage

You may optionally specify an ember build environment and a branch name as parameters

git checkout master
ember github-pages:commit --message "Initial demo app release" \
                          --branch="my-demo-app" \
                          --environment=development
Optional Argument Default Value Description
environment production Ember build environment (i.e., development, production)
branch gh-pages Branch to commit your app to
destination . The directory into which the built application should be copied
message new gh-pages version The commit message to include with the build, must be wrapped in quotes

You will still need to push the gh-pages branch up to github using git. Once you do that you can access the repo at http://username.github.io/repo-name. It may take a few minutes after pushing the code to show up.

FAQ

How can I create an automated deploy script?

For ease of use you can add the following to your package.json:

  "scripts": {
    "deploy": "ember build --environment production && ember github-pages:commit --message \"Deploy gh-pages from commit $(git rev-parse HEAD)\" && git push origin gh-pages:gh-pages"
  }

And then you can execute npm run deploy and it will deploy with a commit message that references the commit ID you deployed from, and push that branch to github.

Some of my assets (images) aren't showing up, what do I do?

This addon creates a production build, which fingerprints resources automatically. If you have dynamic resources in your templates, they will not be fingerprinted, so you need to ignore the fingerprinting for those resources in your ember-cli-build.js file. See the fingerprinting docs.

Authors

We are very thankful for our many contributors

Legal

Licensed under the MIT license

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].