diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 549dc2e..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,75 +0,0 @@ -variables: - NPMPATH: "node_modules/.bin" - -stages: - - build - - cleanup_build - - deploy - - cleanup - -.run_deploy: &run_deploy - script: - - chmod +x ./deploy.sh - - ./deploy.sh - -build_job: - stage: build - script: - - npm install - - $NPMPATH/grunt - tags: - - javascript - except: - - tags - artifacts: - paths: - - dist/*.min.* - - info/ - - resources/ - - index.html - - manifest.appcache - -cleanup_build_job: - stage: cleanup_build - script: - - rm -rf node_modules - - rm -rf dist - when: on_failure - -develop: - stage: deploy - <<: *run_deploy - environment: develop - except: - - tags - - master - - develop - variables: - ENVIRON: develop - TARGET: $WWW_DEPLOY_ROOT_DEVELOP - -staging: - stage: deploy - <<: *run_deploy - environment: staging - only: - - develop - variables: - ENVIRON: staging - TARGET: $WWW_DEPLOY_ROOT_STAGING - -production: - stage: deploy - <<: *run_deploy - environment: production - only: - - master - variables: - ENVIRON: production - TARGET: $WWW_DEPLOY_ROOT_PRODUCTION - -cleanup_job: - stage: cleanup - script: - - rm -rf node_modules - when: always diff --git a/README.md b/README.md index 9772066..22eb1a9 100644 --- a/README.md +++ b/README.md @@ -22,10 +22,10 @@ Beim Einbinden muss das attribut `data-class` angegeben werden, welches die CSS- * Binde nach den CSS-Dateien (wichtig!) folgende Javascript-Dateien im HTML-Dokument ein: * dist/libs.min.js: Dies enthält die minifizierten Versionen von jQuery, jQuery-UI (mit den Komponenten `code` und `widget`) und jQuery-Cookie. Alternativ kannst Du auch direkt die benötigten Bibliotheken einbinden: - * jquery (getestet mit Version 2.1.0) - * jquery-ui (getestet mit Version 1.10.4) - * Von jquery-ui werden die Komponenten 'core' und 'widget' benötigt. - * jquery-cookie (getestet mit Version 1.4.0) + * jquery (getestet mit Version 3.4.1) + * jquery-ui (getestet mit Version 1.12.1) + * Von jquery-ui wird die Komponente 'widget' benötigt. + * jquery-cookie (getestet mit Version 1.4.1) Je nach dem, in welchen Sprachen du die Uhr verwenden willst, noch eine der folgenden Dateien: * dist/jquery.uhr.complete.min.js: Enthält die Hauptdatei sowie alle unterstützten Sprachdateien * dist/jquery.uhr.base.min.js: Enthält die Hauptdatei sowie Bärndütsch (de_CH) @@ -149,7 +149,7 @@ Es ist möglich, die Uhr durch den Aufruf mit URL-Parameters zu konfigurieren. D * on: Die Uhr ist eingeschaltet * off: Die Uhr ist ausgeschaltet -Eine URL kann also beispielweise so aussehen: +Eine URL kann also beispielsweise so aussehen: http://example.com/uhr.html#l=fr&t=red&m=seconds&s=on diff --git a/deploy.sh b/deploy.sh deleted file mode 100644 index b5515ed..0000000 --- a/deploy.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh - -declare destination -case "${TARGET}" in - "${WWW_DEPLOY_ROOT_DEVELOP}") - destination="${TARGET}/${CI_BUILD_REF_NAME}" - ;; - "${WWW_DEPLOY_ROOT_STAGING}"|"${WWW_DEPLOY_ROOT_PRODUCTION}") - destination="${TARGET}" - ;; - *) - echo "Invalid TARGET specified. Aborting deployment." - exit 1 - ;; -esac - -rm -rf "${destination}/*" -rm -rf "${destination}/.??*" -mkdir -p "${destination}/dist" -cp -a index.html manifest.appcache info resources "${destination}" -cp -a dist/*.min.* "${destination}/dist" - -echo "Deployment successful."