From 614af1b514758ae61947dd9fb90a77209b94412f Mon Sep 17 00:00:00 2001 From: duncdrum Date: Thu, 1 Jul 2021 11:21:40 +0200 Subject: [PATCH 1/6] chore(ci): rename master => main --- .github/workflows/node.js.yml | 2 +- generators/app/templates/ci/exist.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 342aaf47..41a782dc 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -23,7 +23,7 @@ jobs: name: Release runs-on: ubuntu-latest needs: build - if: github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/main' steps: - name: Checkout uses: actions/checkout@v2 diff --git a/generators/app/templates/ci/exist.yml b/generators/app/templates/ci/exist.yml index d7d37b28..9078ae32 100644 --- a/generators/app/templates/ci/exist.yml +++ b/generators/app/templates/ci/exist.yml @@ -86,7 +86,7 @@ jobs: # name: Release # runs-on: ubuntu-latest # needs: build - # if: github.ref == 'refs/heads/master' + # if: github.ref == 'refs/heads/main' # steps: # - name: Checkout # uses: actions/checkout@v2 From a0a0f7124d4c4a235761be4552e28664bd815033 Mon Sep 17 00:00:00 2001 From: duncdrum Date: Thu, 1 Jul 2021 11:28:34 +0200 Subject: [PATCH 2/6] feat(ignore): generated gitignore covers more IDEs --- generators/app/templates/github/__gitignore__ | 84 ++++++++++++++++++- 1 file changed, 81 insertions(+), 3 deletions(-) diff --git a/generators/app/templates/github/__gitignore__ b/generators/app/templates/github/__gitignore__ index 9376a56e..bf967942 100644 --- a/generators/app/templates/github/__gitignore__ +++ b/generators/app/templates/github/__gitignore__ @@ -72,12 +72,10 @@ query-results .env .yo-rc.json node_modules/ -coverage +coverage/ build/ bower_components/ -.idea reports/ -*.code-workspace # ========================= # tei-pub (gulp) @@ -85,3 +83,83 @@ reports/ webtest/bin webtest/reports webtest/errorShots + +############################## +## Java +############################## +.mtj.tmp/ +*.class +*.jar +*.war +*.ear +*.nar +hs_err_pid* + +############################## +## Maven +############################## +target/ +pom.xml.tag +pom.xml.releaseBackup +pom.xml.versionsBackup +pom.xml.next +pom.xml.bak +release.properties +dependency-reduced-pom.xml +buildNumber.properties +.mvn/timing.properties +.mvn/wrapper/maven-wrapper.jar + +############################## +## Gradle +############################## +bin/ +build/ +.gradle +.gradletasknamecache +gradle-app.setting +!gradle-wrapper.jar + +############################## +## IntelliJ +############################## +out/ +.idea/ +.idea_modules/ +*.iml +*.ipr +*.iws + +############################## +## Eclipse +############################## +.settings/ +bin/ +tmp/ +.metadata +.classpath +.project +*.tmp +*.bak +*.swp +*~.nib +local.properties +.loadpath +.factorypath + +############################## +## NetBeans +############################## +nbproject/private/ +build/ +nbbuild/ +dist/ +nbdist/ +nbactions.xml +nb-configuration.xml + +############################## +## Visual Studio Code +############################## +.vscode/ +.code-workspace From efdd1f8db37710ef81732e721fa679c17c6b3c43 Mon Sep 17 00:00:00 2001 From: duncdrum Date: Thu, 1 Jul 2021 11:37:42 +0200 Subject: [PATCH 3/6] fix(readme): generated readme pill branch name --- generators/app/templates/github/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generators/app/templates/github/readme.md b/generators/app/templates/github/readme.md index 70c4f634..d2fe3f4b 100644 --- a/generators/app/templates/github/readme.md +++ b/generators/app/templates/github/readme.md @@ -104,6 +104,6 @@ You can take a look at the [Contribution guidelines for this project](.github/CO [release-img]: https://img.shields.io/badge/release-<%- version %>-green.svg [release-url]: https://github.com/<%- ghuser %>/<%- title %>/releases/latest <%_ if (ci == 'travis') { %> -[travis-image]: https://travis-ci.com/<%- ghuser %>/<%- title %>.svg?branch=master +[travis-image]: https://travis-ci.com/<%- ghuser %>/<%- title %>.svg?branch=main [travis-url]: https://travis-ci.com/<%- ghuser %>/<%- title %> <% } -%> \ No newline at end of file From 128c86864d103ec9790e1f8c9202df055ca8e9c0 Mon Sep 17 00:00:00 2001 From: duncdrum Date: Thu, 1 Jul 2021 11:38:06 +0200 Subject: [PATCH 4/6] chore(npm): ignore vsc from package --- .npmignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.npmignore b/.npmignore index 2eb67ec2..57774602 100644 --- a/.npmignore +++ b/.npmignore @@ -1,3 +1,4 @@ .travis.yml .notes .github/ +.code-workspace \ No newline at end of file From 965ab7c5afe893d1a16347ec98159c9179f3d189 Mon Sep 17 00:00:00 2001 From: duncdrum Date: Thu, 1 Jul 2021 11:45:34 +0200 Subject: [PATCH 5/6] chore(app_spec): disable no-var eslint warning I've tried many times without var but something needs them --- generators/app/templates/specs/mocha/app_spec.js | 1 + 1 file changed, 1 insertion(+) diff --git a/generators/app/templates/specs/mocha/app_spec.js b/generators/app/templates/specs/mocha/app_spec.js index 9b2184a5..52405883 100644 --- a/generators/app/templates/specs/mocha/app_spec.js +++ b/generators/app/templates/specs/mocha/app_spec.js @@ -1,3 +1,4 @@ +/* eslint-disable no-var */ 'use strict' const chai = require('chai') From 72b7ae7483dc0cb295cd6d9553f328a51472f6e2 Mon Sep 17 00:00:00 2001 From: duncdrum Date: Thu, 1 Jul 2021 12:00:14 +0200 Subject: [PATCH 6/6] fix(page.html): add alert back in also fixes lndung page int test OOTB --- generators/app/templates/pages/index.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/generators/app/templates/pages/index.html b/generators/app/templates/pages/index.html index 3384ebac..8a467625 100755 --- a/generators/app/templates/pages/index.html +++ b/generators/app/templates/pages/index.html @@ -9,7 +9,13 @@

Generated page

<% if(apptype == 'plain'){ %> <% } else { %><% } %> -
+
+

+ This is the entry page into your application and was generated by yeoman. It uses HTML templates for a clean separation of HTML views and application logic.

+

To add your own template functions, start by editing the XQuery module: +

app.xql
.

+
+

The page template uses the Bootstrap CSS library for the page layout.