-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into ibarakov/react-add-style-utils
- Loading branch information
Showing
28 changed files
with
311 additions
and
132 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
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
33 changes: 33 additions & 0 deletions
33
packages/cli/templates/react/igr-ts/projects/_base/files/__dot__github/workflows/node.js.yml
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | ||
|
||
name: Node.js CI | ||
|
||
on: | ||
push: | ||
branches: [ $(yamlDefaultBranch) ] | ||
pull_request: | ||
branches: [ $(yamlDefaultBranch) ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [14.x, 16.x] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
# cache: 'npm' # enable after committing lock file from first install | ||
- run: npm i # replace with 'npm ci' after committing lock file from first install | ||
# - run: npm run lint | ||
- run: npm run build | ||
- run: npm run test | ||
|
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 |
---|---|---|
|
@@ -18,6 +18,7 @@ export default defineConfig({ | |
mainFields: ['module'], | ||
}, | ||
server: { | ||
open: true, | ||
port: 3003 | ||
} | ||
}) |
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
9 changes: 9 additions & 0 deletions
9
...s/webcomponents/igc-ts/button-group/default/files/src/app/__path__/__filePrefix__.test.ts
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { expect } from '@open-wc/testing'; | ||
import $(ClassName) from './$(path).js'; | ||
|
||
describe('IgcButtonGroupComponent', () => { | ||
it('<app-$(path)> is an instance of $(ClassName)', async () => { | ||
const element = document.createElement('app-$(path)'); | ||
expect(element).to.be.instanceOf($(ClassName)); | ||
}); | ||
}); |
21 changes: 21 additions & 0 deletions
21
...plates/webcomponents/igc-ts/button-group/default/files/src/app/__path__/__filePrefix__.ts
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { html, LitElement } from 'lit'; | ||
import { customElement } from 'lit/decorators.js'; | ||
import { | ||
defineComponents, | ||
IgcButtonGroupComponent, | ||
} from 'igniteui-webcomponents'; | ||
|
||
defineComponents(IgcButtonGroupComponent); | ||
|
||
@customElement('app-$(path)') | ||
export default class $(ClassName) extends LitElement { | ||
render() { | ||
return html` | ||
<igc-button-group> | ||
<igc-toggle-button value="left">Left</igc-toggle-button> | ||
<igc-toggle-button value="center">Center</igc-toggle-button> | ||
<igc-toggle-button value="right">Right</igc-toggle-button> | ||
</igc-button-group> | ||
`; | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
packages/cli/templates/webcomponents/igc-ts/button-group/default/index.ts
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { TypeScriptFileUpdate } from "@igniteui/cli-core"; | ||
import { IgniteUIForWebComponentsTemplate } from "../../../../../lib/templates/IgniteUIForWebComponentsTemplate"; | ||
|
||
class IgcTabsTemplate extends IgniteUIForWebComponentsTemplate { | ||
constructor() { | ||
super(__dirname); | ||
this.components = ["ButtonGroup"]; | ||
this.controlGroup = "Data Entry & Display"; | ||
this.listInComponentTemplates = true; | ||
this.id = "button-group"; | ||
this.projectType = "igc-ts"; | ||
this.name = "Button group"; | ||
this.description = "basic IgcButtonGroup"; | ||
} | ||
protected addClassDeclaration(mainModule: TypeScriptFileUpdate, projPath: string, name: string, modulePath: string) { | ||
// not applicable with custom module | ||
} | ||
} | ||
module.exports = new IgcTabsTemplate(); |
14 changes: 14 additions & 0 deletions
14
packages/cli/templates/webcomponents/igc-ts/button-group/index.ts
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { BaseComponent } from "@igniteui/cli-core"; | ||
|
||
class IgcButtonGroupComponent extends BaseComponent { | ||
/** | ||
* | ||
*/ | ||
constructor() { | ||
super(__dirname); | ||
this.name = "Button group"; | ||
this.group = "Data Entry & Display"; | ||
this.description = `Basic button group component`; | ||
} | ||
} | ||
module.exports = new IgcButtonGroupComponent(); |
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
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
9 changes: 9 additions & 0 deletions
9
...ates/webcomponents/igc-ts/text-area/default/files/src/app/__path__/__filePrefix__.test.ts
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { expect } from '@open-wc/testing'; | ||
import $(ClassName) from './$(path).js'; | ||
|
||
describe('IgcTextareaComponent', () => { | ||
it('<app-$(path)> is an instance of $(ClassName)', async () => { | ||
const element = document.createElement('app-$(path)'); | ||
expect(element).to.be.instanceOf($(ClassName)); | ||
}); | ||
}); |
19 changes: 19 additions & 0 deletions
19
...templates/webcomponents/igc-ts/text-area/default/files/src/app/__path__/__filePrefix__.ts
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { html, LitElement } from 'lit'; | ||
import { customElement } from 'lit/decorators.js'; | ||
import { | ||
defineComponents, | ||
IgcTextareaComponent, | ||
} from 'igniteui-webcomponents'; | ||
|
||
defineComponents(IgcTextareaComponent); | ||
|
||
@customElement('app-$(path)') | ||
export default class $(ClassName) extends LitElement { | ||
render() { | ||
return html` | ||
<igc-textarea | ||
label="Leave your comment"> | ||
</igc-textarea> | ||
`; | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
packages/cli/templates/webcomponents/igc-ts/text-area/default/index.ts
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { TypeScriptFileUpdate } from "@igniteui/cli-core"; | ||
import { IgniteUIForWebComponentsTemplate } from "../../../../../lib/templates/IgniteUIForWebComponentsTemplate"; | ||
|
||
class IgcTextareaComponent extends IgniteUIForWebComponentsTemplate { | ||
constructor() { | ||
super(__dirname); | ||
this.components = ["Teaxtarea"]; | ||
this.controlGroup = "Data Entry & Display"; | ||
this.listInComponentTemplates = true; | ||
this.id = "text-area"; | ||
this.projectType = "igc-ts"; | ||
this.name = "Text area"; | ||
this.description = "basic IgcTextarea"; | ||
} | ||
protected addClassDeclaration(mainModule: TypeScriptFileUpdate, projPath: string, name: string, modulePath: string) { | ||
// not applicable with custom module | ||
} | ||
} | ||
module.exports = new IgcTextareaComponent(); |
17 changes: 17 additions & 0 deletions
17
packages/cli/templates/webcomponents/igc-ts/text-area/index.ts
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { BaseComponent, TypeScriptFileUpdate } from "@igniteui/cli-core"; | ||
|
||
class IgcTextareaComponent extends BaseComponent { | ||
/** | ||
* | ||
*/ | ||
constructor() { | ||
super(__dirname); | ||
this.name = "Text area"; | ||
this.group = "Data Entry & Display"; | ||
this.description = `Basic text area component`; | ||
} | ||
protected addClassDeclaration(mainModule: TypeScriptFileUpdate, projPath: string, name: string, modulePath: string) { | ||
// not applicable with custom module | ||
} | ||
} | ||
module.exports = new IgcTextareaComponent(); |
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
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
Oops, something went wrong.