Created
January 19, 2018 21:35
-
-
Save nadnoslen/82e29fae98d12bbc81e6614abdd211dd to your computer and use it in GitHub Desktop.
A JetBrains IDE Live Template for for importing modules in your .js files.
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
<templateSet group="Ember.js-2.16+ Imports"> | |
<template name="icomputed" value="import { $methods$ } from '@ember/object/computed';" description="Import the @ember/object/computed" toReformat="true" toShortenFQNames="true"> | |
<variable name="methods" expression="enum("alias", "and", "bool", "collect", "deprecatingAlias", "empty", "equal", "filter", "filterBy", "gt", "gte", "intersect", "lt", "lte", "map", "mapBy", "match", "max", "min", "none", "not", "notEmpty", "oneWay", "or", "readOnly", "reads", "setDiff", "sort", "sum", "union", "uniq", "uniqBy")" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="JAVA_SCRIPT" value="true" /> | |
</context> | |
</template> | |
<template name="ievented" value="import { on } from '@ember/object/evented';" description="Import the @ember/object/evented" toReformat="true" toShortenFQNames="true"> | |
<context> | |
<option name="JAVA_SCRIPT" value="true" /> | |
</context> | |
</template> | |
<template name="iobject" value="import $emberObject$ { $methods$ } from '@ember/object';" description="Import the @ember/object" toReformat="true" toShortenFQNames="true"> | |
<variable name="emberObject" expression="enum("", "EmberObject,")" defaultValue="" alwaysStopAt="true" /> | |
<variable name="methods" expression="enum("aliasMethod", "computed", "expandProperties", "extend", "get", "getProperties", "getWithDefault", "observer", "set", "setProperties", "trySet")" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="JAVA_SCRIPT" value="true" /> | |
</context> | |
</template> | |
<template name="iapplication" value="import { $methods$ } from '@ember/application';" description="Import the @ember/application" toReformat="true" toShortenFQNames="true"> | |
<variable name="methods" expression="enum("getOwner", "setOwner")" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="JAVA_SCRIPT" value="true" /> | |
</context> | |
</template> | |
<template name="icontroller" value="import { inject } from '@ember/controller';" description="Import the @ember/controller" toReformat="true" toShortenFQNames="true"> | |
<context> | |
<option name="JAVA_SCRIPT" value="true" /> | |
</context> | |
</template> | |
<template name="idebug" value="import { $methods$ } from '@ember/debug';" description="Import the @ember/debug" toReformat="true" toShortenFQNames="true"> | |
<variable name="methods" expression="enum("assert", "debug", "registerDeprecationHandler", "registerWarnHandler", "runInDebug", "warn")" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="JAVA_SCRIPT" value="true" /> | |
</context> | |
</template> | |
<template name="ievents" value="import { $methods$ } from '@ember/object/events';" description="Import the @ember/object/events" toReformat="true" toShortenFQNames="true"> | |
<variable name="methods" expression="enum("addListener", "removeListener", "sendEvent")" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="JAVA_SCRIPT" value="true" /> | |
</context> | |
</template> | |
<template name="iinternals" value="import { $methods$ } from '@ember/object/internals';" description="Import the @ember/object/internals" toReformat="true" toShortenFQNames="true"> | |
<variable name="methods" expression="enum("cacheFor", "copy", "guidFor")" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="JAVA_SCRIPT" value="true" /> | |
</context> | |
</template> | |
<template name="imixin" value="import { create } from '@ember/object/mixin';" description="Import the @ember/object/mixin" toReformat="true" toShortenFQNames="true"> | |
<context> | |
<option name="JAVA_SCRIPT" value="true" /> | |
</context> | |
</template> | |
<template name="iobservers" value="import { $methods$ } from '@ember/object/observers';" description="Import the @ember/object/observers" toReformat="true" toShortenFQNames="true"> | |
<variable name="methods" expression="enum("addObserver", "removeObserver")" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="JAVA_SCRIPT" value="true" /> | |
</context> | |
</template> | |
<template name="ipolyfills" value="import { $methods$ } from '@ember/polyfills';" description="Import the @ember/polyfills" toReformat="true" toShortenFQNames="true"> | |
<variable name="methods" expression="enum("assign", "merge")" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="JAVA_SCRIPT" value="true" /> | |
</context> | |
</template> | |
<template name="irunloop" value="import { $methods$ } from '@ember/runloop';" description="Import the @ember/runloop" toReformat="true" toShortenFQNames="true"> | |
<variable name="methods" expression="enum("begin", "bind", "cancel", "debounce", "end", "join", "later", "next", "once", "run", "schedule", "scheduleOnce", "throttle")" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="JAVA_SCRIPT" value="true" /> | |
</context> | |
</template> | |
<template name="iservice" value="import { inject } from '@ember/service';" description="Import the @ember/service" toReformat="true" toShortenFQNames="true"> | |
<context> | |
<option name="JAVA_SCRIPT" value="true" /> | |
</context> | |
</template> | |
<template name="istring" value="import { $methods$ } from '@ember/string';" description="Import the @ember/string" toReformat="true" toShortenFQNames="true"> | |
<variable name="methods" expression="enum("htmlSafe", "isHTMLSafe")" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="JAVA_SCRIPT" value="true" /> | |
</context> | |
</template> | |
<template name="iutils" value="import { $methods$ } from '@ember/utils';" description="Import the @ember/utils" toReformat="true" toShortenFQNames="true"> | |
<variable name="methods" expression="enum("isBlank", "isEmpty", "isNone", "isPresent", "typeOf")" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="JAVA_SCRIPT" value="true" /> | |
</context> | |
</template> | |
<template name="irsvp" value="import { $methods$ } from '@ember/rsvp';" description="Import the @ember/rsvp" toReformat="true" toShortenFQNames="true"> | |
<variable name="methods" expression="enum("all", "allSettled", "defer", "denodeify", "filter", "hash", "hashSettled", "map", "race", "reject", "resolve", "rethrow")" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="JAVA_SCRIPT" value="true" /> | |
</context> | |
</template> | |
<template name="ijquery" value="import { $ } from 'jquery';" description="Import the jquery" toReformat="true" toShortenFQNames="true"> | |
<context> | |
<option name="JAVA_SCRIPT" value="true" /> | |
</context> | |
</template> | |
<template name="ideprecations" value="import { deprecate } from '@ember/application/deprecations';" description="Import the @ember/application/deprecations" toReformat="true" toShortenFQNames="true"> | |
<context> | |
<option name="JAVA_SCRIPT" value="true" /> | |
</context> | |
</template> | |
</templateSet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment