This repository has been archived by the owner on May 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
303 changed files
with
18,789 additions
and
27,765 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{ | ||
} |
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 |
---|---|---|
|
@@ -149,4 +149,4 @@ Your PRs and stars are always welcome :). Checkout the [Contributing](https://gi | |
|
||
## License | ||
|
||
MIT | ||
MIT |
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,12 @@ | ||
image: node:10.16.3 | ||
|
||
pipelines: | ||
pull-requests: | ||
'**': | ||
- step: | ||
script: | ||
- apt-get update | ||
- apt-get install zip | ||
- npm install --unsafe-perm | ||
- npm run test | ||
- npm run autotest:prod |
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,22 @@ | ||
Checklist to release a new version to NPM: | ||
* Make sure DataModel has been released first | ||
* Clone Muze repository from Github if needed | ||
* Checkout develop branch and make sure develop branch is up-to-date with remote | ||
* If git flow is not initialized yet, Run: git flow init | ||
* Create a new release branch, Run: git flow release start <new_version_with_v_character> | ||
* Delete all existing npm dependencies, Run: rm -rf node_modules package-lock.json packages/*/node_modules packages/*/package-lock.json | ||
* Make sure DataModel's latest version is configured in packages/muze-utils/package.json | ||
* Install dependencies again, Run: npm install | ||
* Update LICENSE file if needed | ||
* Update README.md file if needed | ||
* Create a release-ready build, Run: node scripts/make-release-build.js | ||
* Now release files would be created in release folder and ready to release | ||
* Test the release/dist/* files if needed | ||
* Now commit all the changes including release folder (so that other person can release from different system) with this message: "Make a build and bump version" | ||
* Then finish the release, Run: git flow release finish [-s] <new_version_with_v_character> and enter release notes | ||
* Push all changes and tags to remote, Run: git push origin master && git push origin develop && git push origin --tags | ||
* Edit the title of the released tag in Github | ||
* When everything is fine, it's ready to release | ||
* Checkout master branch | ||
* Change current directory, Run: cd release | ||
* Now if everything is fine, release it to npm, Run: npm publish |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,15 @@ | ||
const dotenv = require('dotenv'); | ||
const fs = require('fs-extra'); | ||
|
||
module.exports = () => { | ||
let env = {}; | ||
|
||
fs.pathExists('./.env.build').then((exists) => { | ||
env = exists ? dotenv.config({ path: './.env.build' }).parsed : {}; | ||
}); | ||
|
||
return Object.keys(env).reduce((prev, next) => { | ||
prev[`process.env.${next}`] = JSON.stringify(env[next]); | ||
return prev; | ||
}, {}); | ||
}; |
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,9 @@ | ||
Year,Profit,Type | ||
2013,1000,Sales | ||
2013,400,Expense | ||
2014,1170,Sales | ||
2014,460,Expense | ||
2015,-660,Sales | ||
2015,1120,Expense | ||
2016,1030,Sales | ||
2016,540,Expense |
Oops, something went wrong.