forked from AMPATH/ngx-file-uploader
-
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.
- Loading branch information
1 parent
7ff7554
commit 76dcd8c
Showing
22 changed files
with
4,152 additions
and
4,592 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 |
---|---|---|
|
@@ -14,60 +14,60 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "18" | ||
node-version: '18' | ||
|
||
- name: Cache dependencies | ||
id: cache | ||
uses: actions/cache@v3 | ||
uses: actions/cache@v4 | ||
with: | ||
path: "**/node_modules" | ||
path: '**/node_modules' | ||
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} | ||
|
||
- name: Install dependencies | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: yarn install --frozen-lockfile | ||
run: yarn install --immutable | ||
|
||
- name: Run lint | ||
run: yarn turbo lint --color | ||
run: yarn turbo run lint --color | ||
|
||
- name: Run tests | ||
run: yarn turbo test --color | ||
run: yarn turbo run test --color | ||
|
||
- name: Run build | ||
run: yarn turbo build:lib --color --concurrency=5 | ||
run: yarn turbo run build:lib --color --concurrency=5 | ||
|
||
pre_release: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
if: ${{ github.event_name == 'push' }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "18" | ||
node-version: '18' | ||
|
||
- name: Cache dependencies | ||
id: cache | ||
uses: actions/cache@v3 | ||
uses: actions/cache@v4 | ||
with: | ||
path: "**/node_modules" | ||
path: '**/node_modules' | ||
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} | ||
|
||
- name: Install dependencies | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: yarn install --frozen-lockfile | ||
run: yarn install --immutable | ||
|
||
- name: Version | ||
run: export NEW_VERSION="$(node -e "console.log(require('semver').inc(require('./package.json').version, 'patch'))")-pre.${{ github.run_number }}" && yarn version --new-version $NEW_VERSION --no-git-tag-version && cd projects/ngx-file-uploader && yarn version --new-version $NEW_VERSION --no-git-tag-version | ||
|
||
- name: Build | ||
run: yarn turbo build:lib --color --concurrency=5 | ||
run: yarn turbo run build:lib --color --concurrency=5 | ||
|
||
- run: git config user.email "[email protected]" && git config user.name "OpenMRS CI" | ||
- run: git add . && git commit -m "Prerelease version" --no-verify | ||
|
@@ -78,7 +78,7 @@ jobs: | |
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | ||
|
||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v2 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ngx-file-uploader | ||
path: | | ||
|
@@ -90,25 +90,25 @@ jobs: | |
if: ${{ github.event_name == 'release' }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "18" | ||
node-version: '18' | ||
|
||
- name: Cache dependencies | ||
id: cache | ||
uses: actions/cache@v3 | ||
uses: actions/cache@v4 | ||
with: | ||
path: "**/node_modules" | ||
path: '**/node_modules' | ||
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} | ||
|
||
- name: Install dependencies | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: yarn install --frozen-lockfile | ||
run: yarn install --immutable | ||
|
||
- name: Build | ||
run: yarn turbo build:lib --color --concurrency=5 | ||
run: yarn turbo run build:lib --color --concurrency=5 | ||
|
||
- name: Publish release | ||
run: yarn publish dist/ngx-file-uploader --tag latest --access public |
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 |
---|---|---|
@@ -1,4 +1 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx lint-staged |
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 @@ | ||
yarn turbo run test --color |
Binary file not shown.
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 |
---|---|---|
|
@@ -14,61 +14,61 @@ | |
"prettier": "prettier --write \"**/**/*.{css,html,ts}\"", | ||
"prepare": "husky install" | ||
}, | ||
"private": false, | ||
"dependencies": { | ||
"@angular/animations": "^16.2.12", | ||
"@angular/cdk": "^16.2.12", | ||
"@angular/common": "^16.2.12", | ||
"@angular/compiler": "^16.2.12", | ||
"@angular/core": "^16.2.12", | ||
"@angular/forms": "^16.2.12", | ||
"@angular/material": "^16.2.12", | ||
"@angular/platform-browser": "^16.2.12", | ||
"@angular/platform-browser-dynamic": "^16.2.12", | ||
"@angular/router": "^16.2.12", | ||
"core-js": "^2.5.4", | ||
"@angular/animations": "^17.3.12", | ||
"@angular/cdk": "^17.3.10", | ||
"@angular/common": "^17.3.12", | ||
"@angular/compiler": "^17.3.12", | ||
"@angular/core": "^17.3.12", | ||
"@angular/forms": "^17.3.12", | ||
"@angular/material": "^17.3.10", | ||
"@angular/platform-browser": "^17.3.12", | ||
"@angular/platform-browser-dynamic": "^17.3.12", | ||
"@angular/router": "^17.3.12", | ||
"core-js": "^2.6.12", | ||
"jspdf": "^1.5.3", | ||
"ngx-webcam": "^0.4.1", | ||
"rxjs": "^7.8.1", | ||
"tslib": "^2.0.0", | ||
"zone.js": "~0.13.3" | ||
"tslib": "^2.6.3", | ||
"zone.js": "~0.14.8" | ||
}, | ||
"devDependencies": { | ||
"@angular-devkit/build-angular": "^16.2.11", | ||
"@angular-eslint/builder": "^16.3.1", | ||
"@angular-eslint/eslint-plugin": "^16.3.1", | ||
"@angular-eslint/eslint-plugin-template": "^16.3.1", | ||
"@angular-eslint/schematics": "^16.3.1", | ||
"@angular-eslint/template-parser": "^16.3.1", | ||
"@angular/cli": "^16.2.11", | ||
"@angular/compiler-cli": "^16.2.12", | ||
"@angular/language-service": "^16.2.12", | ||
"@types/jasmine": "^3.6.0", | ||
"@types/jasminewd2": "^2.0.3", | ||
"@types/node": "^18.7.14", | ||
"@typescript-eslint/eslint-plugin": "5.27.1", | ||
"@typescript-eslint/parser": "5.27.1", | ||
"eslint": "^8.17.0", | ||
"husky": ">=6", | ||
"jasmine-core": "^3.6.0", | ||
"jasmine-spec-reporter": "^5.0.0", | ||
"karma": "^6.4.2", | ||
"karma-chrome-launcher": "^3.1.0", | ||
"karma-coverage-istanbul-reporter": "^3.0.2", | ||
"karma-firefox-launcher": "^1.1.0", | ||
"karma-jasmine": "^4.0.0", | ||
"karma-jasmine-html-reporter": "^1.5.0", | ||
"lint-staged": ">=10", | ||
"ng-packagr": "~16.2.3", | ||
"@angular-devkit/build-angular": "^17.3.8", | ||
"@angular-eslint/builder": "17.5.2", | ||
"@angular-eslint/eslint-plugin": "17.5.2", | ||
"@angular-eslint/eslint-plugin-template": "17.5.2", | ||
"@angular-eslint/schematics": "17.5.2", | ||
"@angular-eslint/template-parser": "17.5.2", | ||
"@angular/cli": "^17.3.8", | ||
"@angular/compiler-cli": "^17.3.12", | ||
"@angular/language-service": "^17.3.12", | ||
"@types/jasmine": "^3.10.18", | ||
"@types/jasminewd2": "^2.0.13", | ||
"@types/node": "^18.19.42", | ||
"@typescript-eslint/eslint-plugin": "7.11.0", | ||
"@typescript-eslint/parser": "7.11.0", | ||
"eslint": "^8.57.0", | ||
"husky": "^9.1.4", | ||
"jasmine-core": "^3.99.1", | ||
"jasmine-spec-reporter": "^5.0.2", | ||
"karma": "^6.4.4", | ||
"karma-chrome-launcher": "^3.2.0", | ||
"karma-coverage-istanbul-reporter": "^3.0.3", | ||
"karma-firefox-launcher": "^1.3.0", | ||
"karma-jasmine": "^4.0.2", | ||
"karma-jasmine-html-reporter": "^1.7.0", | ||
"lint-staged": "^15.2.7", | ||
"ng-packagr": "^17.3.0", | ||
"prettier": "3.0.3", | ||
"protractor": "^7.0.0", | ||
"ts-node": "^5.0.1", | ||
"tslint": "^6.1.0", | ||
"turbo": "^1.10.15", | ||
"typescript": "~4.9.5" | ||
"tslint": "^6.1.3", | ||
"turbo": "^2.0.9", | ||
"typescript": "~5.4.5" | ||
}, | ||
"lint-staged": { | ||
"*.js": "eslint --cache --fix", | ||
"*.{js,css,md}": "yarn prettier" | ||
} | ||
"*.ts": "eslint --cache --fix", | ||
"*.{html,css,scss,md}": "prettier --write --list-different" | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
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 |
---|---|---|
|
@@ -4,4 +4,4 @@ | |
"lib": { | ||
"entryFile": "src/public_api.ts" | ||
} | ||
} | ||
} |
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.