Move package.ignore contents to package.json

This allows `Makefile` to require and join the ignore entries easily
with NodeJS instead of relying on `tr` and `sed`.
This commit is contained in:
Juan Cruz Viotti 2016-03-09 08:55:19 -04:00
parent fdcc5d6b71
commit 95eff44af5
3 changed files with 23 additions and 22 deletions

View File

@ -1,6 +1,6 @@
ELECTRON_PACKAGER=./node_modules/.bin/electron-packager
ELECTRON_BUILDER=./node_modules/.bin/electron-builder
ELECTRON_IGNORE=$(shell cat package.ignore | tr "\\n" "|" | sed "s/.$$//")
ELECTRON_IGNORE=$(shell node -e "console.log(require('./package.json').packageIgnore.join('|'))")
ELECTRON_VERSION=0.36.8
ETCHER_VERSION=$(shell node -e "console.log(require('./package.json').version)")
APPLICATION_NAME=$(shell node -e "console.log(require('./package.json').displayName)")

View File

@ -1,21 +0,0 @@
LICENSE
Makefile
package.ignore
(.*)\.md
appveyor.yml
bower.json
gulpfile.js
screenshot.png
tests
etcher-release
lib/scss
node_modules/electron-mocha
node_modules/electron-builder
node_modules/angular-mocks
node_modules/browserify
node_modules/gulp*
node_modules/jshint-stylish
node_modules/mochainon
node_modules/vinyl-*
node_modules/rindle
node_modules/tmp

View File

@ -17,6 +17,28 @@
},
"author": "Juan Cruz Viotti <juan@resin.io>",
"license": "Apache-2.0",
"packageIgnore": [
"LICENSE",
"Makefile",
"(.*)\\.md",
"appveyor.yml",
"bower.json",
"gulpfile.js",
"screenshot.png",
"tests",
"etcher-release",
"lib/scss",
"node_modules/electron-mocha",
"node_modules/electron-builder",
"node_modules/angular-mocks",
"node_modules/browserify",
"node_modules/gulp*",
"node_modules/jshint-stylish",
"node_modules/mochainon",
"node_modules/vinyl-*",
"node_modules/rindle",
"node_modules/tmp"
],
"builder": {
"osx": {
"title": "Etcher",