Skip to content

Commit 6ff6df9

Browse files
committed
chore: improve readme and adding copy script
1 parent 4691144 commit 6ff6df9

File tree

3 files changed

+6
-33
lines changed

3 files changed

+6
-33
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Code Editor
22

3-
CodeMirror 6 wrapper for Angular
3+
[![npm](https://img.shields.io/npm/v/@acrodata/code-editor.svg)](https://www.npmjs.com/package/@acrodata/code-editor)
4+
[![license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/acrodata/code-editor/blob/main/LICENSE)
5+
6+
CodeMirror6 wrapper for Angular
47

58
## Installation
69

@@ -22,7 +25,7 @@ import { CodeEditor } from '@acrodata/code-editor';
2225
imports: [FormsModule, CodeEditor],
2326
})
2427
export class YourAppComponent {
25-
value = '';
28+
value = 'console.log("Hello world")';
2629
}
2730
```
2831

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"lint:ts": "eslint \"**/*.ts\" --fix",
1717
"lint:scss": "stylelint \"**/*.scss\" --fix",
1818
"build:lib": "ng build code-editor",
19+
"postbuild:lib": "cp README.md dist/code-editor",
1920
"publish": "npm run build:lib && cd dist/code-editor && npm publish",
2021
"predeploy": "npm run build",
2122
"deploy": "angular-cli-ghpages --no-silent --dir=dist/dev-app/browser",

projects/code-editor/README.md

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

0 commit comments

Comments
 (0)