Skip to content

Commit 5d949a0

Browse files
committed
first commit
1 parent 0a218a4 commit 5d949a0

21 files changed

+1281
-2
lines changed

.babelrc

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
presets: [
3+
'env',
4+
'stage-2'
5+
],
6+
comments: false,
7+
env: {
8+
test: {
9+
plugins: [
10+
'istanbul'
11+
]
12+
}
13+
}
14+
}

.eslintignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
**/.*
2+
**/node_modules
3+
**/dist
4+
**/assets
5+
**/coverage

.eslintrc.js

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
'use strict';
2+
3+
module.exports = {
4+
"extends": [
5+
"standard",
6+
"plugin:vue-libs/recommended"
7+
],
8+
"plugins": [
9+
"mocha"
10+
],
11+
"rules": {
12+
"no-labels": 0,
13+
"no-empty-label": 0,
14+
"semi": [2, "always"],
15+
"space-before-function-paren": 0,
16+
"no-new": 0
17+
},
18+
"env": {
19+
"es6": true,
20+
"browser": true,
21+
"mocha": true,
22+
},
23+
"parserOptions": {
24+
"ecmaVersion": 6,
25+
"sourceType": "module",
26+
"ecmaFeatures": {
27+
"experimentalObjectRestSpread": true
28+
}
29+
}
30+
};

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1+
dist/
2+
coverage/
3+
screenshots/
4+
node_modules/
5+
reports/
16
*.sw*
27
*.un~

.npmignore

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.travis.yml
2+
test/
3+
.eslintrc.js
4+
.eslintignore
5+
dist/
6+
coverage/
7+
screenshots/
8+
node_modules/
9+
reports/
10+
*.sw*
11+
*.un~

.stylelintrc.js

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
'use strict';
2+
3+
module.exports = {
4+
rules: {
5+
'at-rule-semicolon-newline-after': 'always',
6+
'block-no-empty': true,
7+
'block-opening-brace-newline-after': 'always',
8+
'block-closing-brace-newline-before': 'always',
9+
'block-opening-brace-space-before': 'always',
10+
'color-hex-length': 'short',
11+
'color-no-invalid-hex': true,
12+
'declaration-block-no-duplicate-properties': [true, { ignore: ['consecutive-duplicates'] }],
13+
'declaration-block-no-shorthand-property-overrides': true,
14+
'declaration-block-trailing-semicolon': 'always',
15+
'function-url-quotes': 'never',
16+
indentation: 2,
17+
'max-empty-lines': 2,
18+
'max-line-length': 200,
19+
'max-nesting-depth': 5,
20+
'no-duplicate-selectors': true,
21+
'no-eol-whitespace': true,
22+
'no-missing-end-of-source-newline': true,
23+
'no-unknown-animations': true,
24+
'length-zero-no-unit': true,
25+
'rule-empty-line-before': ['always-multi-line', { ignore: ['after-comment', 'inside-block'] }],
26+
'string-no-newline': true,
27+
'time-min-milliseconds': 100,
28+
'unit-no-unknown': true,
29+
30+
'function-linear-gradient-no-nonstandard-direction': true,
31+
'property-no-vendor-prefix': null,
32+
'selector-no-vendor-prefix': null,
33+
'value-no-vendor-prefix': true,
34+
35+
'comment-whitespace-inside': 'always',
36+
'declaration-bang-space-after': 'never',
37+
'declaration-bang-space-before': 'always',
38+
'declaration-colon-space-after': 'always',
39+
'declaration-colon-space-before': 'never',
40+
'function-comma-space-after': 'always',
41+
'function-comma-space-before': 'never',
42+
'function-calc-no-unspaced-operator': true,
43+
'function-whitespace-after': 'always',
44+
'media-feature-colon-space-after': 'always',
45+
'media-feature-colon-space-before': 'never',
46+
'media-feature-parentheses-space-inside': 'never',
47+
'media-feature-range-operator-space-after': 'always',
48+
'media-feature-range-operator-space-before': 'always',
49+
'selector-combinator-space-after': 'always',
50+
'selector-combinator-space-before': 'always',
51+
'selector-list-comma-space-after': 'always-single-line',
52+
'selector-list-comma-space-before': 'never',
53+
'value-list-comma-space-after': 'always',
54+
'value-list-comma-space-before': 'never',
55+
56+
'at-rule-name-case': 'lower',
57+
'function-name-case': 'lower',
58+
'property-case': 'lower',
59+
'selector-pseudo-class-case': 'lower',
60+
'selector-pseudo-element-case': 'lower',
61+
'selector-type-case': 'lower',
62+
'unit-case': 'lower',
63+
},
64+
}

.travis.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
language: node_js
2+
sudo: false
3+
node_js:
4+
- 8
5+
addons:
6+
apt:
7+
packages:
8+
- xvfb
9+
install:
10+
- export DISPLAY=':99.0'
11+
- Xvfb :99 -screen 0 1366x768x24 > /dev/null 2>&1 &
12+
script:
13+
- npm i
14+
- npm run ci
15+
after_script:
16+
- npm install coveralls@2 && cat ./coverage/lcov.info | coveralls

README.md

+20-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
1-
# diagram
1+
# dataflow-sample
2+
3+
---
4+
5+
[![NPM version][npm-image]][npm-url]
6+
[![build status][travis-image]][travis-url]
7+
[![Test coverage][coveralls-image]][coveralls-url]
8+
[![node version][node-image]][node-url]
9+
10+
[npm-image]: http://img.shields.io/npm/v/dataflow-sample.svg?style=flat-square
11+
[npm-url]: http://npmjs.org/package/dataflow-sample
12+
[travis-image]: https://img.shields.io/travis/enoughjs/dataflow-sample.svg?style=flat-square
13+
[travis-url]: https://travis-ci.org/enoughjs/dataflow-sample
14+
[coveralls-image]: https://img.shields.io/coveralls/enoughjs/dataflow-sample.svg?style=flat-square
15+
[coveralls-url]: https://coveralls.io/r/enoughjs/dataflow-sample?branch=master
16+
[node-image]: https://img.shields.io/badge/node.js-%3E=8-green.svg?style=flat-square
17+
[node-url]: http://nodejs.org/download/
18+
19+
- [enoughjs/todo](//github.com/enoughjs/todo)
220

321
## TODO
422

5-
- timeline
23+
- vue input focus

0 commit comments

Comments
 (0)