Skip to content

Commit

Permalink
feat(schematics): Add ng2-charts-schematics npm package
Browse files Browse the repository at this point in the history
Add schematics for generating components with charts.
Fore example `ng generate ng2-charts-schematics:line my-line` will
create a component called `my-line` which contains a line
chart.
  • Loading branch information
paviad committed Mar 12, 2019
1 parent 4281424 commit 7edbfc1
Show file tree
Hide file tree
Showing 25 changed files with 2,505 additions and 5 deletions.
18 changes: 18 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:4200",
"webRoot": "${workspaceFolder}",
"runtimeArgs": [
"--preserve-symlinks"
]
}
]
}
18 changes: 18 additions & 0 deletions ng2-charts-schematics/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Outputs
src/**/*.js
src/**/*.js.map
src/**/*.d.ts

# IDEs
.idea/
jsconfig.json
.vscode/

# Misc
node_modules/
npm-debug.log*
yarn-error.log*

# Mac OSX Finder files.
**/.DS_Store
.DS_Store
3 changes: 3 additions & 0 deletions ng2-charts-schematics/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Ignores TypeScript files, but keeps definitions.
*.ts
!*.d.ts
17 changes: 17 additions & 0 deletions ng2-charts-schematics/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Schematics for `ng2-charts`

## Installation

```bash
npm install --save-dev ng2-charts-schematics
```

## Usage

Generate a component with a line chart:

```bash
ng generate ng2-charts-schematics:line my-line-chart
```

Supported chart types are `line`, `bar`, `radar`, `pie`, `polar-area`, `doughnut`, `bubble` and `scatter`.
Loading

0 comments on commit 7edbfc1

Please sign in to comment.