Skip to content

Instantly share code, notes, and snippets.

View mehulkar's full-sized avatar

Mehul Kar mehulkar

View GitHub Profile
id: block-packages-imports
language: TypeScript
severity: error
message: Do not import from packages directly. Use `@api/package-name`.
rule:
kind: import_statement
has:
kind: string
has:
$ ~/build-turbo.sh && localturbo run build --skip-infer --force && for i in {1..20}; do localturbo run build --skip-infer --output-logs=new-only; done
@mehulkar
mehulkar / run-summary-schema.ts
Created March 13, 2023 06:48
run summary schema
interface RunSummary {
id: string,
turboVersion: string,
globalHashSummary: globalHashSummary,
packages: string[],
executionSummary: executionSummary,
tasks: taskSummary[],
}
interface expandedInputs {
<div {{did-update this.reRender this.counter}}>hi</div>
import Component from '@ember/component';
export default class MyComponent extends Component {
tagName='';
didInsertElement() {
super.didInsertElement(...arguments);
console.log(this.element);
}
}
import Component from '@glimmer/component';
import { inject as service } from '@ember/service'
export default class extends Component {
@service foo;
get internalComponentProp() {
return this.foo.intermediateProp;
}
<div data-test-thing>Foo::Bar::Baz component</div>
@mehulkar
mehulkar / components.foo\.js
Created January 16, 2021 04:42
New Twiddle
import Component from '@glimmer/component';
export default class extends Component {
}
import Component from '@ember/component';
export default class extends Component {
didUpdateAttrs() {
}
}