Skip to content

Commit

Permalink
Updated minimist to remove vuln + formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisBrownie55 committed Nov 27, 2020
1 parent 71dc860 commit c01e114
Show file tree
Hide file tree
Showing 9 changed files with 1,530 additions and 2,173 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = crlf
insert_final_newline = true
indent_style = tab
indent_size = 2
tab_width = 2
58 changes: 29 additions & 29 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"
name: 'CodeQL'

on:
push:
branches: [ master ]
branches: [master]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
branches: [master]
schedule:
- cron: '24 20 * * 4'

Expand All @@ -28,40 +28,40 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
language: ['javascript']
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# 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

steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release
#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
10 changes: 10 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"arrowParens": "always",
"endOfLine": "crlf",
"semi": false,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all",
"useTabs": true,
"bracketSpacing": false
}
87 changes: 44 additions & 43 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,45 +1,46 @@
{
"name": "pwa-icon-gen",
"description": "A CLI tool for generating PWA PNG icons of different sizes from an existing image.",
"keywords": [
"pwa",
"icon",
"generator",
"gen",
"progressive-web-app",
"cli"
],
"repository": {
"type": "git",
"url": "https://github.com/ChrisBrownie55/pwa-icon-gen.git"
},
"homepage": "https://github.com/ChrisBrownie55/pwa-icon-gen#readme",
"bugs": {
"url": "https://github.com/ChrisBrownie55/pwa-icon-gen/issues",
"email": "[email protected]"
},
"version": "1.0.2",
"main": "./src/index.js",
"bin": {
"pwa-icon-gen": "./src/cli.js"
},
"files": [
"src/**"
],
"license": "MIT",
"dependencies": {
"@chbphone55/pretty-bytes": "^1.0.0",
"import-jsx": "^2.0.0",
"ink": "^2.1.1",
"ink-spinner": "^3.0.1",
"minimist": "^1.2.0",
"react": "^16.8.6",
"sharp": "^0.22.0"
},
"scripts": {
"test:publish": "e2e-verdaccio"
},
"devDependencies": {
"e2e-verdaccio": "^1.0.0"
}
"name": "pwa-icon-gen",
"description": "A CLI tool for generating PWA PNG icons of different sizes from an existing image.",
"keywords": [
"pwa",
"icon",
"generator",
"gen",
"progressive-web-app",
"cli"
],
"repository": {
"type": "git",
"url": "https://github.com/ChrisBrownie55/pwa-icon-gen.git"
},
"homepage": "https://github.com/ChrisBrownie55/pwa-icon-gen#readme",
"bugs": {
"url": "https://github.com/ChrisBrownie55/pwa-icon-gen/issues",
"email": "[email protected]"
},
"version": "1.0.2",
"main": "./src/index.js",
"bin": {
"pwa-icon-gen": "./src/cli.js"
},
"files": [
"src/**"
],
"license": "MIT",
"dependencies": {
"@chbphone55/pretty-bytes": "^1.0.0",
"import-jsx": "^2.0.0",
"ink": "^2.1.1",
"ink-spinner": "^3.0.1",
"minimist": "^1.2.5",
"react": "^16.8.6",
"sharp": "^0.22.0"
},
"scripts": {
"test": "node ./src/cli.js logo.svg --out=test-out/ --sizes=75,100,125",
"format": "prettier --write ."
},
"devDependencies": {
"prettier": "^2.2.0"
}
}
Loading

0 comments on commit c01e114

Please sign in to comment.