Skip to content

Commit

Permalink
Merge pull request #3 from zingchart/dev
Browse files Browse the repository at this point in the history
v0.0.7
  • Loading branch information
damntrecky authored Aug 5, 2020
2 parents a945cc0 + 48bc835 commit c21b091
Show file tree
Hide file tree
Showing 9 changed files with 4,404 additions and 3,076 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Name is optional and if present must be used
# in the url path for badges
name: Build

# Run on a dev branch
on:
push:
branches:
- master
- dev
pull_request:
branches:
- master

jobs:
Build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.13]

steps:
- name: Checkout Repository
uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
# npm ci REQUIRES a package-lock.json file
- name: Install Fresh Dependencies
run: |
rm package-lock.json
npm install
- name: Build library
run: npm run build
- name: Log build output
run: |
ls -alt dist/
32 changes: 32 additions & 0 deletions .github/workflows/publish-to-npm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@

# Name is optional and if present must be used
# in the url path for badges
name: Publish to NPM

# only run when a release has been "published"
on:
release:
types: [published]

jobs:

# publish to npm on release
publish:
name: NPM Publish
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm run build
- run: cd dist/zingchart-angular && npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
38 changes: 38 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Name is optional and if present must be used
# in the url path for badges
name: Test

# Run on a dev branch
on:
push:
branches:
- master
- dev
pull_request:
branches:
- master

jobs:
Test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.13]

steps:
- name: Checkout Repository
uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
# npm ci REQUIRES a package-lock.json file
- name: Install Fresh Dependencies
run: |
rm package-lock.json
npm install
- name: Build library
run: npm run build
- name: Run Unit Tests
run: npm run test
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
# zingchart-angular
![](https://img.shields.io/npm/v/zingchart-angular)
![](https://github.com/zingchart/zingchart-angular/workflows/Build/badge.svg?branch=master)
![](https://github.com/zingchart/zingchart-angular/workflows/Test/badge.svg?branch=master)
![](https://img.shields.io/npm/dw/zingchart-angular)

![](https://img.shields.io/david/zingchart/zingchart-angular)
![](https://img.shields.io/david/peer/zingchart/zingchart-angular)
![](https://img.shields.io/david/dev/zingchart/zingchart-angular)


Quickly add charts to your Angular application with our ZingChart component

Expand Down Expand Up @@ -80,6 +88,10 @@ The width of the chart. Defaults to 100%
### height [string or number] (optional)
The height of the chart. Defaults to 480px.

### output [string] (optional)

The render type of the chart. **The default is `svg`** but you can also pass the string `canvas` to render the charts in canvas.

### theme [object] (optional)
The theme or 'defaults' object defined by ZingChart. More information available here: https://www.zingchart.com/docs/api/themes

Expand Down
2 changes: 1 addition & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
"preserveSymlinks": true,
"options": {
"tsConfig": "projects/zingchart-angular/tsconfig.lib.json",
"project": "projects/zingchart-angular/ng-package.json",
"project": "projects/zingchart-angular/ng-package.json"
}
},
"test": {
Expand Down
Loading

0 comments on commit c21b091

Please sign in to comment.