Skip to content

Commit e53e8a3

Browse files
committed
updated publish
updated docs
1 parent 39a3330 commit e53e8a3

File tree

8 files changed

+46
-55
lines changed

8 files changed

+46
-55
lines changed

.idea/workspace.xml

Lines changed: 13 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,23 @@ Angular UI components in modern ui style.
44

55
[Documentation](https://morrisjdev.github.io/ng-metro4/#/)
66

7-
![Screenshot](projects/ng-metro4/ng-metro4%20screenshot.PNG)
7+
![Screenshot](https://raw.githubusercontent.com/morrisjdev/ng-metro4/master/projects/ng-metro4/ng-metro4%20screenshot.PNG)
88

99
See metro4 for more details:
1010
[Metro4](https://metroui.org.ua/)
1111

12+
ng-metro4 on npm:
13+
[ng-metro4](https://www.npmjs.com/package/ng-metro4)
14+
1215
## Installation
1316

14-
1. Install using Angular CLI:
17+
### Install using Angular CLI:
1518

1619
````
1720
ng add ng-metro4
1821
````
1922

20-
3. Import modules:
23+
### Import module:
2124

2225
Add NgMetro4Module to your imports:
2326

@@ -31,6 +34,13 @@ imports: [
3134
]
3235
````
3336

37+
### Generate layout
38+
39+
````
40+
ng g ng-metro4:layout
41+
````
42+
43+
3444
## Usage
3545

3646
Check out the [Documentation](https://morrisjdev.github.io/ng-metro4/#/)

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"lint": "ng lint",
1010
"e2e": "ng e2e",
1111
"build-schematics": "tsc -p projects/ng-metro4/tsconfig.schematics.json --outDir dist/ng-metro4/schematics && cpx dist/ng-metro4/schematics/src/schematics/** dist/ng-metro4/schematics && cpx projects/ng-metro4/src/schematics/**/{collection.json,schema.json,files/**} dist/ng-metro4/schematics",
12-
"publish": "npm run build -- ng-metro4 && npm run build-schematics && cd ./dist/ng-metro4 && npm publish",
12+
"publish": "npm run build -- ng-metro4 && npm run build-schematics && cpx ./README.md ./dist/ng-metro4 && cd ./dist/ng-metro4 && npm publish",
1313
"publish-doc": "npm run build -- ng-metro4 && ng run metro4-demo:deploy"
1414
},
1515
"private": true,
@@ -25,7 +25,7 @@
2525
"core-js": "^2.5.4",
2626
"highlight.js": "^9.15.10",
2727
"linq4js": "^2.2.2",
28-
"metro4": "^4.3.1",
28+
"metro4": "^4.3.2",
2929
"moment": "^2.24.0",
3030
"ngx-highlightjs": "^3.0.3",
3131
"rxjs": "~6.5.2",

projects/ng-metro4/README.md

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

projects/ng-metro4/package.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
11
{
22
"name": "ng-metro4",
3-
"description": "ng-metro4 is an implementation of the beautiful metro4 components",
4-
"version": "1.0.0",
3+
"description": "Angular components for Metro4 UI library in modern ui style.",
4+
"version": "1.0.3",
55
"peerDependencies": {
66
"@angular/common": "~8.1.0",
77
"@angular/core": "~8.1.0",
88
"moment": "^2.24.0",
9-
"metro4": "^4.3.1",
9+
"metro4": "^4.3.2",
1010
"rxjs": "~6.5.2"
1111
},
1212
"schematics": "./schematics/collection.json",
1313
"keywords": [
14+
"angular",
1415
"metro4",
1516
"ui",
16-
"angular"
17+
"typescript",
18+
"javascript",
19+
"ng-metro4",
20+
"css",
21+
"less",
22+
"mobile"
1723
],
1824
"author": {
1925
"name": "Morris Janatzek"

projects/ng-metro4/src/schematics/layout/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ export default function(options: LayoutOptions): Rule {
55
return (host: Tree, context: SchematicContext) => {
66
const sourceTemplate = url('./files');
77

8+
if (host.exists('src/app/app.component.html')) {
9+
host.delete('src/app/app.component.html');
10+
}
11+
812
const sourceParametrizedTemplate = apply(sourceTemplate, [
913
template({
1014
...options

src/app/form/checkbox/checkbox.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ <h1>Checkbox</h1>
9191
]]>
9292
</app-doc-component>
9393

94-
<app-doc-component title="Treeview (Bugfixing in progress!)" [values]="{ model: [1, 3, 5, 11] }" [showModel]="true">
94+
<app-doc-component title="Treeview" [values]="{ model: [1, 3, 5, 11] }" [showModel]="true">
9595
<![CDATA[
9696
<m4-checkbox-group [(ngModel)]="model">\l
9797
\t

0 commit comments

Comments
 (0)