Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(all): shorten customElement declarations
- Loading branch information
Showing
24 changed files
with
48 additions
and
244 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,7 @@ | ||
|
||
import { customElement } from '@aurelia/runtime'; | ||
import * as view from 'text!./app.html'; | ||
import * as template from 'text!./app.html'; | ||
|
||
@customElement({ | ||
name: 'app', | ||
template: <any>view, | ||
build: { | ||
required: true, | ||
compiler: 'default' | ||
}, | ||
instructions: [] | ||
}) | ||
@customElement({ name: 'app', template }) | ||
export class App { | ||
message = 'Hello World!'; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,7 @@ | ||
|
||
import { customElement } from '@aurelia/runtime'; | ||
import * as view from './app.html'; | ||
import * as template from './app.html'; | ||
|
||
@customElement({ | ||
name: 'app', | ||
template: <any>view, | ||
build: { | ||
required: true, | ||
compiler: 'default' | ||
}, | ||
instructions: [] | ||
}) | ||
@customElement({ name: 'app', template }) | ||
export class App { | ||
|
||
message = 'Hello World!'; | ||
} | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,7 @@ | ||
import { customElement } from '@aurelia/runtime'; | ||
import view from './app.html'; | ||
import template from './app.html'; | ||
|
||
@customElement({ | ||
name: 'app', | ||
template: view, | ||
build: { | ||
required: true, | ||
compiler: 'default' | ||
}, | ||
instructions: [] | ||
}) | ||
@customElement({ name: 'app', template }) | ||
export class App { | ||
message = 'Hello World!'; | ||
} | ||
} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,7 @@ | ||
import { customElement } from '@aurelia/runtime'; | ||
import view from './app.html'; | ||
import template from './app.html'; | ||
|
||
@customElement({ | ||
name: 'app', | ||
template: view, | ||
build: { | ||
required: true, | ||
compiler: 'default' | ||
}, | ||
instructions: [] | ||
}) | ||
@customElement({ name: 'app', template }) | ||
export class App { | ||
message = 'Hello World!'; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,7 @@ | ||
import { customElement } from '@aurelia/runtime'; | ||
import view from './app.html'; | ||
import template from './app.html'; | ||
|
||
@customElement({ | ||
name: 'app', | ||
template: view, | ||
build: { | ||
required: true, | ||
compiler: 'default' | ||
}, | ||
instructions: [] | ||
}) | ||
@customElement({ name: 'app', template }) | ||
export class App { | ||
message = 'Hello World!'; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,7 @@ | ||
|
||
import { customElement } from '@aurelia/runtime'; | ||
import * as view from 'text!./app.html'; | ||
import * as template from 'text!./app.html'; | ||
|
||
@customElement({ | ||
name: 'app', | ||
template: <any>view, | ||
build: { | ||
required: true, | ||
compiler: 'default' | ||
}, | ||
instructions: [] | ||
}) | ||
@customElement({ name: 'app', template }) | ||
export class App { | ||
message = 'Hello World!'; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,7 @@ | ||
|
||
import { customElement } from '@aurelia/runtime'; | ||
import * as view from './app.html'; | ||
import * as template from './app.html'; | ||
|
||
@customElement({ | ||
name: 'app', | ||
template: <any>view, | ||
build: { | ||
required: true, | ||
compiler: 'default' | ||
}, | ||
instructions: [] | ||
}) | ||
@customElement({ name: 'app', template }) | ||
export class App { | ||
|
||
message = 'Hello World!'; | ||
} | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,7 @@ | ||
import { customElement } from '@aurelia/runtime'; | ||
import view from './app.html'; | ||
import template from './app.html'; | ||
|
||
@customElement({ | ||
name: 'app', | ||
template: view, | ||
build: { | ||
required: true, | ||
compiler: 'default' | ||
}, | ||
instructions: [] | ||
}) | ||
@customElement({ name: 'app', template }) | ||
export class App { | ||
message = 'Hello World!'; | ||
} | ||
} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,7 @@ | ||
import { customElement } from '@aurelia/runtime'; | ||
import view from './app.html'; | ||
import template from './app.html'; | ||
|
||
@customElement({ | ||
name: 'app', | ||
template: view, | ||
build: { | ||
required: true, | ||
compiler: 'default' | ||
}, | ||
instructions: [] | ||
}) | ||
@customElement({ name: 'app', template }) | ||
export class App { | ||
message = 'Hello World!'; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,7 @@ | ||
import { customElement } from '@aurelia/runtime'; | ||
import view from './app.html'; | ||
import template from './app.html'; | ||
|
||
@customElement({ | ||
name: 'app', | ||
template: view, | ||
build: { | ||
required: true, | ||
compiler: 'default' | ||
}, | ||
instructions: [] | ||
}) | ||
@customElement({ name: 'app', template }) | ||
export class App { | ||
message = 'Hello World!'; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,7 @@ | ||
|
||
import { customElement } from '@aurelia/runtime'; | ||
import * as view from 'text!./app.html'; | ||
import * as template from 'text!./app.html'; | ||
|
||
@customElement({ | ||
name: 'app', | ||
template: <any>view, | ||
build: { | ||
required: true, | ||
compiler: 'default' | ||
}, | ||
instructions: [] | ||
}) | ||
@customElement({ name: 'app', template }) | ||
export class App { | ||
message = 'Hello World!'; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,7 @@ | ||
|
||
import { customElement } from '@aurelia/runtime'; | ||
import * as view from './app.html'; | ||
import * as template from './app.html'; | ||
|
||
@customElement({ | ||
name: 'app', | ||
template: <any>view, | ||
build: { | ||
required: true, | ||
compiler: 'default' | ||
}, | ||
instructions: [] | ||
}) | ||
@customElement({ name: 'app', template }) | ||
export class App { | ||
|
||
message = 'Hello World!'; | ||
} | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,7 @@ | ||
import { customElement } from '@aurelia/runtime'; | ||
import view from './app.html'; | ||
import template from './app.html'; | ||
|
||
@customElement({ | ||
name: 'app', | ||
template: view, | ||
build: { | ||
required: true, | ||
compiler: 'default' | ||
}, | ||
instructions: [] | ||
}) | ||
@customElement({ name: 'app', template }) | ||
export class App { | ||
message = 'Hello World!'; | ||
} | ||
} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,7 @@ | ||
import { customElement } from '@aurelia/runtime'; | ||
import view from './app.html'; | ||
import template from './app.html'; | ||
|
||
@customElement({ | ||
name: 'app', | ||
template: view, | ||
build: { | ||
required: true, | ||
compiler: 'default' | ||
}, | ||
instructions: [] | ||
}) | ||
@customElement({ name: 'app', template }) | ||
export class App { | ||
message = 'Hello World!'; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,7 @@ | ||
import { customElement } from '@aurelia/runtime'; | ||
import view from './app.html'; | ||
import template from './app.html'; | ||
|
||
@customElement({ | ||
name: 'app', | ||
template: view, | ||
build: { | ||
required: true, | ||
compiler: 'default' | ||
}, | ||
instructions: [] | ||
}) | ||
@customElement({ name: 'app', template }) | ||
export class App { | ||
message = 'Hello World!'; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,7 @@ | ||
|
||
import { customElement } from '@aurelia/runtime'; | ||
import * as view from 'text!./app.html'; | ||
import * as template from 'text!./app.html'; | ||
|
||
@customElement({ | ||
name: 'app', | ||
template: <any>view, | ||
build: { | ||
required: true, | ||
compiler: 'default' | ||
}, | ||
instructions: [] | ||
}) | ||
@customElement({ name: 'app', template }) | ||
export class App { | ||
message = 'Hello World!'; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,7 @@ | ||
|
||
import { customElement } from '@aurelia/runtime'; | ||
import * as view from './app.html'; | ||
import * as template from './app.html'; | ||
|
||
@customElement({ | ||
name: 'app', | ||
template: <any>view, | ||
build: { | ||
required: true, | ||
compiler: 'default' | ||
}, | ||
instructions: [] | ||
}) | ||
@customElement({ name: 'app', template }) | ||
export class App { | ||
|
||
message = 'Hello World!'; | ||
} | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,7 @@ | ||
import { customElement } from '@aurelia/runtime'; | ||
import view from './app.html'; | ||
import template from './app.html'; | ||
|
||
@customElement({ | ||
name: 'app', | ||
template: view, | ||
build: { | ||
required: true, | ||
compiler: 'default' | ||
}, | ||
instructions: [] | ||
}) | ||
@customElement({ name: 'app', template }) | ||
export class App { | ||
message = 'Hello World!'; | ||
} | ||
} |
Oops, something went wrong.