Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Commit

Permalink
Merge pull request #458 from dat-land/react
Browse files Browse the repository at this point in the history
React
  • Loading branch information
martinheidegger authored Nov 1, 2018
2 parents 5af70eb + f687bbe commit 075f328
Show file tree
Hide file tree
Showing 144 changed files with 40,883 additions and 14,974 deletions.
12 changes: 12 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"presets": ["react"],
"env": {
"test": {
"plugins": [
"transform-es2015-modules-commonjs",
"transform-es2015-classes",
"transform-object-rest-spread"
]
}
}
}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ node_modules
dmgs
npm-debug.log
build/background.tiff
bundle.js
.dat
tags
yarn.lock
package-lock.json
static/bundle.js
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ env:
install:
- Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- npm install
- npm run build:prod
deploy:
provider: script
script: npm run dist
Expand Down
18 changes: 2 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
## Table of Content
- [Download](#download)
- [Commands](#commands)
- [Directory Structure](#directory-structure)
- [FAQ](#faq)
- [License](#license)

Expand All @@ -45,21 +44,8 @@ $ brew update && brew cask install dat
$ npm install # install dependencies
$ npm start # start the application
$ npm run dist # compile the app into an ASAR file to release
$ npm start --dat=<dir> # change the path for new dat archives (default ~/Downloads)
```

## Directory structure

```txt
elements/ Standalone application-specific elements
lib/ Generalized components, should be moved out of project later
models/ Choo models
pages/ Views that are directly mounted on the router
public/ Various assets
scripts/ Various scripts used to build and manage the repository
app.js Client application entry file
index.html Initial HTML served
index.js Electron application entry
$ npm start --data=<dir> # change the path for new dat archives (default ~/Downloads/dat)
$ npm start --db=<dir> # change the path for users settings (default ~/.dat-desktop)
```

## FAQ
Expand Down
36 changes: 0 additions & 36 deletions app.js

This file was deleted.

Loading

0 comments on commit 075f328

Please sign in to comment.