automate android distribution, use files instead of .npmignore
This commit is contained in:
parent
d184633a88
commit
70a2322940
19
.npmignore
19
.npmignore
@ -1,19 +0,0 @@
|
||||
/articles
|
||||
/packages
|
||||
/npm-packages-offline-cache
|
||||
/.vscode
|
||||
/*.log
|
||||
/contrib
|
||||
/.*
|
||||
/configure
|
||||
/selenium
|
||||
/*.json
|
||||
*.tsbuildinfo
|
||||
|
||||
/Makefile
|
||||
/*.js
|
||||
|
||||
/dist/*
|
||||
!/dist/node
|
||||
|
||||
config.mk
|
11
Makefile
11
Makefile
@ -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)
|
||||
|
||||
|
8
contrib/package-android.json
Normal file
8
contrib/package-android.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "android-taler-wallet",
|
||||
"version": "0.6.0",
|
||||
"license": "AGPL3+",
|
||||
"dependencies": {
|
||||
"taler-wallet": "./taler-wallet.tar.gz"
|
||||
}
|
||||
}
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user