Skip to content
This repository has been archived by the owner on Aug 19, 2019. It is now read-only.

Commit

Permalink
Merge pull request #2 from YR/feature/switch-to-react
Browse files Browse the repository at this point in the history
Rewrite to use react instead of @yr/component
  • Loading branch information
Saegrov authored May 22, 2018
2 parents e0e32dc + 4b98cb5 commit 1a066ae
Show file tree
Hide file tree
Showing 18 changed files with 1,153 additions and 3,331 deletions.
10 changes: 6 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.DS_Store
dist/
index.js
lib/
node_modules
npm-debug.log
yarn-error.log
/index.js
/lib/*
/test/test-browser.js
test/
yarn-error.log
7 changes: 5 additions & 2 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/test
karma.conf.js
.travis.yml
lib/
npm-debug.log
src/
test/
yarn-error.log
yarn.lock
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ install:
- yarn
script:
- yarn test
- yarn test:browser
cache:
directories:
- ~/.yarn
Expand Down
14 changes: 0 additions & 14 deletions karma.conf.js

This file was deleted.

80 changes: 26 additions & 54 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,68 +2,40 @@
"name": "@yr/connect-component",
"description": "Helper components for generating @yr/component containers that can efficiently respond to data updates",
"version": "1.1.2",
"author": "Alexander Pope <[email protected]>",
"author": "Alexander Pope <[email protected]>, Simen Sægrov <[email protected]>",
"dependencies": {
"@yr/component": "6.1.x",
"@yr/is-equal": "1.0.x",
"@yr/runtime": "2.0.x"
"@yr/is-equal": "2.0.2",
"@yr/runtime": "^3.0.0",
"prop-types": "^15.6.1",
"react": "^16.3.2"
},
"devDependencies": {
"@types/prop-types": "^15.5.2",
"@types/react": "^16.3.12",
"@types/react-dom": "^16.0.5",
"@yr/data-store": "*",
"babel-plugin-syntax-trailing-function-commas": "6.22.0",
"babel-plugin-transform-async-generator-functions": "6.24.1",
"babel-plugin-transform-async-to-generator": "6.24.1",
"babel-plugin-transform-es2015-arrow-functions": "6.22.0",
"babel-plugin-transform-es2015-block-scoped-functions": "6.22.0",
"babel-plugin-transform-es2015-block-scoping": "6.26.0",
"babel-plugin-transform-es2015-classes": "6.24.1",
"babel-plugin-transform-es2015-computed-properties": "6.24.1",
"babel-plugin-transform-es2015-destructuring": "6.23.0",
"babel-plugin-transform-es2015-duplicate-keys": "6.24.1",
"babel-plugin-transform-es2015-for-of": "6.23.0",
"babel-plugin-transform-es2015-function-name": "6.24.1",
"babel-plugin-transform-es2015-literals": "6.22.0",
"babel-plugin-transform-es2015-object-super": "6.24.1",
"babel-plugin-transform-es2015-parameters": "6.24.1",
"babel-plugin-transform-es2015-shorthand-properties": "6.24.1",
"babel-plugin-transform-es2015-spread": "6.22.0",
"babel-plugin-transform-es2015-sticky-regex": "6.24.1",
"babel-plugin-transform-es2015-template-literals": "6.22.0",
"babel-plugin-transform-es2015-unicode-regex": "6.24.1",
"babel-plugin-transform-es5-property-mutators": "6.24.1",
"babel-plugin-transform-exponentiation-operator": "6.24.1",
"babel-plugin-transform-object-rest-spread": "6.26.0",
"buddy": "6.x.x",
"chai": "^4.1.1",
"karma": "^1.7.0",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^2.2.0",
"karma-mocha": "^1.3.0",
"karma-mocha-reporter": "^2.2.4",
"mocha": "^4.0.1"
"decache": "4.4.0",
"mocha": "^4.0.1",
"prettier": "1.12.1",
"react-dom": "^16.3.2",
"renamer": "^0.6.1",
"rewiremock": "^3.7.2",
"rimraf": "^2.6.2",
"ts-node": "^6.0.3",
"typescript": "^2.8.3"
},
"main": "src/index.js",
"main": "dist/index",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"repository": "https://github.com/YR/connect-component.git",
"license": "MIT",
"scripts": {
"prepublish": "buddy build",
"test": "NODE_ENV=test mocha test/test.js --reporter spec --bail",
"test:browser": "buddy build && karma start --single-run --browsers ChromeHeadless karma.conf.js"
},
"browser": "index.js",
"buddy": {
"build": [
{
"input": "src/",
"output": ".",
"bundle": false,
"version": "es5"
},
{
"input": "test/src/test-browser.js",
"output": "test/test-browser.js",
"label": "test"
}
]
"build": "npm run clean && npm run build-mjs && npm run build-cjs",
"build-cjs": "tsc --module commonjs --target ES5",
"build-mjs": "tsc --module es2015 --target ES2017 && renamer --regex --find '\\.js$' --replace '.mjs' 'dist/**/*.js'",
"clean": "rimraf dist/",
"prepublish": "npm run build",
"test": "NODE_ENV=test mocha src/**/*.spec.tsx -r ts-node/register --reporter spec --bail"
}
}
4 changes: 4 additions & 0 deletions prettier.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
printWidth: 120,
singleQuote: true,
};
8 changes: 0 additions & 8 deletions src/index.js

This file was deleted.

Loading

0 comments on commit 1a066ae

Please sign in to comment.