-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Added CHANGELOG.md and updated related documentation.
- Loading branch information
1 parent
0f1e435
commit 8452557
Showing
4 changed files
with
37 additions
and
12 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
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
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,20 @@ | ||
/** | ||
* Prepare for release. | ||
* Copy CHANGELOG.md up into the main dir. | ||
*/ | ||
|
||
const child_process = require( 'child_process' ), | ||
fs = require( 'fs' ), | ||
path = require( 'path' ); | ||
|
||
const rootDir = path.normalize( __dirname + '/..' ), | ||
distDir = `${rootDir}/dist/highcharts-angular`; | ||
|
||
// Copy CHANGELOG.md to the main folder for GitHub | ||
console.log( 'Copying dist/highcharts-angular/CHANGELOG.md to the main directory' ); | ||
fs.copyFileSync( `${distDir}/CHANGELOG.md`, `${rootDir}/CHANGELOG.md` ); | ||
|
||
// Further instructions | ||
console.log( '-------------------------------------------------------' ); | ||
console.log( 'Push as `git push --follow-tags origin master`' ); | ||
console.log( 'Publish in `./dist/highcharts-angular` as `npm publish`' ); |