automate android distribution, use files instead of .npmignore

This commit is contained in:
Florian Dold 2019-11-02 13:38:41 +01:00
parent d184633a88
commit 70a2322940
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
4 changed files with 28 additions and 19 deletions

View File

@ -1,19 +0,0 @@
/articles
/packages
/npm-packages-offline-cache
/.vscode
/*.log
/contrib
/.*
/configure
/selenium
/*.json
*.tsbuildinfo
/Makefile
/*.js
/dist/*
!/dist/node
config.mk

View File

@ -93,3 +93,14 @@ endif
.PHONY: watch
watch: tsconfig.json
./node_modules/.bin/webpack --watch
# Create the node_modules directory for the android wallet
package-android:
rm -rf dist/android
mkdir -p dist/android
yarn pack --filename dist/android/taler-wallet.tar.gz
cp contrib/package-android.json dist/android/package.json
cd dist/android && yarn install
#cd dist/android && npm install --global --prefix $(CURDIR)/dist/android $(CURDIR)

View File

@ -0,0 +1,8 @@
{
"name": "android-taler-wallet",
"version": "0.6.0",
"license": "AGPL3+",
"dependencies": {
"taler-wallet": "./taler-wallet.tar.gz"
}
}

View File

@ -15,6 +15,15 @@
"scripts": {
"build": "make tsc"
},
"files": [
"AUTHORS",
"README",
"COPYING",
"bin/",
"dist/node",
"src/",
"emscripten/"
],
"devDependencies": {
"@types/react": "^16.4.0",
"@types/react-dom": "^16.0.0",