Skip to content

Commit

Permalink
fix npm distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
ewnd9 committed Jul 10, 2017
1 parent 1f7cfd6 commit 327b5de
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
1 change: 0 additions & 1 deletion .npmignore

This file was deleted.

2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ language: node_js
node_js:
- '6'
script:
- yarn install
- yarn test
- yarn lint
- yarn build
- npm run build:electron-deb # empty node_modules with `yarn build:electron-deb`
- mv dist-pkg/installers/record-desktop_*_amd64.deb record-desktop_${TRAVIS_TAG}_amd64.deb
deploy:
Expand Down
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node

const electronPath = require('electron-prebuilt');
const electronPath = require('electron');
const childProcess = require('child_process');

const args = process.argv.slice(2);
Expand Down
11 changes: 4 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@
"start": "NODE_ENV=development electron ./src/dist/main.js",
"test": "ava 'src/**/*.spec.js'",
"test:watch": "nodemon --exec ava",
"prebuild": "rm -rf dist && mkdir dist",
"prebuild": "rm -rf src/dist && mkdir src/dist",
"build": "npm-run-all --parallel build:electron build:frontend",
"build:watch": "npm-run-all --parallel build:electron:watch build:frontend:watch",
"build:electron": "babel -d src/dist src/main",
"build:electron:watch": "babel --watch -d src/dist src/main",
"build:frontend": "NODE_ENV=production webpack",
"build:frontend:watch": "webpack-dev-server",
"precommit": "npm run lint",
"prepublish": "npm run build",
"electron": "NODE_ENV=development electron ./dist/main.js",
"lint": "eslint 'src/main/**/*.js' 'src/frontend/**/*.js'",
"build:electron-pkg": "npm run build && rm -rf dist-pkg && electron-packager . record-desktop --platform linux --arch x64 --out dist-pkg/",
Expand All @@ -41,13 +42,9 @@
"linux"
],
"files": [
"dist",
"shared",
"public",
"src",
"app.js",
"cat.sh",
"icon.png",
"icon-recording.png"
"cat.sh"
],
"author": "ewnd9 <ewndnine@gmail.com>",
"license": "MIT",
Expand Down

0 comments on commit 327b5de

Please sign in to comment.