Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorg #386

Merged
merged 9 commits into from
Jul 24, 2016
Merged

Reorg #386

Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 0 additions & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
app/dist
app/node_modules
build
dist
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# build output
dist
build

# dependencies
node_modules
Expand Down
25 changes: 11 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,24 @@ brew cask install hyperterm

## Contribute

To install `package.json` dependencies in a way where the native
modules are built with `electron`, run:
To test a certain git tree, clone and then run:

```bash
./scripts/install.sh
npm install
npm run pack
```

Then, you want to make sure `app/dist` is populated. I recommend
running `webpack` with `--watch` so that any changes you make
to the app are detected.
then open the `./dist` folder to find the built binaries!

```bash
cd app/
npm install
If you want to develop, run the above, and then you want to
run webpack in `watch` mode:

```
npm run dev
```

Then you can run in the main directory:
and to load the application simply run:

```bash
npm start
```

...to launch the app!
electron app/index.js
```
3 changes: 3 additions & 0 deletions app/.eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
app/dist
app/node_modules
build
dist
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 0 additions & 3 deletions index.js → app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ if (isDev) {

const url = 'file://' + resolve(
isDev ? __dirname : app.getAppPath(),
// in prod version, we copy over index.html and dist from 'app'
// into one dist folder to avoid unwanted files in package
isDev ? 'app' : 'build',
'index.html'
);

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
70 changes: 15 additions & 55 deletions app/package.json
Original file line number Diff line number Diff line change
@@ -1,46 +1,25 @@
{
"name": "hyperterm-web",
"version": "0.0.1",
"description": "Web app that runs in the renderer process",
"name": "hyperterm",
"productName": "HyperTerm",
"version": "0.7.0-beta",
"license": "MIT",
"author": "rauchg",
"repository": "zeit/hyperterm",
"description": "HTML/JS/CSS Terminal",
"dependencies": {
"aphrodite-simple": "0.4.1",
"color": "^0.11.3",
"hterm-umdjs": "1.1.3",
"json-loader": "0.5.4",
"mousetrap": "1.6.0",
"child_pty": "3.0.1",
"convert-css-color-name-to-hex": "0.1.1",
"default-shell": "1.0.1",
"electron-config": "0.2.1",
"electron-is-dev": "0.1.1",
"gaze": "1.1.0",
"mkdirp": "0.5.1",
"ms": "0.7.1",
"object-values": "1.0.0",
"react": "15.2.1",
"react-addons-pure-render-mixin": "15.2.1",
"react-deep-force-update": "2.0.1",
"react-dom": "15.2.1",
"react-redux": "4.4.5",
"redux": "3.5.2",
"redux-thunk": "2.1.0",
"reselect": "2.5.3",
"seamless-immutable": "6.1.1"
},
"devDependencies": {
"babel-cli": "6.10.1",
"babel-core": "6.10.4",
"babel-eslint": "6.1.2",
"babel-loader": "6.2.4",
"babel-preset-es2015-native-modules": "6.9.0",
"babel-preset-react": "6.11.1",
"eslint": "3.1.1",
"eslint-config-standard": "5.3.5",
"eslint-plugin-promise": "2.0.0",
"eslint-plugin-react": "5.2.2",
"eslint-plugin-standard": "2.0.0",
"webpack": "2.1.0-beta.15"
"shell-env": "0.1.2",
"uid2": "0.0.3"
},
"eslintConfig": {
"extends": "standard",
"plugins": [
"react"
],
"rules": {
"yoda": 0,
"semi": [
Expand All @@ -55,26 +34,7 @@
"before": false,
"after": true
}
],
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
]
}
},
"babel": {
"presets": [
"es2015-native-modules",
"react"
]
},
"scripts": {
"dev": "webpack --watch",
"lint": "eslint .",
"build": "NODE_ENV=production webpack",
"test": "npm run lint"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
Binary file added build/icon.ico
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
78 changes: 57 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,48 @@
{
"name": "hyperterm",
"productName": "HyperTerm",
"version": "0.7.0-beta",
"license": "MIT",
"name": "hyperterm-web",
"version": "0.0.1",
"description": "Web app that runs in the renderer process",
"repository": "zeit/hyperterm",
"description": "HTML/JS/CSS Terminal",
"dependencies": {
"child_pty": "3.0.1",
"convert-css-color-name-to-hex": "0.1.1",
"default-shell": "1.0.1",
"electron-config": "0.2.1",
"electron-is-dev": "0.1.1",
"gaze": "1.1.0",
"mkdirp": "0.5.1",
"aphrodite-simple": "0.4.1",
"color": "^0.11.3",
"hterm-umdjs": "1.1.3",
"json-loader": "0.5.4",
"mousetrap": "1.6.0",
"ms": "0.7.1",
"shell-env": "0.1.2",
"uid2": "0.0.3"
"object-values": "1.0.0",
"react": "15.2.1",
"react-addons-pure-render-mixin": "15.2.1",
"react-deep-force-update": "2.0.1",
"react-dom": "15.2.1",
"react-redux": "4.4.5",
"redux": "3.5.2",
"redux-thunk": "2.1.0",
"reselect": "2.5.3",
"seamless-immutable": "6.1.1"
},
"devDependencies": {
"electron-installer-debian": "0.3.0",
"electron-packager": "7.3.0",
"babel-cli": "6.10.1",
"babel-core": "6.10.4",
"babel-eslint": "6.1.2",
"babel-loader": "6.2.4",
"babel-preset-es2015-native-modules": "6.9.0",
"babel-preset-react": "6.11.1",
"electron-builder": "5.14.2",
"electron-prebuilt": "1.2.8",
"eslint": "3.1.1",
"eslint-config-standard": "5.3.5",
"eslint-plugin-promise": "2.0.0",
"eslint-plugin-react": "5.2.2",
"eslint-plugin-standard": "2.0.0",
"husky": "0.11.4"
"husky": "0.11.4",
"webpack": "2.1.0-beta.15"
},
"eslintConfig": {
"extends": "standard",
"plugins": [
"react"
],
"rules": {
"yoda": 0,
"semi": [
Expand All @@ -44,14 +57,37 @@
"before": false,
"after": true
}
]
],
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
}
},
"babel": {
"presets": [
"es2015-native-modules",
"react"
]
},
"build": {
"appId": "hyperterm",
"app-category-type": "public.app-category.developer-tools",
"asar": false
},
"scripts": {
"start": "electron index",
"lint": "eslint .",
"dev": "webpack --watch",
"lint": "eslint lib/ && eslint app/*.js",
"build": "NODE_ENV=production webpack",
"test": "npm run lint",
"start": "electron app",
"prepublish": "npm test",
"prepush": "npm test",
"test": "npm run lint"
"postinstall": "install-app-deps",
"pack": "npm run build && build --dir",
"dist": "npm run build && build"
}
}
31 changes: 0 additions & 31 deletions scripts/config.json

This file was deleted.

13 changes: 0 additions & 13 deletions scripts/install.sh

This file was deleted.

31 changes: 0 additions & 31 deletions scripts/package.sh

This file was deleted.

2 changes: 1 addition & 1 deletion app/webpack.config.js → webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
devtool: isProd ? 'hidden-source-map' : 'cheap-eval-source-map',
entry: './lib/index.js',
output: {
path: path.join(__dirname, './dist'),
path: path.join(__dirname, 'app', 'dist'),
filename: 'bundle.js'
},
module: {
Expand Down