This repository has been archived by the owner on Dec 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from pxblue/dev
Publish v2.1.0
- Loading branch information
Showing
22 changed files
with
392 additions
and
306 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,74 @@ | ||
version: 2 | ||
version: 2.1 | ||
orbs: | ||
gh: circleci/[email protected] | ||
jobs: | ||
build: | ||
docker: | ||
- image: circleci/node:12.9.1-browsers | ||
steps: | ||
- checkout | ||
- run: | ||
name: Install Dependencies | ||
command: yarn | ||
- run: | ||
name: Test | ||
command: yarn test | ||
- run: | ||
name: Build Package | ||
command: yarn build | ||
- run: | ||
name: Verify Artifacts | ||
command: yarn test:build | ||
- persist_to_workspace: | ||
root: . | ||
paths: | ||
- dist | ||
build: | ||
docker: | ||
- image: circleci/node:12.9.1-browsers | ||
steps: | ||
- checkout | ||
- run: | ||
name: Install Dependencies | ||
command: yarn | ||
- run: | ||
name: Test | ||
command: yarn test | ||
- run: | ||
name: Build Package | ||
command: yarn build | ||
- run: | ||
name: Verify Artifacts | ||
command: yarn test:build | ||
- persist_to_workspace: | ||
root: . | ||
paths: | ||
- dist | ||
|
||
publish: | ||
docker: | ||
- image: circleci/node:12.9.1-browsers | ||
steps: | ||
- checkout | ||
- attach_workspace: | ||
at: . | ||
- run: | ||
name: Authenticate with registry | ||
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc | ||
- run: | ||
name: Publish @pxblue/highcharts | ||
command: | | ||
MASTER_VERSION=`node -p "require('./package.json').version"` | ||
NPM_LATEST_VERSION=`npm show @pxblue/highcharts version` | ||
if ! [ $MASTER_VERSION == $NPM_LATEST_VERSION ]; | ||
then | ||
npm publish | ||
else | ||
echo "Latest version is already published." | ||
fi | ||
publish: | ||
docker: | ||
- image: circleci/node:12.9.1-browsers | ||
steps: | ||
- checkout | ||
- attach_workspace: | ||
at: . | ||
- run: | ||
name: Authenticate with registry | ||
command: | | ||
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc | ||
echo "//registry.yarnpkg.com/:_authToken=$NPM_TOKEN" >> ~/.npmrc | ||
- run: | ||
name: Publish @brightlayer-ui/highcharts | ||
command: | | ||
yarn publish:package -b $CIRCLE_BRANCH | ||
tag: | ||
docker: | ||
- image: circleci/node:12.9.1-browsers | ||
steps: | ||
- checkout | ||
- gh/setup | ||
- run: | ||
name: Tag @brightlayer-ui/highcharts | ||
command: | | ||
yarn tag:package -b $CIRCLE_BRANCH -s -blui-highcharts | ||
workflows: | ||
version: 2 | ||
types: | ||
jobs: | ||
- build | ||
- publish: | ||
requires: | ||
version: 2 | ||
types: | ||
jobs: | ||
- build | ||
filters: | ||
branches: | ||
only: | ||
- master | ||
- publish: | ||
requires: | ||
- build | ||
filters: | ||
branches: | ||
only: | ||
- master | ||
- dev | ||
- tag: | ||
requires: | ||
- publish | ||
filters: | ||
branches: | ||
only: | ||
- master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,45 @@ | ||
# CHANGELOG | ||
|
||
### v2.1.0 | ||
## v2.1.0 (November 3, 2021) | ||
|
||
### Changed | ||
|
||
- Changed package namespace from `@pxblue` to `@brightlayer-ui`. | ||
|
||
## Package Migration Notice | ||
|
||
Previous versions listed after this indicator refer to our deprecated `@pxblue` packages. | ||
|
||
--- | ||
|
||
### v2.1.0 (March 30, 2021) | ||
|
||
### Added | ||
- Utility functions for translating chart labels and formats. | ||
|
||
### v2.0.0 | ||
- Utility functions for translating chart labels and formats. | ||
|
||
### v2.0.0 (January 22, 2020) | ||
|
||
### Changed | ||
- Library converted to TypeScript to provide strong typings for TS projects. This will continue to work for plain JavaScript projects without any changes necessary. | ||
|
||
### v1.1.0 | ||
- Library converted to TypeScript to provide strong typings for TS projects. This will continue to work for plain JavaScript projects without any changes necessary. | ||
|
||
### v1.1.0 (November 21, 2018) | ||
|
||
### Changed | ||
|
||
Significant improvements to the way we generate charts: | ||
* We now expose chart generator functions, rather than sample config objects | ||
* These generator functions accept a configuration object that supports any Highcharts configuration properties | ||
* If required data is missing, sample data will be injected automatically | ||
* Leaving the config object blank will generate a complete sample chart that can be used as a placeholder | ||
|
||
- We now expose chart generator functions, rather than sample config objects | ||
- These generator functions accept a configuration object that supports any Highcharts configuration properties | ||
- If required data is missing, sample data will be injected automatically | ||
- Leaving the config object blank will generate a complete sample chart that can be used as a placeholder | ||
|
||
Breaking changes: | ||
* We no longer export chart samples from the /samples directory | ||
* baseConfig object exports have been replaced by the chart generator functions | ||
|
||
### v1.0.0 | ||
- This library has been ported from @pxblue/visualizations | ||
- We no longer export chart samples from the /samples directory | ||
- baseConfig object exports have been replaced by the chart generator functions | ||
|
||
### v1.0.0 (October 26, 2018) | ||
|
||
- This library has been ported from @pxblue/visualizations |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @emclaug2 @daileytj @huayunh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,28 @@ | ||
# Publishing Instructions | ||
|
||
To update the version number, edit the version in `package.json`. | ||
## Automatic Publishing | ||
|
||
To publish a new package through NPM, run the following commands from the root folder: | ||
This package is published to NPM automatically by CircleCI when code is merged into the `dev` or `master` branches. To publish a new version, simply update the version in `package.json` and merge your code into the appropriate branch. | ||
- The `dev` branch will publish versions marked as `alpha` or `beta`. | ||
- The `master` branch will publish any version (`alpha`, `beta`, or `latest`). | ||
In both cases, the code will only be published if the version number differs from the current version published under the respective dist tag. | ||
|
||
## Manually Publishing | ||
|
||
If you need to publish a package manually, you can run the following commands from the root folder: | ||
|
||
``` | ||
yarn build | ||
yarn publish:package | ||
``` | ||
yarn build | ||
npm publish --tag <alpha | beta> | ||
|
||
The publishing script will look at the version in the `package.json` and automatically determine whether to publish an alpha, beta, or latest package. | ||
|
||
For this command to work, you must have an NPM token configured in your environment variables or you can perform a login prior to executing the publish command via: | ||
|
||
```sh | ||
yarn build | ||
npm adduser && yarn publish:package | ||
``` | ||
|
||
> The above command should only be run for `alpha` or `beta` packages. This repo's CircleCI will automatically publish latest packages from the master branch. | ||
> Publishing manually should only be done for `alpha` or `beta` packages. The command will work for `latest` packages, but this should be avoided except in rare situations where the automatic publishing functionality is not working in CircleCI. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
module.exports = { | ||
root: true, | ||
parser: '@typescript-eslint/parser', | ||
extends: [ '@pxblue/eslint-config/ts' ], | ||
parserOptions: { | ||
project: "./tsconfig.json", | ||
}, | ||
env: { | ||
browser: true | ||
} | ||
}; | ||
module.exports = { | ||
root: true, | ||
parser: '@typescript-eslint/parser', | ||
extends: ['@brightlayer-ui/eslint-config/ts'], | ||
parserOptions: { | ||
project: "./tsconfig.json", | ||
}, | ||
env: { | ||
browser: true | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
# Highcharts Demo | ||
This is a sample application demonstrating the PXBlue Highcharts library. | ||
|
||
[View on Stackblitz](https://stackblitz.com/github/pxblue/highcharts/tree/master/angular-demo) | ||
This is a sample application demonstrating the Brightlayer UI Highcharts library. | ||
|
||
[View on Stackblitz](https://stackblitz.com/github/brightlayer-ui/highcharts/tree/master/angular-demo) | ||
|
||
## Running the Example | ||
|
||
``` | ||
git clone https://github.com/pxblue/highcharts | ||
git clone https://github.com/brightlayer-ui/highcharts | ||
cd highcharts | ||
yarn start:angular | ||
``` | ||
|
||
> **NOTE**: running the demo will use the latest src files from the repository and NOT the themes that are published on NPM. | ||
For additional information read our [Angular Guide](https://pxblue.github.io/development/frameworks-web/angular) and our [Environment Setup](https://pxblue.github.io/development/environment) | ||
For additional information read our [Angular Guide](https://brightlayer-ui.github.io/development/frameworks-web/angular) and our [Environment Setup](https://brightlayer-ui.github.io/development/environment) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.