Ember CLI expects folders to be a certain way, particularly the app folder. You may choose to refactor, or you may choose to keep your own structure. The following is an example of a Broccoli configuration to do so:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { "keys": ["tab"], "command": "insert_best_completion", "args": {"default": "\t", "exact": true} }, | |
| { "keys": ["tab"], "command": "insert_best_completion", "args": {"default": "\t", "exact": false}, | |
| "context": | |
| [ | |
| { "key": "setting.tab_completion", "operator": "equal", "operand": true } | |
| ] | |
| }, | |
| { "keys": ["tab"], "command": "replace_completion_with_next_completion", "context": | |
| [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| NodeJS OC Talk History | |
| ====================== | |
| 2014 | |
| ---- | |
| September 10, 2014 | |
| "Node.js and Docker in Production" | |
| Jason and Jeff, Zillow | |
| Host: Zillow |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| /* Keybindings for emacs emulation. Compiled by Jacob Rus. | |
| * https://www.hcs.harvard.edu/~jrus/site/cocoa-text.html | |
| * | |
| * Place in ~/Library/KeyBindings/DefaultKeyBinding.dict | |
| * | |
| * This is a pretty good set, especially considering that many emacs bindings | |
| * such as C-o, C-a, C-e, C-k, C-y, C-v, C-f, C-b, C-p, C-n, C-t, and | |
| * perhaps a few more, are already built into the system. | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # See http://www.ember-cli.com/#using-modules | |
| # Assumes your ember JS is in app/js/ | |
| # | |
| # TODO: | |
| # - make ember js src directory a variable | |
| # - make error to search for variable | |
| # - make replacement string variable | |
| # - abstract into function |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import subprocess | |
| import sublime, sublime_plugin | |
| import os | |
| PLUGIN_FOLDER = os.path.dirname(os.path.realpath(__file__)) | |
| SCRIPT_PATH = PLUGIN_FOLDER + '/node_modules/jsfmt/lib/run.js' | |
| NODE_PATH = '/usr/local/bin/node' # Change to your node location (How can we `/usr/bin/env node` here?) | |
| class FormatJavascript(sublime_plugin.TextCommand): | |
| def run(self, edit): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Brocfile.js | |
| // ember-simple-auth <= v0.5.3 | |
| app.import('bower_components/ember-simple-auth/amd/ember-simple-auth.js', { | |
| exports: { | |
| 'ember-simple-auth/setup': ['default'], | |
| 'ember-simple-auth/authenticators/base': ['default'], | |
| 'ember-simple-auth/authorizers/base': ['default'], | |
| 'ember-simple-auth/mixins/application_route_mixin': ['default'], | |
| 'ember-simple-auth/mixins/authenticated_route_mixin': ['default'], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| file changed models/media.js | |
| Build successful - 7257ms. | |
| Slowest Trees | Total | |
| -------------------------------+---------------- | |
| Remover | 1672ms | |
| LessCompiler | 1377ms | |
| JSHint - App | 1226ms | |
| Remover | 1189ms |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // Broccoli may be easier to understand if you think of it functionally | |
| // | |
| // This is an incomplete Brocfile.js! Not even sure if it's valid. | |
| // Adapted from http://ampersate.com/getting-started-with-broccoli-and-emberjs | |
| // | |
| // Note: This would probably look nicer in CoffeeScript | |
| // Note: This would probably look best in ClojureScript | |
| // |
OlderNewer