Skip to content

Commit

Permalink
initial stuff;
Browse files Browse the repository at this point in the history
  • Loading branch information
xobotyi committed May 31, 2019
1 parent 873e2cc commit 4d64256
Show file tree
Hide file tree
Showing 8 changed files with 184 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/ISSUE_TEMPLATE.md
@@ -0,0 +1,9 @@
**Do you want to request a _feature_ or report a _bug_?**

**What is the current behavior?**

**If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have extra dependencies other than `zoom-level`. Paste the link to your [JSFiddle](https://jsfiddle.net) or [CodeSandbox](https://codesandbox.io) example below:**

**What is the expected behavior?**

**Which versions of `zoom-level`, and which browser / OS / node version are affected by this issue? Did this work in previous versions of `zoom-level`?**
7 changes: 7 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
@@ -0,0 +1,7 @@
**Before submitting a pull request,** please make sure the following is done:

1. Fork [the repository](https://github.com/xobotyi/`zoom-level`) and create your branch from `master`.
2. Run `npm i` in the repository root.
3. If you've fixed a bug or added code that should be tested, add tests!
4. Ensure the test suite passes (`npm run test`). Tip: `npm run test:watch` is helpful in development.
5. Format your code with [prettier](https://github.com/prettier/prettier) (`npm run format`).
5 changes: 5 additions & 0 deletions .gitignore
@@ -0,0 +1,5 @@
.idea
package-lock.json
node_modules
coverage
dist
11 changes: 11 additions & 0 deletions .npmignore
@@ -0,0 +1,11 @@
.github
coverage
tests
benchmark
src
.idea
.gitignore
.travis.yml
CODE_OF_CONDUCT.md
tsconfig.json
rollup.config.js
18 changes: 18 additions & 0 deletions .travis.yml
@@ -0,0 +1,18 @@
language: node_js
node_js:
- "stable"
- "9"
- "10"

matrix:
fast_finish: true

cache:
directories:
- "node_modules"

script:
- npm run test

after_success:
- npm run push-codacy-coverage
76 changes: 76 additions & 0 deletions CODE_OF_CONDUCT.md
@@ -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
42 changes: 42 additions & 0 deletions package.json
@@ -0,0 +1,42 @@
{
"name": "zoom-level",
"version": "1.0.0",
"main": "dist/zoom-level.js",
"module": "dist/zoom-level.esm.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"repository": {
"type": "git",
"url": "https://github.com/xobotyi/zoom-level.git"
},
"bugs": {
"url": "https://github.com/xobotyi/zoom-level/issues"
},
"homepage": "https://github.com/xobotyi/zoom-level",
"author": {
"name": "Anton Zinovyev",
"url": "https://github.com/xobotyi",
"email": "xog3@yandex.ru"
},
"license": "MIT",
"devDependencies": {
"codacy-coverage": "^3.4.0",
"husky": "^2.3.0",
"prettier": "^1.17.1",
"pretty-quick": "^1.11.0",
"rimraf": "^2.6.3",
"rollup": "^1.12.5",
"rollup-plugin-typescript2": "^0.21.1",
"typescript": "^3.5.1"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged"
}
},
"prettier": {
"printWidth": 120
}
}
16 changes: 16 additions & 0 deletions tsconfig.json
@@ -0,0 +1,16 @@
{
"compilerOptions": {
"sourceMap": false,
"removeComments": false,
"noImplicitReturns": true,
"noUnusedParameters": true,
"strictNullChecks": true,
"alwaysStrict": true,
"declaration": true,
"target": "esnext",
"module": "commonjs",
"lib": ["esnext"]
},
"include": ["./src/**/*.ts"],
"exclude": ["node_modules"]
}

0 comments on commit 4d64256

Please sign in to comment.