New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ember-cli-cordova

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-cordova

A tool for creating hybrid apps using a combination of ember-cli and cordova

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
27
decreased by-15.62%
Maintainers
1
Weekly downloads
 
Created
Source

##currently only works off of master ember-cli until it's version is > 0.0.37

Installation

npm install -g git://github.com/poetic/ember-cli-cordova

Commands

  • ember cdv:init com.poetic.myapp initialize cordova project
  • ember cdv:open open cordova xcode project
  • ember cdv:build --environment production --platform ios build cordova project
  • ember cdv:archive 0.0.2 --environment staging --commit --tag archive ios project with xcode
  • ember cdv:prepare needs to be run after cloning a project

Development

General

In the root folder you can run standard ember-cli commands and develop in the browser. Most cordova commands you need are wrapped in some way by ember-cli-cordova, if you need to run raw commands you will need to cd into the cordova/ directory

Simulator

After making a change to the ember app, you must run ember cdv:build to update the build to contain those changes. You can then relaunch the app by building inside of xcode/eclipse or running cordova emulate <platform>

Builds

To build for different environments you run the ember cdv:build command with the options you want

Docs / Guides

This project is mostly a combination of other projects, I plan on writing some guides on the basic of how to use it and what it contains, until then here is some info about some dependencies it uses.

  • ember-cli
  • cordova
  • ember-animated-outlet
  • moment.js

FAQ

I am getting Current working directory is not a Cordova-based project. when I run a cordova command

If you are running a cli command, make sure the dist directory exists. You can run ember build to create it if it doesnt. If you are running a raw cordova command, you need to cd into cordova/ to run it.

When running ember cdv:archive command I get an Xcode build error saying the scheme doesnt exist

Error example:

ld[10658:1007] WARNING: Timed out waiting for <IDEWorkspace,
0x7fc00d207d40>/"runContextManager.runContexts" (10.000125 seconds elapsed)
xcodebuild: error: The project 'MyApp' does not contain a scheme named 'MyApp'.

This is caused by now having opened the project in Xcode before. It automatically generates some info it needs to archive the project. To fix this, run ember cdv:open and let it open in Xcode. After you have done this once you can just run the archive command again and it shouldn't give you any more trouble.

Potential gotchas

  • locationType must be set to hash to work inside cordova

Contributing

Working with master

git clone https://github.com/poetic/ember-cli-cordova.git
cd ember-cli-cordova
npm link
ember new CordovaTest
cd CordovaTest
npm install --save-dev <path to where you cloned it>
npm link ember-cli-cordova

After this, any changes you make to the cloned repo will be instantly reflected in the test app you generated. It just symlinks the node_modules folder.

Credits

ember-cli ember

Keywords

FAQs

Package last updated on 01 Jul 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc