Giter VIP home page Giter VIP logo

ember-addon-kit's Introduction

Ember Addon Kit

This is a scaffold repository to bootstrap ember addons. Hopefully it serves as a conventional project structure so tools like Ember App Kit can tool around it (like precompiling templates from addons into your app, etc.).

This is mostly a work in progress as we figure out how this should all fit together, please be patient if you decide to use it :)

Instructions

  1. Clone this repository git clone https://github.com/rpflorence/ember-addon-kit.git
  2. npm install and bower install
  3. Change 'my-addon' to the name of your addon in
    • bower.json
    • example/app/main.js
    • example/index.html
    • test/main.js
  4. $ grunt dev
  5. $ grunt karma:watch
  6. Add files to lib with the same file naming conventions found in ember app kit.
  7. Export things in main.js.

License & Copyright

MIT Style License.

Copyright (c) 2013 Instructure, Inc.

ember-addon-kit's People

Contributors

ryanflorence avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ember-addon-kit's Issues

sync-prompt hanging in bowerImport

I have defined typeahead.js as a bower dependency in bower.json which does not define any exports:

  "dependencies": {
    "ember": "~1.0.0",
    "requirejs": "~2.1.8",
    "typeahead.js": "~0.9.3"
  }

If this is the case, the createShimModule is triggered in bowerImport:

function createShimModule(pkg, mainPath) {
  var name = pkg.endpoint.name;
  console.log('# creating shim module for '+name);
  var globals = detectGlobals.fromFile(mainPath);
  var filtered = globals.filter(function(global) {
    return global && global.toLowerCase() === name.replace(/\.js$/, '');
  });
  var global;
  if (filtered.length) {
    global = filtered[0];
  } else {
    global = prompt(color.blue('> what global does '+name+' export? ('+name+'): '));
    console.log('never returns');

The problem is that after I submit a response to the global = prompt line, execution never returns. I have even tried adding:

var name = prompt('any question');

With the same result. Something seems broke about sync-prompt.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.