Just a few tool tweaks
This commit is contained in:
parent
cfc88ef5fc
commit
b538bb3971
12
Makefile
12
Makefile
@ -1,19 +1,27 @@
|
|||||||
all: node_modules
|
all: node_modules
|
||||||
|
|
||||||
|
build: node_modules
|
||||||
|
yarn dist
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf ./.cache
|
rm -rf ./.cache
|
||||||
rm -rf ./node_modules
|
|
||||||
rm -rf ./dist
|
rm -rf ./dist
|
||||||
rm -rf ./build
|
rm -rf ./build
|
||||||
|
|
||||||
|
clean-all: clean
|
||||||
|
rm -rf ./node_modules
|
||||||
|
|
||||||
node_modules:
|
node_modules:
|
||||||
yarn --ignore-engines
|
yarn --ignore-engines
|
||||||
|
|
||||||
electron-start: node_modules
|
electron-start: node_modules
|
||||||
yarn electron-start
|
yarn electron-start
|
||||||
|
|
||||||
|
inferno-start: node_modules
|
||||||
|
yarn inferno-start
|
||||||
|
|
||||||
react-start: node_modules
|
react-start: node_modules
|
||||||
yarn react-start
|
yarn inferno-start
|
||||||
|
|
||||||
fix: node_modules
|
fix: node_modules
|
||||||
yarn fix
|
yarn fix
|
||||||
|
@ -24,7 +24,6 @@
|
|||||||
"babel-core": "6.26.0",
|
"babel-core": "6.26.0",
|
||||||
"babel-eslint": "^8.2.2",
|
"babel-eslint": "^8.2.2",
|
||||||
"babel-jest": "^22.4.3",
|
"babel-jest": "^22.4.3",
|
||||||
"babel-loader": "^7.1.4",
|
|
||||||
"babel-plugin-module-resolver": "^3.1.1",
|
"babel-plugin-module-resolver": "^3.1.1",
|
||||||
"babel-preset-env": "^1.6.1",
|
"babel-preset-env": "^1.6.1",
|
||||||
"babel-preset-inferno-app": "^7.1.0",
|
"babel-preset-inferno-app": "^7.1.0",
|
||||||
@ -55,11 +54,12 @@
|
|||||||
"electron-start": "node src/electron/wait-inferno",
|
"electron-start": "node src/electron/wait-inferno",
|
||||||
"electron": "electron .",
|
"electron": "electron .",
|
||||||
"fix": "eslint --fix src/**/*.js",
|
"fix": "eslint --fix src/**/*.js",
|
||||||
|
"inferno-start": "parcel index.html -p 3000",
|
||||||
"lint": "eslint src/**/*.js",
|
"lint": "eslint src/**/*.js",
|
||||||
"pack": "build --dir",
|
"pack": "build --dir",
|
||||||
"postinstall": "electron-builder install-app-deps",
|
"postinstall": "electron-builder install-app-deps",
|
||||||
"precommit": "yarn lint",
|
"precommit": "yarn lint",
|
||||||
"react-start": "parcel index.html -p 3000",
|
"react-start": "npm run inferno-start",
|
||||||
"test": "node scripts/test.js --env=jsdom"
|
"test": "node scripts/test.js --env=jsdom"
|
||||||
},
|
},
|
||||||
"homepage": "./",
|
"homepage": "./",
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import { Component } from 'inferno';
|
import { Component } from 'inferno';
|
||||||
import {
|
import {
|
||||||
Alert,
|
|
||||||
Button,
|
Button,
|
||||||
Col,
|
Col,
|
||||||
Container,
|
Container,
|
||||||
@ -38,6 +37,9 @@ export class HomeView extends Component {
|
|||||||
draggedFiles.push(f.path);
|
draggedFiles.push(f.path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let newTransfer = { ...e.dataTransfer };
|
||||||
|
console.info(newTransfer);
|
||||||
|
|
||||||
window.clientWS.send(JSONMessage('dropped-files', draggedFiles));
|
window.clientWS.send(JSONMessage('dropped-files', draggedFiles));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -65,9 +67,6 @@ export class HomeView extends Component {
|
|||||||
render () {
|
render () {
|
||||||
return (
|
return (
|
||||||
<main>
|
<main>
|
||||||
<Alert color="info">
|
|
||||||
This is a work in progress
|
|
||||||
</Alert>
|
|
||||||
<Jumbotron onDrop={this.handleDrop} onDragover={this.handleDragOver}>
|
<Jumbotron onDrop={this.handleDrop} onDragover={this.handleDragOver}>
|
||||||
<Container className="App">
|
<Container className="App">
|
||||||
<Row>
|
<Row>
|
||||||
|
16
yarn.lock
16
yarn.lock
@ -635,14 +635,6 @@ babel-jest@^22.4.3:
|
|||||||
babel-plugin-istanbul "^4.1.5"
|
babel-plugin-istanbul "^4.1.5"
|
||||||
babel-preset-jest "^22.4.3"
|
babel-preset-jest "^22.4.3"
|
||||||
|
|
||||||
babel-loader@^7.1.4:
|
|
||||||
version "7.1.4"
|
|
||||||
resolved "https://registry.npmjs.org/babel-loader/-/babel-loader-7.1.4.tgz#e3463938bd4e6d55d1c174c5485d406a188ed015"
|
|
||||||
dependencies:
|
|
||||||
find-cache-dir "^1.0.0"
|
|
||||||
loader-utils "^1.0.2"
|
|
||||||
mkdirp "^0.5.1"
|
|
||||||
|
|
||||||
babel-messages@^6.23.0:
|
babel-messages@^6.23.0:
|
||||||
version "6.23.0"
|
version "6.23.0"
|
||||||
resolved "https://registry.npmjs.org/babel-messages/-/babel-messages-6.23.0.tgz#f3cdf4703858035b2a2951c6ec5edf6c62f2630e"
|
resolved "https://registry.npmjs.org/babel-messages/-/babel-messages-6.23.0.tgz#f3cdf4703858035b2a2951c6ec5edf6c62f2630e"
|
||||||
@ -2970,14 +2962,6 @@ find-cache-dir@^0.1.1:
|
|||||||
mkdirp "^0.5.1"
|
mkdirp "^0.5.1"
|
||||||
pkg-dir "^1.0.0"
|
pkg-dir "^1.0.0"
|
||||||
|
|
||||||
find-cache-dir@^1.0.0:
|
|
||||||
version "1.0.0"
|
|
||||||
resolved "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-1.0.0.tgz#9288e3e9e3cc3748717d39eade17cf71fc30ee6f"
|
|
||||||
dependencies:
|
|
||||||
commondir "^1.0.1"
|
|
||||||
make-dir "^1.0.0"
|
|
||||||
pkg-dir "^2.0.0"
|
|
||||||
|
|
||||||
find-up@^1.0.0:
|
find-up@^1.0.0:
|
||||||
version "1.1.2"
|
version "1.1.2"
|
||||||
resolved "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f"
|
resolved "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f"
|
||||||
|
Loading…
Reference in New Issue
Block a user