Skip to content

Commit 803a759

Browse files
committed
feat: initial files
1 parent 1f80636 commit 803a759

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+477
-96
lines changed

.github/workflows/deploy.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
name: Deploy on GitHub Pages
1+
# name: Deploy on GitHub Pages
22

3-
on:
4-
push:
5-
branches:
6-
- main
3+
# on:
4+
# push:
5+
# branches:
6+
# - main
77

8-
jobs:
9-
build:
10-
runs-on: ubuntu-latest
8+
# jobs:
9+
# build:
10+
# runs-on: ubuntu-latest
1111

12-
steps:
13-
- uses: actions/checkout@v2
14-
- name: Use Node.js
15-
uses: actions/setup-node@v1
16-
with:
17-
node-version: "16.x"
12+
# steps:
13+
# - uses: actions/checkout@v2
14+
# - name: Use Node.js
15+
# uses: actions/setup-node@v1
16+
# with:
17+
# node-version: "16.x"
1818

19-
- name: NPM install, build and deploy
20-
env:
21-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
22-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
23-
run: |
24-
npm ci
25-
npm run build -- --prod
26-
npm run deploy -- --no-silent --name="Mr. Dharmen's Bot" [email protected]
19+
# - name: NPM install, build and deploy
20+
# env:
21+
# GH_TOKEN: ${{ secrets.GH_TOKEN }}
22+
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
23+
# run: |
24+
# npm ci
25+
# npm run build -- --prod
26+
# npm run deploy -- --no-silent --name="Mr. Dharmen's Bot" [email protected]

.github/workflows/release.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
name: Publish the library
1+
# name: Publish the library
22

3-
on: push
3+
# on: push
44

5-
jobs:
6-
build:
7-
runs-on: ubuntu-latest
5+
# jobs:
6+
# build:
7+
# runs-on: ubuntu-latest
88

9-
steps:
10-
- uses: actions/checkout@v2
11-
- name: Use Node.js
12-
uses: actions/setup-node@v1
13-
with:
14-
node-version: "16.x"
9+
# steps:
10+
# - uses: actions/checkout@v2
11+
# - name: Use Node.js
12+
# uses: actions/setup-node@v1
13+
# with:
14+
# node-version: "16.x"
1515

16-
- name: NPM install, lint, build, test and release
17-
env:
18-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
19-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
20-
run: |
21-
npm ci
22-
npm run lint
23-
npm run build -- --prod
24-
npm run test -- --watch=false --browsers=ChromeHeadless
25-
npm run build:lib
26-
npx semantic-release --debug
16+
# - name: NPM install, lint, build, test and release
17+
# env:
18+
# GH_TOKEN: ${{ secrets.GH_TOKEN }}
19+
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
20+
# run: |
21+
# npm ci
22+
# npm run lint
23+
# npm run build -- --prod
24+
# npm run test -- --watch=false --browsers=ChromeHeadless
25+
# npm run build:lib
26+
# npx semantic-release --debug

angular.json

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,8 @@
2323
"polyfills": "src/polyfills.ts",
2424
"tsConfig": "tsconfig.app.json",
2525
"inlineStyleLanguage": "scss",
26-
"assets": [
27-
"src/favicon.ico",
28-
"src/assets"
29-
],
30-
"styles": [
31-
"src/styles.scss"
32-
],
26+
"assets": ["src/favicon.ico", "src/assets"],
27+
"styles": ["src/styles.scss"],
3328
"scripts": []
3429
},
3530
"configurations": {
@@ -91,13 +86,8 @@
9186
"tsConfig": "tsconfig.spec.json",
9287
"karmaConfig": "karma.conf.js",
9388
"inlineStyleLanguage": "scss",
94-
"assets": [
95-
"src/favicon.ico",
96-
"src/assets"
97-
],
98-
"styles": [
99-
"src/styles.scss"
100-
],
89+
"assets": ["src/favicon.ico", "src/assets"],
90+
"styles": ["src/styles.scss"],
10191
"scripts": []
10292
}
10393
},
@@ -108,9 +98,14 @@
10898
},
10999
"@ngneat/cmdk": {
110100
"projectType": "library",
101+
"schematics": {
102+
"@schematics/angular:component": {
103+
"style": "scss"
104+
}
105+
},
111106
"root": "projects/ngneat/cmdk",
112107
"sourceRoot": "projects/ngneat/cmdk/src",
113-
"prefix": "lib",
108+
"prefix": "cmdk",
114109
"architect": {
115110
"build": {
116111
"builder": "@angular-devkit/build-angular:ng-packagr",

projects/ngneat/cmdk/.eslintrc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@
2020
"error",
2121
{
2222
"type": "attribute",
23-
"prefix": "lib",
23+
"prefix": "cmdk",
2424
"style": "camelCase"
2525
}
2626
],
2727
"@angular-eslint/component-selector": [
2828
"error",
2929
{
3030
"type": "element",
31-
"prefix": "lib",
31+
"prefix": "cmdk",
3232
"style": "kebab-case"
3333
}
3434
]

projects/ngneat/cmdk/src/lib/cmdk.component.spec.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

projects/ngneat/cmdk/src/lib/cmdk.component.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,27 @@
11
import { NgModule } from '@angular/core';
2-
import { CmdkComponent } from './cmdk.component';
3-
4-
2+
import { DialogComponent } from './components/dialog/dialog.component';
3+
import { ListComponent } from './components/list/list.component';
4+
import { ListItemComponent } from './components/list-item/list-item.component';
5+
import { SeparatorComponent } from './components/separator/separator.component';
6+
import { InputComponent } from './components/input/input.component';
7+
import { GroupComponent } from './components/group/group.component';
8+
import { EmptyComponent } from './components/empty/empty.component';
9+
import { LoaderComponent } from './components/loader/loader.component';
10+
import { CommandComponent } from './components/command/command.component';
511

612
@NgModule({
713
declarations: [
8-
CmdkComponent
9-
],
10-
imports: [
14+
DialogComponent,
15+
ListComponent,
16+
ListItemComponent,
17+
SeparatorComponent,
18+
InputComponent,
19+
GroupComponent,
20+
EmptyComponent,
21+
LoaderComponent,
22+
CommandComponent,
1123
],
12-
exports: [
13-
CmdkComponent
14-
]
24+
imports: [],
25+
exports: [],
1526
})
16-
export class CmdkModule { }
27+
export class CmdkModule {}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p>command works!</p>

projects/ngneat/cmdk/src/lib/components/command/command.component.scss

Whitespace-only changes.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { ComponentFixture, TestBed } from '@angular/core/testing';
2+
3+
import { CommandComponent } from './command.component';
4+
5+
describe('CommandComponent', () => {
6+
let component: CommandComponent;
7+
let fixture: ComponentFixture<CommandComponent>;
8+
9+
beforeEach(async () => {
10+
await TestBed.configureTestingModule({
11+
declarations: [ CommandComponent ]
12+
})
13+
.compileComponents();
14+
15+
fixture = TestBed.createComponent(CommandComponent);
16+
component = fixture.componentInstance;
17+
fixture.detectChanges();
18+
});
19+
20+
it('should create', () => {
21+
expect(component).toBeTruthy();
22+
});
23+
});

0 commit comments

Comments
 (0)