Skip to content

Commit 8a4b536

Browse files
authored
Add npm script to regenerate the package-lock.json (#21)
Adds a new npm script called `regen-package-lock` to the root `package.json`. This script removes all `node_modules` and `package-lock.json` files from the root and all workspaces, then reinstalls dependencies and runs `npm audit:fix` to ensure a clean and secure dependency tree.
1 parent 86d227d commit 8a4b536

11 files changed

Lines changed: 2002 additions & 2452 deletions

File tree

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ If applicable, add screenshots to help explain your problem.
2222

2323
**Desktop (please complete the following information):**
2424

25-
- OS: [e.g. iOS]
26-
- Browser [e.g. chrome, safari]
27-
- Version [e.g. 22]
25+
- OS: [e.g. iOS]
26+
- Browser [e.g. chrome, safari]
27+
- Version [e.g. 22]
2828

2929
**Smartphone (please complete the following information):**
3030

31-
- Device: [e.g. iPhone6]
32-
- OS: [e.g. iOS8.1]
33-
- Browser [e.g. stock browser, safari]
34-
- Version [e.g. 22]
31+
- Device: [e.g. iPhone6]
32+
- OS: [e.g. iOS8.1]
33+
- Browser [e.g. stock browser, safari]
34+
- Version [e.g. 22]
3535

3636
**Additional context**
3737
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/security_report.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ If applicable, add screenshots to help explain your problem.
2222

2323
**Desktop (please complete the following information):**
2424

25-
- OS: [e.g. iOS]
26-
- Browser [e.g. chrome, safari]
27-
- Version [e.g. 22]
25+
- OS: [e.g. iOS]
26+
- Browser [e.g. chrome, safari]
27+
- Version [e.g. 22]
2828

2929
**Smartphone (please complete the following information):**
3030

31-
- Device: [e.g. iPhone6]
32-
- OS: [e.g. iOS8.1]
33-
- Browser [e.g. stock browser, safari]
34-
- Version [e.g. 22]
31+
- Device: [e.g. iPhone6]
32+
- OS: [e.g. iOS8.1]
33+
- Browser [e.g. stock browser, safari]
34+
- Version [e.g. 22]
3535

3636
**Additional context**
3737
Add any other context about the problem here.

.github/workflows/code-qa.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
33

4-
name: Node.js CI
4+
name: Code Quality Assurance
55

66
on:
77
push:
88
branches: [master]
99
pull_request:
1010
branches: [master]
1111

12+
permissions:
13+
contents: read
1214
jobs:
13-
build:
15+
code-quality:
1416
runs-on: ubuntu-latest
1517

1618
strategy:
@@ -20,7 +22,7 @@ jobs:
2022

2123
steps:
2224
- name: Checkout repository
23-
uses: actions/checkout@v4
25+
uses: actions/checkout@v5
2426
- name: Use Node.js ${{ matrix.node-version }}
2527
uses: actions/setup-node@v4
2628
with:

.github/workflows/codeql-analysis.yml

Lines changed: 38 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,40 @@ name: "CodeQL"
1313

1414
on:
1515
push:
16-
branches: [master]
16+
branches: ["master"]
1717
pull_request:
18-
# The branches below must be a subset of the branches above
19-
branches: [master]
18+
branches: ["master"]
2019

2120
jobs:
2221
analyze:
2322
name: Analyze
24-
runs-on: ubuntu-latest
23+
# Runner size impacts CodeQL analysis time. To learn more, please see:
24+
# - https://gh.io/recommended-hardware-resources-for-running-codeql
25+
# - https://gh.io/supported-runners-and-hardware-resources
26+
# - https://gh.io/using-larger-runners
27+
# Consider using larger runners for possible analysis time improvements.
28+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
29+
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
30+
permissions:
31+
# required for all workflows
32+
security-events: write
33+
34+
# only required for workflows in private repositories
35+
actions: read
36+
contents: read
2537

2638
strategy:
2739
fail-fast: false
2840
matrix:
29-
language: ["javascript"]
30-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
31-
# Learn more:
32-
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
41+
language: ["javascript-typescript", "actions"]
42+
# CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ]
43+
# Use only 'java-kotlin' to analyze code written in Java, Kotlin or both
44+
# Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
45+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
3346

3447
steps:
3548
- name: Checkout repository
36-
uses: actions/checkout@v4
49+
uses: actions/checkout@v5
3750

3851
# Initializes the CodeQL tools for scanning.
3952
- name: Initialize CodeQL
@@ -43,23 +56,30 @@ jobs:
4356
# If you wish to specify custom queries, you can do so here or in a config file.
4457
# By default, queries listed here will override any specified in a config file.
4558
# Prefix the list here with "+" to use these queries and those in the config file.
46-
# queries: ./path/to/local/query, your-org/your-repo/queries@main
4759

48-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
60+
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
61+
# queries: security-extended,security-and-quality
62+
63+
# This workflow runs CodeQL analysis on the codebase to find security vulnerabilities.
64+
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
65+
# queries: security-extended,security-and-quality
66+
67+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
4968
# If this step fails, then you should remove it and run the build manually (see below)
5069
- name: Autobuild
5170
uses: github/codeql-action/autobuild@v3
5271

5372
# ℹ️ Command-line programs to run using the OS shell.
54-
# 📚 https://git.io/JvXDl
73+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
5574

56-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
57-
# and modify them (or add more) to build your code if your project
58-
# uses a compiled language
75+
# If the Autobuild fails above, remove it and uncomment the following three lines.
76+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
5977

60-
#- run: |
61-
# make bootstrap
62-
# make release
78+
# - run: |
79+
# echo "Run, Build Application using script"
80+
# ./location_of_script_within_repo/buildscript.sh
6381

6482
- name: Perform CodeQL Analysis
6583
uses: github/codeql-action/analyze@v3
84+
with:
85+
category: "/language:${{matrix.language}}"

.github/workflows/ossar.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,26 @@ To see tags and releases, please go to [Tags](https://github.com/BioAnalyticReso
1010

1111
Optimization:
1212

13-
- Addressed client-side caching for faster loading
14-
- Improved performance of mouse hover listeners
15-
- Optimized images
13+
- Addressed client-side caching for faster loading
14+
- Improved performance of mouse hover listeners
15+
- Optimized images
1616

1717
Update:
1818

19-
- Added ESLint
20-
- No longer supporting Internet Explorer
21-
- Updated packages
19+
- Added ESLint
20+
- No longer supporting Internet Explorer
21+
- Updated packages
2222

2323
Documentation:
2424

25-
- Fixed links in markdown files
26-
- Updated README's examples
25+
- Fixed links in markdown files
26+
- Updated README's examples
2727

2828
Bug fix:
2929

30-
- Fixed `localStorage` failing to initialize and store/call data
31-
- Fixed issue where cannot call `generateSVG`
32-
- Fixed issue with favicons, now uses BAR's favicon over local (same for web manifest)
30+
- Fixed `localStorage` failing to initialize and store/call data
31+
- Fixed issue where cannot call `generateSVG`
32+
- Fixed issue with favicons, now uses BAR's favicon over local (same for web manifest)
3333

3434
## [1.0.19] - 2022-11-03
3535

CODE_OF_CONDUCT.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,24 @@ diverse, inclusive, and healthy community.
1717
Examples of behavior that contributes to a positive environment for our
1818
community include:
1919

20-
- Demonstrating empathy and kindness toward other people
21-
- Being respectful of differing opinions, viewpoints, and experiences
22-
- Giving and gracefully accepting constructive feedback
23-
- Accepting responsibility and apologizing to those affected by our mistakes,
24-
and learning from the experience
25-
- Focusing on what is best not just for us as individuals, but for the
26-
overall community
20+
- Demonstrating empathy and kindness toward other people
21+
- Being respectful of differing opinions, viewpoints, and experiences
22+
- Giving and gracefully accepting constructive feedback
23+
- Accepting responsibility and apologizing to those affected by our mistakes,
24+
and learning from the experience
25+
- Focusing on what is best not just for us as individuals, but for the
26+
overall community
2727

2828
Examples of unacceptable behavior include:
2929

30-
- The use of sexualized language or imagery, and sexual attention or
31-
advances of any kind
32-
- Trolling, insulting or derogatory comments, and personal or political attacks
33-
- Public or private harassment
34-
- Publishing others' private information, such as a physical or email
35-
address, without their explicit permission
36-
- Other conduct which could reasonably be considered inappropriate in a
37-
professional setting
30+
- The use of sexualized language or imagery, and sexual attention or
31+
advances of any kind
32+
- Trolling, insulting or derogatory comments, and personal or political attacks
33+
- Public or private harassment
34+
- Publishing others' private information, such as a physical or email
35+
address, without their explicit permission
36+
- Other conduct which could reasonably be considered inappropriate in a
37+
professional setting
3838

3939
## Enforcement Responsibilities
4040

CONTRIBUTING.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@ In the interest of fostering an open and welcoming environment, we as contributo
2121

2222
Examples of behavior that contributes to creating a positive environment include:
2323

24-
- Using welcoming and inclusive language
25-
- Being respectful of differing viewpoints and experiences
26-
- Gracefully accepting constructive criticism
27-
- Focusing on what is best for the community
28-
- Showing empathy towards other community members
24+
- Using welcoming and inclusive language
25+
- Being respectful of differing viewpoints and experiences
26+
- Gracefully accepting constructive criticism
27+
- Focusing on what is best for the community
28+
- Showing empathy towards other community members
2929

3030
Examples of unacceptable behavior by participants include:
3131

32-
- The use of sexualized language or imagery and unwelcome sexual attention or advances
33-
- Trolling, insulting/derogatory comments, and personal or political attacks
34-
- Public or private harassment
35-
- Publishing others' private information, such as a physical or electronic address, without explicit permission
36-
- Other conduct which could reasonably be considered inappropriate in a professional setting
32+
- The use of sexualized language or imagery and unwelcome sexual attention or advances
33+
- Trolling, insulting/derogatory comments, and personal or political attacks
34+
- Public or private harassment
35+
- Publishing others' private information, such as a physical or electronic address, without explicit permission
36+
- Other conduct which could reasonably be considered inappropriate in a professional setting
3737

3838
### Our Responsibilities
3939

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ This will display the visualized and coloured tissue expression data within the
5656

5757
We aim to make the ePlant Plant eFP as perfect as possible but unfortunately, there may be some unforeseen bugs. If you manage to find one that is not here, feel free to create a [bug report](https://github.com/BioAnalyticResource/ePlant_Plant_eFP/issues/new/choose) so we can fix it.
5858

59-
- None at the moment... Help us find some!
59+
- None at the moment... Help us find some!
6060

6161
## Contributing
6262

@@ -68,7 +68,7 @@ Please read [CONTRIBUTING.md](CONTRIBUTING.md) for more details.
6868

6969
## Authors
7070

71-
- Alexander Sullivan - [GitHub](https://github.com/AlexJSully), [Twitter](https://twitter.com/alexjsully), [ORCiD](https://orcid.org/0000-0002-4463-4473), [LinkedIn](https://www.linkedin.com/in/alexanderjsullivan/), [Website](https://alexjsully.me/)
72-
- Asher Pasha - [Github](https://github.com/asherpasha), [Twitter](https://twitter.com/AsherPasha), [ORCiD](https://orcid.org/0000-0002-9315-0520)
73-
- Youyang Li - [Github](https://github.com/lyy321)
74-
- Nicholas J. Provart - [Github](https://github.com/BioAnalyticResource), [Twitter](https://twitter.com/BAR_PlantBio), [Website](https://bar.utoronto.ca)
71+
- Alexander Sullivan - [GitHub](https://github.com/AlexJSully), [Twitter](https://twitter.com/alexjsully), [ORCiD](https://orcid.org/0000-0002-4463-4473), [LinkedIn](https://www.linkedin.com/in/alexanderjsullivan/), [Website](https://alexjsully.me/)
72+
- Asher Pasha - [Github](https://github.com/asherpasha), [Twitter](https://twitter.com/AsherPasha), [ORCiD](https://orcid.org/0000-0002-9315-0520)
73+
- Youyang Li - [Github](https://github.com/lyy321)
74+
- Nicholas J. Provart - [Github](https://github.com/BioAnalyticResource), [Twitter](https://twitter.com/BAR_PlantBio), [Website](https://bar.utoronto.ca)

0 commit comments

Comments
 (0)