Skip to content

Commit

Permalink
Merge pull request #427 from SVG-Edit/new-build
Browse files Browse the repository at this point in the history
New build
  • Loading branch information
jfhenon authored Sep 23, 2020
2 parents 406c53a + e535a26 commit 616f003
Show file tree
Hide file tree
Showing 865 changed files with 40,921 additions and 239,862 deletions.
5 changes: 0 additions & 5 deletions .babelrc.json

This file was deleted.

26 changes: 10 additions & 16 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,16 @@ dist
docs/jsdoc
archive

src/svgedit-config-es.js
src/svgedit-config-iife.js
jsconfig.json
mochawesome-report
releases
!.eslintrc.js
!.ncurc.js

es-dev-server.config.js
nyc.config.js

svgedit-custom.css
src/xdomain-svgedit-config-iife.js

# Vendor/minified files
src/editor/jquery.min.js
Expand All @@ -22,17 +28,5 @@ src/editor/js-hotkeys
src/editor/jspdf/jspdf.min.js
src/editor/jspdf/underscore-min.js

src/editor/extensions/mathjax
src/editor/extensions/ext-mathjax/mathjax

# Todo: We should at least check `compat/compat` in our other files, however
## Two "external" items are modified locally, so we undo their ignoring
src/external/**/*
!src/external/dom-polyfill
src/external/dom-polyfill/*
!src/external/dom-polyfill/dom-polyfill.js
!src/external/dynamic-import-polyfill

mochawesome-report
releases
!.eslintrc.js
!.ncurc.js
9 changes: 4 additions & 5 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,15 @@ module.exports = {
'consistent-this': 'off',
'import/no-anonymous-default-export': 'off',
'node/no-unsupported-features/node-builtins': 'warn',
'prefer-exponentiation-operator': 'warn'
'prefer-exponentiation-operator': 'warn',
'node/no-unsupported-features/es-syntax': 'off'
},
overrides: [
// Locales have no need for importing outside of SVG-Edit
// and translations may need a longer line length
{
files: [
'src/editor/locale/lang.*.js', 'src/editor/extensions/ext-locale/**',
'src/editor/locale/lang.*.js', 'src/editor/extensions/*/locale/**',
'docs/tutorials/ExtensionDocs.md'
],
rules: {
Expand All @@ -140,12 +141,10 @@ module.exports = {
// These browser files don't do importing or requiring
{
files: [
'src/editor/svgpathseg.js',
'src/editor/touch.js',
'src/editor/typedefs.js',
'src/editor/redirect-on-no-module-support.js',
'src/editor/extensions/imagelib/index.js',
'src/external/dom-polyfill/dom-polyfill.js',
'src/editor/extensions/ext-imagelib/index.js',
'screencasts/svgopen2010/script.js'
],
rules: {
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ mochawesome.json

.vscode
.eslintcache
.DS_Store
84 changes: 0 additions & 84 deletions .gitmodules

This file was deleted.

3 changes: 0 additions & 3 deletions .htmlhintrc

This file was deleted.

8 changes: 0 additions & 8 deletions .ncurc.js

This file was deleted.

1 change: 0 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ screencasts
gh-disabled-workflows
build
lgtm.yml
.travis.yml

cypress/**
cypress.env.json
Expand Down
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

76 changes: 76 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.

## Our Standards

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

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

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

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team. All complaints will be reviewed and
investigated and will result in a response that is deemed necessary and
appropriate to the circumstances. The project team is obligated to maintain
confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html

[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see
https://www.contributor-covenant.org/faq
2 changes: 1 addition & 1 deletion FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# These are supported funding model platforms

github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
github: [brettz9] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
Expand Down
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,24 +44,19 @@ to join the project.

## Demo

### [Try SVG-edit here](https://svg-edit.github.io/svgedit/src/editor/svg-editor.html)
### [Try SVG-edit here](https://svg-edit.github.io/svgedit/dist/editor/index.html)

<!-- See the [latest release](https://svg-edit.github.io/svgedit/releases/latest/editor/svg-editor.html)
(or its [ES6-Module](https://svg-edit.github.io/svgedit/releases/latest/editor/svg-editor-es.html)
version, which requires a modern browser).
-->
See a working editor on [`master`](https://svg-edit.github.io/svgedit/src/editor/svg-editor.html) (or its [ES6-Module](https://svg-edit.github.io/svgedit/src/editor/svg-editor-es.html)
See a working editor on [`master`](https://svg-edit.github.io/svgedit/src/editor/index.html)
version, which requires a modern browser).

You may also try it at <https://unpkg.com/svgedit/editor/svg-editor.html>
(which redirects to a versioned URL).
We also build a systemJS version at [`master`](https://svg-edit.github.io/svgedit/dist/editor/system/index.html)

You may also obtain URLs for specific [releases](https://github.com/SVG-Edit/svgedit/releases).

You may test the [latest version in `master`](https://svg-edit.github.io/svgedit/src/editor/svg-editor-es.html)
which is the ESM version. (The [non-ESM version](https://svg-edit.github.io/svgedit/src/editor/svg-editor.html)
on `master` may be updated less frequently.)

## Installation

### Quick install
Expand Down Expand Up @@ -203,14 +198,15 @@ incorporating SVGEdit. You will need to have Node.js/npm installed.

## Supported browsers

The following browsers had been tested for 2.6 or earlier and will
probably continue to work with 3.0.
- Opera 59+,
- IE 12+,
- Chrome 75+,
- FireFox 68+,
- Safari 10+

- Firefox 1.5+
- Opera 9.50+
- Safari 4+
- Chrome 1+
- IE 9+ and Edge
Support for old browsers may require to use an older version of the package. However,
please open an issue if you need support for a specific version of your browser so
the project team can decide if we should support with the latest version.

## Further reading and more information

Expand All @@ -223,3 +219,7 @@ probably continue to work with 3.0.
* Join the [svg-edit mailing list](https://groups.google.com/forum/#!forum/svg-edit).
* Join us on `#svg-edit` on `freenode.net` (or use the
[web client](https://webchat.freenode.net/?channels=svg-edit)).

# Hosting
SVGedit versions are deployed to:
[![Deploys by Netlify](https://www.netlify.com)](https://www.netlify.com/img/global/badges/netlify-color-accent.svg)
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@@ -1,156 +0,0 @@
# To-do: Change to a sample service-worker

CACHE MANIFEST
Expand Down Expand Up @@ -153,4 +154,4 @@ extensions/ext-shapes.js
extensions/ext-star.js
extensions/ext-storage.js
extensions/ext-webappfind.js
extensions/ext-xdomain-messaging.js
extensions/ext-xdomain-messaging.js
11 changes: 11 additions & 0 deletions babel.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"presets": [
[
"@babel/env",
{
"useBuiltIns": "usage",
"corejs": "3.6.5"
}
]
]
}
2 changes: 1 addition & 1 deletion badges/coverage-badge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 616f003

Please sign in to comment.