Skip to content

Commit

Permalink
Save progress
Browse files Browse the repository at this point in the history
  • Loading branch information
dmeltzer committed May 14, 2020
1 parent 1dd706f commit 2413406
Show file tree
Hide file tree
Showing 18 changed files with 66,920 additions and 261 deletions.
19 changes: 19 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.DS_Store
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln

.marginalia

js/
build/
coverage/
91 changes: 46 additions & 45 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,51 +1,52 @@
app_name=gadgetbridge

project_dir=$(CURDIR)/../$(app_name)
build_dir=$(CURDIR)/build/artifacts
appstore_dir=$(build_dir)/appstore
source_dir=$(build_dir)/source
sign_dir=$(build_dir)/sign
package_name=$(app_name)
cert_dir=$(HOME)/.nextcloud/certificates
version+=1.0.0
all: dev-setup lint build-js-production test

all: appstore
# Dev env management
dev-setup: clean clean-dev npm-init

release: appstore create-tag
npm-init:
yarn ci

create-tag:
git tag -s -a v$(version) -m "Tagging the $(version) release."
git push origin v$(version)
npm-update:
yarn update

# Building
build-js:
yarn run dev

build-js-production:
yarn run build

watch-js:
yarn run watch

# Testing
test:
yarn run test

test-watch:
yarn run test:watch

test-coverage:
yarn run test:coverage

# Linting
lint:
yarn run lint

lint-fix:
yarn run lint:fix

# Style linting
stylelint:
yarn run stylelint

stylelint-fix:
yarn run stylelint:fix

# Cleaning
clean:
rm -rf $(build_dir)
rm -rf node_modules

appstore: clean
mkdir -p $(sign_dir)
rsync -a \
--exclude=/build \
--exclude=/docs \
--exclude=/l10n/templates \
--exclude=/l10n/.tx \
--exclude=/tests \
--exclude=/.git \
--exclude=/screenshots \
--exclude=/.github \
--exclude=/l10n/l10n.pl \
--exclude=/CONTRIBUTING.md \
--exclude=/issue_template.md \
--exclude=/README.md \
--exclude=/.gitattributes \
--exclude=/.gitignore \
--exclude=/.scrutinizer.yml \
--exclude=/.travis.yml \
--exclude=/.drone.yml \
--exclude=/Makefile \
$(project_dir)/ $(sign_dir)/$(app_name)
tar -czf $(build_dir)/$(app_name)-$(version).tar.gz \
-C $(sign_dir) $(app_name)
@if [ -f $(cert_dir)/$(app_name).key ]; then \
echo "Signing package…"; \
openssl dgst -sha512 -sign $(cert_dir)/$(app_name).key $(build_dir)/$(app_name)-$(version).tar.gz | openssl base64; \
fi
rm -f js/*

clean-dev:
rm -rf node_modules
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<namespace>GadgetBridge</namespace>

<dependencies>
<nextcloud min-version="12" max-version="14" />
<nextcloud min-version="12" max-version="18" />
</dependencies>

<navigations>
Expand Down
11 changes: 11 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
plugins: ['@babel/plugin-syntax-dynamic-import'],
presets: [
[
'@babel/preset-env',
{
modules: false
}
]
]
}
Loading

0 comments on commit 2413406

Please sign in to comment.