Skip to content

Commit

Permalink
Add react-dnd-touch-backend (#1425)
Browse files Browse the repository at this point in the history
* feat: add react-dnd-touch-backend

* refactor: break up touchbackend code
  • Loading branch information
darthtrevino committed Jul 3, 2019
1 parent d25a66f commit 707f4ae
Show file tree
Hide file tree
Showing 18 changed files with 853 additions and 5 deletions.
1 change: 0 additions & 1 deletion packages/alternative_builds/cjs/html5-backend/package.json
Expand Up @@ -18,7 +18,6 @@
"react-dnd-test-backend": "^8.0.3",
"react-dom": "^16.8.6",
"rimraf": "^2.6.3",
"ts-loader": "^6.0.2",
"typescript": "^3.5.2",
"react-dnd-html5-backend": "8.0.3"
},
Expand Down
1 change: 0 additions & 1 deletion packages/alternative_builds/cjs/react-dnd/package.json
Expand Up @@ -27,7 +27,6 @@
"react": "^16.8.6",
"react-dom": "^16.8.6",
"rimraf": "^2.6.3",
"ts-loader": "^6.0.2",
"typescript": "^3.5.2",
"react-dnd": "8.0.3"
},
Expand Down
23 changes: 23 additions & 0 deletions packages/alternative_builds/cjs/touch-backend/package.json
@@ -0,0 +1,23 @@
{
"name": "react-dnd-touch-backend-cjs",
"version": "8.0.3",
"license": "MIT",
"description": "Touch backend for react-dnd",
"main": "lib/index.js",
"scripts": {
"build": "tsc",
"clean": "rimraf lib"
},
"dependencies": {
"@types/invariant": "^2.2.29",
"invariant": "^2.2.4",
"dnd-core-cjs": "^8.0.3"
},
"devDependencies": {
"npm-run-all": "^4.1.5",
"rimraf": "^2.6.3",
"typescript": "^3.5.2",
"react-dnd-touch-backend": "8.0.3"
},
"peerDependencies": {}
}
30 changes: 30 additions & 0 deletions packages/alternative_builds/cjs/touch-backend/tsconfig.json
@@ -0,0 +1,30 @@
{
"extends": "../../../../tsconfig.base.json",
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"outDir": "lib",
"esModuleInterop": true,
"baseUrl": "/Users/christrevino/Workspace/oss/react-dnd/packages/core/touch-backend/",
"paths": {
"dnd-core": [
"../../core/dnd-core/lib/index.d.ts"
],
"react-dnd": [
"../../core/react-dnd/lib/index.d.ts"
],
"react-dnd-html5-backend": [
"../../core/html5-backend/lib/index.d.ts"
],
"react-dnd-test-backend": [
"../../testing/test-backend/lib/index.d.ts"
],
"react-dnd-test-utils": [
"../../testing/test-utils/lib/index.d.ts"
]
}
},
"files": [
"/Users/christrevino/Workspace/oss/react-dnd/packages/core/touch-backend/src/index.ts"
]
}
3 changes: 2 additions & 1 deletion packages/alternative_builds/umd/package.json
Expand Up @@ -12,8 +12,9 @@
"@babel/preset-env": "^7.4.5",
"babel-loader": "^8.0.6",
"npm-run-all": "^4.1.5",
"react-dnd": "^8.0.3",
"react-dnd-html5-backend": "^8.0.3",
"react-dnd": "^8.0.3",
"ts-loader": "^6.0.2",
"webpack-cli": "^3.3.4"
}
}
1 change: 0 additions & 1 deletion packages/core/html5-backend/package.json
Expand Up @@ -26,7 +26,6 @@
"react-dnd-test-backend": "^8.0.3",
"react-dom": "^16.8.6",
"rimraf": "^2.6.3",
"ts-loader": "^6.0.2",
"typescript": "^3.5.2"
}
}
1 change: 0 additions & 1 deletion packages/core/react-dnd/package.json
Expand Up @@ -35,7 +35,6 @@
"react": "^16.8.6",
"react-dom": "^16.8.6",
"rimraf": "^2.6.3",
"ts-loader": "^6.0.2",
"typescript": "^3.5.2"
},
"peerDependencies": {
Expand Down
30 changes: 30 additions & 0 deletions packages/core/touch-backend/package.json
@@ -0,0 +1,30 @@
{
"name": "react-dnd-touch-backend",
"version": "8.0.3",
"description": "Touch backend for react-dnd",
"type": "module",
"main": "lib/index.js",
"module": "lib/index.js",
"types": "lib/index.d.ts",
"license": "MIT",
"author": "Long Ho <holevietlong@gmail.com>",
"repository": {
"type": "git",
"url": "https://github.com/react-dnd/react-dnd.git"
},
"scripts": {
"clean": "rimraf lib",
"build": "tsc -b tsconfig.json",
"start": "tsc -b tsconfig.json -w --preserveWatchOutput"
},
"dependencies": {
"@types/invariant": "^2.2.29",
"dnd-core": "^8.0.3",
"invariant": "^2.2.4"
},
"devDependencies": {
"npm-run-all": "^4.1.5",
"rimraf": "^2.6.3",
"typescript": "^3.5.2"
}
}

0 comments on commit 707f4ae

Please sign in to comment.