Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #4 from lelivrescolaire/update/upstream-master
Browse files Browse the repository at this point in the history
chore(upstream): update to upstream
  • Loading branch information
arncet authored Jan 30, 2020
2 parents a651cb0 + 8d7692e commit e032af4
Show file tree
Hide file tree
Showing 161 changed files with 49,016 additions and 30,802 deletions.
28 changes: 13 additions & 15 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
engines:
eslint:
enabled: true
duplication:
enabled: true
config:
languages:
- javascript:
eslint:
enabled: true
duplication:
enabled: true
config:
languages:
- javascript:
exclude_paths:
- "docs/"
- "dist/"
- "build/"
- "test/"
- 'docs/'
- 'dist/'
- 'build/'
- 'test/'
ratings:
paths:
- "src/**/*"


paths:
- 'src/**/*'
17 changes: 17 additions & 0 deletions .dependabot/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: 1

update_configs:
# Keep package.json (& lockfiles) up to date
# batching pull requests weekly
- package_manager: 'javascript'
directory: '/'
update_schedule: 'weekly'
automerged_updates:
- match:
# Supported dependency types:
# - "development"
# - "production"
# - "all"
dependency_type: 'all'
update_type: 'semver:minor'
version_requirement_updates: 'increase_versions'
55 changes: 30 additions & 25 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,17 @@
}
},

"extends": "eslint:recommended",
"extends": [
// Uses the recommended rules for Typescript
"plugin:@typescript-eslint/recommended",
// Disable rules that conflict with prettier
// See https://prettier.io/docs/en/integrating-with-linters.html
"plugin:prettier/recommended"
],
// See http://eslint.org/docs/rules/

"rules": {
// Note:
// Note:
// "off" or 0 - turn the rule off
// "warn" or 1 - turn the rule on as a warning (doesn’t affect exit code)
// "error" or 2 - turn the rule on as an error (exit code is 1 when triggered)
Expand All @@ -35,38 +41,37 @@

"array-bracket-spacing": ["error", "never"],
"block-spacing": ["error", "always"],
"brace-style": [1, "1tbs", { "allowSingleLine": true }],
"brace-style": ["warn", "1tbs", { "allowSingleLine": true }],
"prefer-const": "warn",

"valid-typeof": "error",
"consistent-return": "error",
"curly": ["warn","multi-line"],
"eqeqeq": ["error","smart"],
"curly": ["warn", "multi-line"],
"eqeqeq": ["error", "smart"],
"guard-for-in": "warn",
// "max-len": "warn",
"new-cap": 1,
"new-cap": "warn",
"no-bitwise": "off",
"no-console": "off",
"no-else-return": 1,
"no-eval": 2,
"no-fallthrough": 1,
"no-invalid-this": 1,
"no-lone-blocks": 1,
"no-return-assign": [1,"always"],
"no-self-compare": 2,
"no-sequences": 1,
"no-unneeded-ternary": 1,
"no-unused-expressions": 1,
"no-useless-call": 1,
"no-else-return": "warn",
"no-eval": "error",
"no-fallthrough": "error",
"no-invalid-this": "warn",
"no-lone-blocks": "warn",
"no-return-assign": ["warn", "always"],
"no-self-compare": "error",
"no-sequences": "warn",
"no-unneeded-ternary": "warn",
"no-unused-expressions": "warn",
"no-useless-call": "warn",
"no-var": "error",
"no-with": 2,
// "vars-on-top": 1,
"no-delete-var": 1,
"no-mixed-spaces-and-tabs": [1,"smart-tabs"],
"no-with": "error",
// "vars-on-top": "warn",
"no-delete-var": "warn",
"no-mixed-spaces-and-tabs": ["warn", "smart-tabs"],
"require-jsdoc": "off",
"space-infix-ops": ["error", {"int32Hint": false}]
"space-infix-ops": ["error", { "int32Hint": false }],


// "no-trailing-spaces": [1,{"skipBlankLines":true}]
"no-trailing-spaces": [1, { "skipBlankLines": true }]
}
}
}
108 changes: 107 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,107 @@
* text=auto
#
# Normalize text files line ending to LF in the repository
#
* text=auto

#
# Text files
#

*.css text
*.htm text diff=html
*.html text diff=html
*.js text
*.json text
*.map text -diff
# Markdown
*.md text
*.sass text diff=css
*.scss text diff=css
# shell script, always LF
*.sh text eol=lf
*.svg text
*.ts text
*.yaml text
*.yml text

#
# Text files without extension
#

AUTHORS* text
CHANGELOG* text
CHANGES text
CONTRIBUTING* text
COPYING text
copyright text
*COPYRIGHT* text
INSTALL* text
license text
LICENSE* text
NEWS text
readme text
*README* text
TODO text

#
# Configuration files
#

*.bowerrc text
*.cnf text
*.conf text
*.config text
.babelrc text
.browserslistrc text
.editorconfig text
.env text
.gitattributes text
.gitconfig text
.htaccess text
*.lock text -diff
package-lock.json text -diff
*.npmignore text
*.yaml text
*.yml text
browserslist text
Makefile text
makefile text


#
# Configuration files without extension
#

.csslintrc text
.editorconfig text
.eslintrc text
.gitignore text
.gitmodules text
.htmlhintrc text
.prettierignore text
.jscsrc text
.jshintrc text
.jshintignore text
.stylelintrc text


#
# Graphics
#

*.gif binary
*.ico binary
*.jpg binary
*.jpeg binary
*.png binary

#
# Exclude files from exporting
# (used by the "download ZIP archive" option, for example)
#

.gitattributes export-ignore
.gitignore export-ignore
.gitmodules export-ignore
.prettierignore export-ignore
.package-lock.json export-ignore
17 changes: 11 additions & 6 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,40 @@
## Prerequisites

* [ ] New issue
[Did you check the [issue tracker](https://github.com/arnog/mathlive/issues) to see if this issue has already been reported? If it has, you can +1 it to indicate your interest and be notified when it gets resolved.]
- [ ] New issue
[Did you check the [issue tracker](https://github.com/arnog/mathlive/issues) to see if this issue has already been reported? If it has, you can +1 it to indicate your interest and be notified when it gets resolved.]

[For more information, see the `CONTRIBUTING` guide.]

## Description

[Description of the bug or feature.]

[Include screenshots or code fragments if applicable]

### Actual behavior

[What actually happened]

[If there are any error messages, include the exact text shown,
[If there are any error messages, include the exact text shown,
or upload a screenshot. Some error messages may displayed in the Javascript console.]

### Expected Behavior
### Expected Behavior

[What you expected to happen]

[Is this a regression: did it use to work in a previous version?]

## Steps to Reproduce

[Provide steps that are specific and repeatable, if possible]

1. [First Step]
2. [Second Step]
3. [and so on...]


### Environment
**Operating System**

**Operating System**
[macOS, Windows, iOS. Include the version if possible]

**Browser** [Safari, Chrome, IE, Firefox, etc...]
Expand Down
19 changes: 13 additions & 6 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
---

name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''
---**Funding**

---
> If you're using MathLive consider donating to project development via [Patreon](https://patreon.com/arnog) (recurring donation) or [PayPal](https://www.paypal.me/arnogourdol) (one time donation).

> Issues submitted by funding partners are given higher priority.

> We welcome both individual and corporate sponsors. In addition to Patreon and PayPal, we can also accept short-term development contracts for specific features or maintenance of the project.

**Funding**
> If you're using MathLive consider donating to project development via [Patreon](https://patreon.com/arnog) (recurring donation) or [PayPal](https://www.paypal.me/arnogourdol) (one time donation).
Expand All @@ -20,6 +26,7 @@ A clear and concise description of what the bug is.

**To Reproduce**
[Steps to reproduce the behavior, for example:]

1. [Go to '...']
2. [Click on '....']
3. [Scroll down to '....']
Expand All @@ -36,9 +43,9 @@ A clear and concise description of what the bug is.
**Source Code**
[If applicable, provide a code sample demonstrating the issue. Use JSFiddle, CodePen or similar to provide a relevant snippet.]


**Environment**
- Device: [pc, mac, iPhone, Android...]
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

- Device: [pc, mac, iPhone, Android...]
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
5 changes: 1 addition & 4 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# An empty .npmignore file is necessary for the .gitignore file to be ignored
# Without it, the /dist directory (which is in .gitignore) would not be
# taken into account by npm.

._*
.DS_Store
# taken into account by npm
51 changes: 33 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,37 @@
language: node_js
node_js:
- lts/*
before_install:
- '[[ $(node -v) =~ ^v9.*$ ]] || npm install -g npm@latest' # skipped when using node 9
- npm install -g greenkeeper-lockfile
install:
- npm install
before_script: greenkeeper-lockfile-update
after_script: greenkeeper-lockfile-upload
node_js: [lts/*]
before_install: [npm install -g npm@latest]
install: [npm ci]
cache:
directories:
- node_modules
- "$HOME/.npm"
directories:
- node_modules
- '$HOME/.npm'
branches:
only:
- master
- release
- /^greenkeeper/.*$/
only:
- master
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/ # tagged with version
# - release
before_deploy:
- npm run dist
- npm run deploy-ci
deploy:
provider: npm
on:
tags: true
email: '$NPM_EMAIL'
api_token: '$NPM_API_TOKEN'
access: public
# dry_run: true
edge: true
script:
- npm run lint
- npm run test
notifications:
slack:
secure: dctz771vJCv6UdjBz65n8XkKx5q/LF5UIY+qSRAxLpqwFp9Y3i9trUNoSaDya4PH5sfAHbUHxsBvG8njIKDJY1pckcrCt2Ml2+9fRQ01cCMggNnSK5OlcuoL6lrnbMbaLz3XEUKJY8mfJnnHggUFNqT0IhCR4xgcxiyg90AtHhIGQcIpkFrpmwbW+ZXm7PMTP/svGkL3OMs4lDO6V8XzEGKXd+4rkcvINZwOtKDXbIf7Wm5MXQ2lf4o1DviAJeFqlIUPRRonAs2KPUAl86t+M22EWDExy6NOtmbdA68m+pDaBJ0mMN0OwxsoEJh5e7ml1/UAs82hCu+Kl3xW4emDrrF7k6C065NmWeRqLBVJxcfy+rdNsiBfJhPmBBGc0VTYLqnWR5PLxDBHgLyO7zAjG4n4G8WpCEY0j891Xaw3Cktz8tWWo336BxCmsd2zOUdoWr+aQsml25mlpLYuX2t4HR66jJdz8A7X+e5m4V3/BE+afMKhRYgeuwPVq03TBAtHZp5jLr0TCw9t3qyNrUEXGtqoAYdCThCP1zcpxTTYnxoYHgoEfiE8OVMkMf6R3JpCUQMk1+AbpyVIHeCxfaq7jCZjUG4exMGFNFhTSjl3ePoCLdwfP75uEIiQU/LOJGb2JrJWVjTEBs5P/atk71ijomygAU3D6BtYwoZm0Hqy+l8=
slack:
secure: dctz771vJCv6UdjBz65n8XkKx5q/LF5UIY+qSRAxLpqwFp9Y3i9trUNoSaDya4PH5sfAHbUHxsBvG8njIKDJY1pckcrCt2Ml2+9fRQ01cCMggNnSK5OlcuoL6lrnbMbaLz3XEUKJY8mfJnnHggUFNqT0IhCR4xgcxiyg90AtHhIGQcIpkFrpmwbW+ZXm7PMTP/svGkL3OMs4lDO6V8XzEGKXd+4rkcvINZwOtKDXbIf7Wm5MXQ2lf4o1DviAJeFqlIUPRRonAs2KPUAl86t+M22EWDExy6NOtmbdA68m+pDaBJ0mMN0OwxsoEJh5e7ml1/UAs82hCu+Kl3xW4emDrrF7k6C065NmWeRqLBVJxcfy+rdNsiBfJhPmBBGc0VTYLqnWR5PLxDBHgLyO7zAjG4n4G8WpCEY0j891Xaw3Cktz8tWWo336BxCmsd2zOUdoWr+aQsml25mlpLYuX2t4HR66jJdz8A7X+e5m4V3/BE+afMKhRYgeuwPVq03TBAtHZp5jLr0TCw9t3qyNrUEXGtqoAYdCThCP1zcpxTTYnxoYHgoEfiE8OVMkMf6R3JpCUQMk1+AbpyVIHeCxfaq7jCZjUG4exMGFNFhTSjl3ePoCLdwfP75uEIiQU/LOJGb2JrJWVjTEBs5P/atk71ijomygAU3D6BtYwoZm0Hqy+l8=
webhooks:
urls:
- '$GITTER_URL'
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always
Loading

0 comments on commit e032af4

Please sign in to comment.