This repository has been archived by the owner on Oct 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes: #37 BREAKING CHANGE: rewrote the module, some old features not working, will be adding it incrementally.
- Loading branch information
Showing
27 changed files
with
6,228 additions
and
544 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"presets": ["es2015"], | ||
"env": { | ||
"test": { | ||
"plugins": [ "istanbul" ] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# EditorConfig is awesome: https://github.com/editorconfig/editorconfig | ||
|
||
# Top-most EditorConfig file | ||
root = true | ||
|
||
[*] | ||
# Set default charset to utf-8 | ||
charset = utf-8 | ||
# Set default indentation to spaces | ||
indent_style = space | ||
# Linux-style newlines with a newline ending every file | ||
end_of_line = lf | ||
insert_final_newline = true | ||
# Remove whitespace characters preceding newline characters | ||
trim_trailing_whitespace = true | ||
|
||
# Two space indentation for JavaScript files | ||
[*.{js,json}] | ||
indent_size = 2 | ||
|
||
# Disable trimming trailing whitespaces so that double space newlines work | ||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
coverage/* | ||
dist/* | ||
lib/* | ||
target/* | ||
scripts/* | ||
node_modules/* | ||
**/node_modules/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
### Description | ||
<!-- If you're describing a bug, please let us know the steps to reproduce your problem. --> | ||
|
||
```js | ||
var your => (code) => here; | ||
``` | ||
|
||
### Expected Behavior | ||
<!-- What should happen or how it should work. --> | ||
|
||
### Current Behavior | ||
<!-- What happens instead of the expected behavior. --> | ||
<!-- If suggesting a change, explain the difference from current behavior. --> | ||
|
||
### Context | ||
<!-- How has this issue affected you? What are you trying to accomplish? --> | ||
|
||
### Possible Solution | ||
<!-- Not obligatory, but suggestions or ideas are always welcome. --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#### Summary | ||
<!-- Provide a short summary of your changes --> | ||
|
||
#### Description | ||
<!-- Describe the changes in this PR here and provide some context --> | ||
|
||
#### TODO | ||
|
||
- Tests | ||
- [ ] Unit | ||
- [ ] Integration | ||
- [ ] Acceptance | ||
- [ ] Documentation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,41 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
lib | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
# nyc test coverage | ||
.nyc_output | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (http://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directory | ||
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git | ||
# Dependency directories | ||
node_modules | ||
jspm_packages | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
.DS_Store | ||
lib |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
sudo: false | ||
|
||
language: node_js | ||
|
||
cache: | ||
directories: | ||
- node_modules | ||
|
||
notifications: | ||
email: false | ||
|
||
node_js: | ||
- '7' | ||
- '6' | ||
- '4' | ||
|
||
branches: | ||
only: | ||
- master | ||
|
||
before_script: | ||
- npm prune | ||
|
||
script: | ||
- npm run coverage | ||
- npm run check-coverage | ||
|
||
after_success: | ||
- npm run codecov | ||
- npm run semantic-release | ||
|
||
branches: | ||
except: | ||
- /^v\d+\.\d+\.\d+$/ | ||
|
||
git: | ||
depth: 1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Contributing | ||
First of all, thank you for contributing. It’s appreciated. This guide details how to use issues and pull requests to improve this project. | ||
|
||
## Running | ||
Watch for file changes then lint and test: | ||
`npm start` | ||
|
||
Babelify everything in `src` output to `lib`: | ||
`npm run build` | ||
|
||
## Making changes | ||
* Create a topic branch from where you want to base your work. | ||
* Make commits of logical units. | ||
* Make sure you have added the necessary tests for your changes. | ||
|
||
### Branching | ||
When creating a branch. Use the issue number(without the '#') as the prefix and add a short title, like: `1-commit-message-example` | ||
|
||
### Commit message | ||
Make sure your commit messages follow the [Angular's format](https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#-git-commit-guidelines), try `npm run commit`: | ||
```` | ||
docs(contributing): make the example in contributing guidelines concrete | ||
The example commit message in the contributing.md document is not a concrete example. This is a problem because the | ||
contributor is left to imagine what the commit message should look like | ||
based on a description rather than an example. Fix the | ||
problem by making the example concrete and imperative. | ||
Closes #1 | ||
Breaks having an open issue | ||
```` | ||
|
||
## Creating an Issue | ||
Before you create a new issue: | ||
* Check the issues on Github to ensure that one doesn't already exist. | ||
* Clearly describe the issue, there is an [ISSUE_TEMPLATE](.github/ISSUE_TEMPLATE.md) to guide you. | ||
|
||
## Tests | ||
We use [tape](https://github.com/substack/tape) for unit and integration test. You can use [Cucumber](https://github.com/cucumber/cucumber-js) for acceptance tests. | ||
|
||
We try to maintain a code coverage of 100%. Please ensure you do so too 😉 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#! /usr/bin/env node | ||
|
||
/* eslint-disable */ | ||
/* | ||
This file exists because we use Babel to transpile the JS but when testing | ||
the CLI we need to spawn a process that uses normal JS. | ||
*/ | ||
'use strict'; | ||
|
||
require('../lib/cli.js'); |
Oops, something went wrong.