Skip to content

Commit

Permalink
Merge branch 'main' into feat-url-settings
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromebon authored Oct 13, 2021
2 parents 0b3ee77 + 68c6574 commit a90dc7e
Show file tree
Hide file tree
Showing 86 changed files with 14,864 additions and 10,262 deletions.
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# editorconfig.org

root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
40 changes: 18 additions & 22 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
"root": true,
"extends": "eslint:recommended",
"env": {
"browser": true,
"es6": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 2017,
"ecmaFeatures": {
"jsx": true
},
"parserOptions": {
"ecmaVersion": 2017,
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"rules": {
"no-const-assign": "warn",
"no-this-before-super": "warn",
"no-undef": "warn",
"no-unreachable": "warn",
"no-unused-vars": "warn",
"constructor-super": "warn",
"valid-typeof": "warn"
}
}
"sourceType": "module"
},
"rules": {
"semi": "error",
"strict": "error"
}
}
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Enforce Unix newlines
* text=auto eol=lf
62 changes: 62 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: CI

on:
push:
branches-ignore:
- "dependabot/**"
pull_request:

env:
FORCE_COLOR: 2
NODE: 14

jobs:
test:
runs-on: ubuntu-latest

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

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "${{ env.NODE }}"
cache: npm

- name: Install npm dependencies
run: npm ci

- name: Test
run: npm test

- name: Upload build files
uses: actions/upload-artifact@v2
if: github.repository == 'jakearchibald/svgomg' && github.ref == 'refs/heads/live'
with:
name: build
path: ./build/
if-no-files-found: error

deploy:
runs-on: ubuntu-latest
needs: test
if: github.repository == 'jakearchibald/svgomg' && github.ref == 'refs/heads/live'

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

- name: Download build files
uses: actions/download-artifact@v2
with:
name: build
path: ./build/

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
allow_empty_commit: false
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./build/
34 changes: 34 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: "CodeQL"

on:
push:
branches:
- main
- "!dependabot/**"
pull_request:
# The branches below must be a subset of the branches above
branches:
- main
schedule:
- cron: "0 0 * * 0"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

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

- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: "javascript"

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.sass-cache
build
node_modules
/.netlify/
/build/
/node_modules/
15 changes: 15 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"extends": [
"stylelint-config-twbs-bootstrap/scss"
],
"rules": {
"color-named": null,
"no-duplicate-selectors": null,
"number-leading-zero": "always",
"order/properties-order": null,
"property-no-vendor-prefix": null,
"scss/dollar-variable-pattern": null,
"scss/selector-no-union-class-name": true,
"string-quotes": "single"
}
}
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

16 changes: 4 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

[SVGOMG](https://jakearchibald.github.io/svgomg/) is **[SVGO](https://github.com/svg/svgo)**'s **M**issing **G**UI, aiming to expose the majority, if not all the configuration options of SVGO.

# Feature requests
## Feature requests

It's early days for this project, so it's missing important features such as code output view & detailed options for each plugin. [Check out the issues](https://github.com/jakearchibald/svgomg/issues) to see what's planned, or suggest ideas of your own!
[Check out the issues](https://github.com/jakearchibald/svgomg/issues) to see what's planned, or suggest ideas of your own!

# Running locally
## Running locally

Install dependencies:

Expand All @@ -17,13 +17,5 @@ npm install
Run dev server:

```sh
npm run serve
npm run dev
```

Or, run without the offline capabilities:

```sh
npm run serve-no-sw
```

Running without offline capabilities means you get the latest version each time you hit refresh. The dist offline-first mobile serves the cached version first then checks for updates in the background.
Loading

0 comments on commit a90dc7e

Please sign in to comment.