Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration with Generic Display List #1

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .auditignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
https://npmjs.com/advisories/12
https://npmjs.com/advisories/577
https://npmjs.com/advisories/663
20 changes: 20 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
root = true

[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
indent_style = space
indent_size = 4

[*.{ts}]
indent_style = space
indent_size = 4

[*.{js,json}]
indent_style = space
indent_size = 2

[{.codeclimate.yml,.eslintignore,.eslintrc,.istanbul.yml,.publishrc,.travis.yml}]
indent_style = space
indent_size = 2
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ coverage
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# IntelliJ IDEA
.idea

# Bower dependency directory (https://bower.io/)
bower_components

Expand Down Expand Up @@ -59,3 +62,11 @@ typings/

# next.js build output
.next

# project specific output
dist
dist-test
dist-test-createjs
lib
lib-test
lib-test-createjs
46 changes: 46 additions & 0 deletions .istanbul.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
verbose: false
instrumentation:
root: lib
extensions:
- .ts
# default-excludes: true
# excludes: []
# variable: __coverage__
# compact: true
# preserve-comments: false
# complete-copy: false
# save-baseline: false
# baseline-file: ./coverage/coverage-baseline.raw.json
# include-all-sources: false
# include-pid: false
# es-modules: true
# auto-wrap: true
# reporting:
# print: summary
# reports:
# - lcov
# dir: ./coverage
# summarizer: pkg
# report-config: {}
# watermarks:
# statements: [50, 80]
# functions: [50, 80]
# branches: [50, 80]
# lines: [50, 80]
# hooks:
# hook-run-in-context: false
# post-require-hook: null
# handle-sigint: false
# check:
# global:
# statements: 0
# lines: 0
# branches: 0
# functions: 0
# excludes: []
# each:
# statements: 0
# lines: 0
# branches: 0
# functions: 0
# excludes: []
40 changes: 40 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/.idea
/.nyc_output
/.vscode
/coverage
/dist
/dist-test
/dist-test-createjs
/docs
/lib-test
/lib-test-createjs
/node-modules
/not-ported-extensions
/src
/static
/test
/transpiled-code
/typings
CODE_OF_CONDUCT.md
CONTRIBUTING.md
ISSUE_TEMPLATE.md
PULL_REQUEST_TEMPLATE.md
karma.createjs.conf.js
tsconfig.example.json
tsconfig.json
tsconfig.test.json
tsconfig.createjs.test.json
tslint.example.json
tslint.json
tslint.test.json
webpack.config.js
webpack.example.config.js
yarn.lock
.auditignore
.editorconfig
.gitignore
.istanbul.yml
.npmignore
.prettierrc
.publishrc
.travis.yml
9 changes: 9 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"printWidth": 140,
"tabWidth": 4,
"useTabs": false,
"semi": true,
"singleQuote": false,
"trailingComma": "none",
"bracketSpacing": true
}
14 changes: 14 additions & 0 deletions .publishrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"validations": {
"vulnerableDependencies": true,
"uncommittedChanges": true,
"untrackedFiles": true,
"sensitiveData": true,
"branch": "master",
"gitTag": true
},
"confirm": true,
"publishTag": "latest --access public",
"prePublishScript": false,
"postPublishScript": false
}
21 changes: 21 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
language: node_js
node_js:
- stable
env:
- CODECLIMATE_REPO_TOKEN=684e974d5f69f76db7350eb1cb8cb7b575ffcaecfed16c2df8b86f92ab4bc189
- CODECLIMATE_API_HOST=https://codebeat.co/webhooks/code_coverage CODECLIMATE_REPO_TOKEN=357054ed-343d-462a-af39-69d5b685236f
before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- yarn config set registry "https://registry.npmjs.org"
- yarn global add greenkeeper-lockfile@1
- yarn global add codeclimate-test-reporter
before_script:
- greenkeeper-lockfile-update
script:
- yarn test
after_script:
- greenkeeper-lockfile-upload
after_success:
- codeclimate-test-reporter < coverage/lcov.info
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Place your settings in this file to overwrite default and user settings.
{
"typescript.tsdk": "node_modules/typescript/lib",
"tslint.configFile": "tslint.test.json"
}
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# RobotlegsJS DisplayList Mediator Changelog:

## Robotlegs-DisplayListMediator 1.0.0

### v1.0.0 - Planned stable version

- [ ] Add instructions of how to install the **@robotlegsjs/displaylistmediator** package into **README.md**.

- [ ] Use [**Function Types**](https://www.typescriptlang.org/docs/handbook/functions.html) for handlers and callbacks instead of generic **Function** type.

- [ ] Evaluate if **IMediator** interface should be mandatory.

- [x] Update **Prettier** rules:

- [x] **printWidth** should be around **140** characters per line.

- [ ] Improve Code Coverage to reach 100%.

- [ ] Migrate [original documentation](https://github.com/robotlegs/robotlegs-framework/blob/master/src/readme.md) and adapt it to TypeScript.

## Robotlegs-DisplayListMediator 0.0.1

### v0.0.1

- Implement integration with generic display list (see #1).

- Update dev dependencies to latest version.
46 changes: 46 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# 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, gender identity and expression, level of experience, 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 at [email protected]. The project team will review and investigate all complaints, and will respond in a way that it deems 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 [http://contributor-covenant.org/version/1/4][version]

[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/4/
46 changes: 46 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Contributing to RobotlegsJS-DisplayListMediator

## Setup

1 - Clone your fork of the repository:
```
$ git clone https://github.com/YOUR_USERNAME/RobotlegsJS-DisplayListMediator.git
```

2 - Install npm dependencies using yarn:
```
$ yarn install
```

3 - Run start process
```
$ yarn start
```

4 - Run test process
```
$ yarn test
```

## Guidelines

- Please try to [combine multiple commits before
pushing](http://stackoverflow.com/questions/6934752/combining-multiple-commits-before-pushing-in-git).

- Please use `TDD` when fixing bugs. This means that you should write a unit
test that fails because it reproduces the issue, then fix the issue and finally run
the test to ensure that the issue has been resolved. This helps us to prevent
fixed bugs from happening again in the future.

- Always format your code using `yarn run autoformat`.

- Please keep the test coverage at 100%. Write additional unit test if
necessary.

- Please create an issue before sending a PR if your commit is going to change the
public interface of the package or it includes significant architecture
changes.

- Feel free to ask for help from other members of the RobotlegsJS team via the
[gitter chat](https://gitter.im/RobotlegsJS/RobotlegsJS) or
[github issues](https://github.com/RobotlegsJS/RobotlegsJS-DisplayListMediator/issues).
35 changes: 35 additions & 0 deletions ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!--- Provide a general summary of the issue in the Title above -->

## Expected Behavior
<!--- If you're describing a bug, tell us what should happen -->
<!--- If you're suggesting a change/improvement, tell us how it should work -->

## Current Behavior
<!--- If describing a bug, tell us what happens instead of the expected behavior -->
<!--- If suggesting a change/improvement, explain the difference from current behavior -->

## Possible Solution
<!--- Not obligatory, but suggest a fix/reason for the bug, -->
<!--- or ideas how to implement the addition or change -->

## Steps to Reproduce (for bugs)
<!--- Provide a link to a live example, or an unambiguous set of steps to -->
<!--- reproduce this bug. Include code to reproduce, if relevant -->
1.
2.
3.
4.

## Context
<!--- How has this issue affected you? What are you trying to accomplish? -->
<!--- Providing context helps us come up with a solution that is most useful in the real world -->

## Your Environment
<!--- Include as many relevant details about the environment you experienced the bug in -->
* Version used:
* Environment name and version (e.g. Chrome 39, node.js 5.4):
* Operating System and version (desktop or mobile):
* Link to your project:

# Stack trace
<!--- Include stack trace -->
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018 RobotlegsJS
Copyright (c) 2017-present, RobotlegsJS

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading