Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
a3d99e2
Upgrade babel and other packages.
Feb 26, 2019
b7614d7
Use babel-eslint as parser for eslint.
Feb 26, 2019
90b0428
Let mocha test recursively.
Feb 26, 2019
d586e21
Add argument fetcher and its tests.
Feb 26, 2019
b19cd67
Add argument producer and its test.
Feb 26, 2019
f99f966
Update karma settings.
Feb 26, 2019
d23355f
Add rollup config.
Feb 26, 2019
ad9b01f
Allow no input and output for pipes.
lsm Mar 6, 2019
43b0c01
Remove old code and tests.
lsm Mar 6, 2019
d0a69f1
Upgrade package.
lsm Mar 6, 2019
dd11882
New pipe builder and tests.
lsm Mar 6, 2019
6ca6f94
Rewrite pipeline executor and tests. Removed `set` from built-in fun…
lsm Mar 6, 2019
f917c9a
Rewrite pipeline constructor.
lsm Mar 6, 2019
352fe01
Remove prettier.
lsm Mar 6, 2019
2498d77
Add node v11. Remove travis conf.
lsm Mar 6, 2019
473fde8
Remove troublesome saucelab browser tests from CI.
lsm Mar 7, 2019
7d48f30
Add standardjs.
lsm Mar 7, 2019
862b6ba
Update eslintrc with fixing rules.
lsm Jun 15, 2019
f157393
Add eslint and typescript pacakges.
lsm Jun 15, 2019
b7fcd91
Only publish what necessary.
lsm Jun 15, 2019
c2120ec
Format changes.
lsm Jun 15, 2019
0ed53fb
Add tsconfig
lsm Jun 15, 2019
bde3fe3
Update format for index.js
lsm Jun 15, 2019
6cbb9be
Rename argument to parameter.
lsm Jun 16, 2019
9ccb9af
Rewrite in TypeScript.
lsm Jun 16, 2019
d43918a
Make babel & typescript work together.
lsm Jun 17, 2019
c87bd85
Remove browser tests.
lsm Jun 17, 2019
80ab48e
Fix testing scripts.
lsm Jun 17, 2019
c70aedc
Fix building scripts.
lsm Jun 17, 2019
a7446db
Show line number correctly for testing.
lsm Jun 17, 2019
21396bc
Fix fetcher bug.
lsm Jun 17, 2019
fceabe2
Update tests wording.
lsm Jun 17, 2019
e5f1d99
Fix unit tests.
lsm Jun 17, 2019
e05596b
Move babel register out of test folder.
lsm Jun 17, 2019
824868b
Fix test coverage.
lsm Jun 17, 2019
c4833c7
Update node version.
lsm Jun 18, 2019
eced0b5
Update CI job name.
lsm Jun 18, 2019
26e6793
Default hasNext value is false.
lsm Jun 18, 2019
86f28ba
Remove `previousPipe`.
lsm Jun 18, 2019
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
22 changes: 12 additions & 10 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
{
"presets": [
["env", {
"targets": {
"browsers": [
"last 1 version",
"> 1%",
"not dead"
]
}
}]
"@babel/env",
"@babel/typescript"
],
"plugins": [
"@babel/proposal-class-properties",
"@babel/proposal-object-rest-spread"
],
"env": {
"development": {
"sourceMaps": "inline"
"sourceMaps": "both"
},
"test": {
"plugins": [
"istanbul"
]
}
}
}
14 changes: 9 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#

---
workflows:
version: 2
multi-test:
jobs:
- browser
- node-v6
- node-v8
- node-v10
- node-v12

version: 2
jobs:
Expand All @@ -25,7 +25,7 @@ jobs:
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}-{{ .Environment.CIRCLE_JOB }}
- v1-dependencies-{{ checksum "package.json" }}-{{ .Environment.CIRCLE_JOB }}
- run: npm install
- save_cache:
paths:
Expand All @@ -45,10 +45,14 @@ jobs:
<<: *node-base
docker:
- image: circleci/node:10
node-v12:
<<: *node-base
docker:
- image: circleci/node:12

browser:
docker:
- image: circleci/node:8
- image: circleci/node:10
working_directory: ~/repo
steps:
- run: node --version
Expand All @@ -57,7 +61,7 @@ jobs:
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}-{{ .Environment.CIRCLE_JOB }}
- v1-dependencies-{{ checksum "package.json" }}-{{ .Environment.CIRCLE_JOB }}
- run: npm install
- save_cache:
paths:
Expand Down
42 changes: 0 additions & 42 deletions .eslintrc

This file was deleted.

107 changes: 107 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
const path = require('path')

module.exports = {
env: {
es6: true,
node: true,
browser: true
},
// parser: 'babel-eslint',
parser: '@typescript-eslint/parser',
parserOptions: {
project: path.join(__dirname, './tsconfig.json'),
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
jsx: true, // Allows for the parsing of JSX
spread: true,
classes: true,
modules: true,
restParams: true,
impliedStrict: true
}
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
],
plugins: ['babel', '@typescript-eslint'],
rules: {
'babel/new-cap': 1,
'babel/camelcase': 0,
'babel/no-invalid-this': 1,
'babel/object-curly-spacing': ['error', 'always'],
'babel/quotes': 0,
'babel/semi': 0,
'babel/no-unused-expressions': 1,
'babel/valid-typeof': 1,
// indent: ['error', 2, { SwitchCase: 1 }],
indent: 0,
'@typescript-eslint/indent': ['error', 2, { SwitchCase: 1 , ignoredNodes: ['JSXElement *']}],
'@typescript-eslint/camelcase': ['error', { 'properties': 'always' }],
'@typescript-eslint/explicit-member-accessibility': ['error', { 'accessibility': 'no-public' }],
'@typescript-eslint/no-parameter-properties': ['error', {'allows': ['private']}],
'@typescript-eslint/no-var-requires': 0,
'no-extra-parens': 'error',
semi: ['error','never'],
// Array brackets
'array-bracket-newline': ['error', {'multiline': true}],
'array-bracket-spacing': ['error', 'always'],
'array-element-newline': ['error', 'consistent'],
// Quotes
quotes: ['error','single'],
// Curly brackets
curly: ['error', 'all'],
'block-spacing': 'error',
'brace-style': ['error', '1tbs', { 'allowSingleLine': true }],
'object-curly-spacing': ['error', 'always'],
'object-curly-newline': ['error', {
'ObjectExpression': { 'multiline': true, consistent: false },
'ObjectPattern': { 'multiline': true },
'ImportDeclaration': { 'multiline': true },
'ExportDeclaration': { 'multiline': true }
}],
// 'object-property-newline': ['error'],
// Comma
'comma-dangle': ['error', 'always-multiline'],
'comma-spacing': ['error', {'before': false, 'after': true}],
'computed-property-spacing': ['error', 'never'],
// Linebreak
'eol-last': ['error', 'always'],
'linebreak-style': ['error','unix'],
'function-paren-newline': ['error', 'multiline'],
'implicit-arrow-linebreak': ['error', 'beside'],
'lines-between-class-members': ['error', 'always'],
'newline-per-chained-call': ['error', {'ignoreChainWithDepth': 2}],
'no-multiple-empty-lines': ['error', {max: 1, maxEOF: 1, maxBOF: 0}],
// Comments
'lines-around-comment': ['error', {
'beforeBlockComment': true,
'beforeLineComment': false,
'allowBlockStart': true,
'allowBlockEnd': true,
'allowObjectStart': true,
'allowObjectEnd': true,
'allowArrayStart': true,
'allowArrayEnd': true,
'allowClassStart': true,
'allowClassEnd': true
}],
// 'multiline-comment-style': ['error', 'starred-block'],
// Spaces & tabs
'func-call-spacing': ['error', 'never'],
'key-spacing': ['error', {
beforeColon: false, afterColon: true, mode: 'strict'
}
],
'keyword-spacing': ['error', { 'before': true, 'after': true }],
'no-trailing-spaces': 'error',
// 'no-mixed-spaces-and-tabs': 'error',
// Parentheses
'new-parens': 'error',
// Branches
'no-lonely-if': 'error',
'no-unneeded-ternary': 'error',
'no-whitespace-before-property': 'error'
}
}
4 changes: 0 additions & 4 deletions .npmignore

This file was deleted.

1 change: 0 additions & 1 deletion .prettierignore

This file was deleted.

16 changes: 0 additions & 16 deletions .prettierrc.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

11 changes: 3 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ build:
build-watch:
npm run build-watch

clean-build:
rm -rf ./es ./lib ./dist

unit:
npm test

Expand All @@ -20,11 +23,3 @@ coverage:
# Run test and report coverage reports to coveralls.
report-coverage: coverage
npm run report-coverage

# Test on the saucelabs cloud.
browser:
npm run browser

# Test on local browsers.
local-browser:
npm run local-browser
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@

[![CI status][ci-img]][ci-url]
[![License MIT][license-img]][license-url]
[![JavaScript Style Guide][standard-img]][standard-url]
[![NPM version][npm-img]][npm-url]
[![Dependencies][dep-image]][dep-url]
[![Coverage Status][coverage-img]][coverage-url]
[![Code Climate][climate-img]][climate-url]

[![Sauce Test Status](https://saucelabs.com/browser-matrix/spipe.svg)](https://saucelabs.com/u/spipe)


Hire SuperPipe for your complex reactive javascript application

Expand Down Expand Up @@ -178,3 +177,5 @@ var z = superpipe.getDep('x') // z = 5
[coverage-url]: https://coveralls.io/github/lsm/superpipe?branch=master
[climate-img]: https://codeclimate.com/github/lsm/superpipe/badges/gpa.svg
[climate-url]: https://codeclimate.com/github/lsm/superpipe
[standard-img]: https://img.shields.io/badge/code_style-standard-brightgreen.svg
[standard-url]: https://standardjs.com
1 change: 1 addition & 0 deletions babel-register.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require('@babel/register')({ extensions: [ '.js', '.ts' ] })
Loading