Ver código fonte

Fixed prod build and Actions now creates a sitemap

n1474335 4 anos atrás
pai
commit
7747bfe0f2
3 arquivos alterados com 7 adições e 4 exclusões
  1. 3 0
      .github/workflows/main.yml
  2. 0 4
      Gruntfile.js
  3. 4 0
      webpack.config.js

+ 3 - 0
.github/workflows/main.yml

@@ -30,6 +30,9 @@ jobs:
       run: npx grunt prod
     - name: UI Tests
       run: xvfb-run --server-args="-screen 0 1200x800x24" npx grunt testui
+    - name: Generate sitemap
+      run: npx grunt exec:sitemap
+    # - name: grunt copy:ghPages
     # - name: Deploy
     #   uses: peaceiris/actions-gh-pages@v3
     #   with:

+ 0 - 4
Gruntfile.js

@@ -242,10 +242,6 @@ module.exports = function (grunt) {
                     entry: Object.assign({
                         main: "./src/web/index.js"
                     }, moduleEntryPoints),
-                    output: {
-                        publicPath: "",
-                        globalObject: "this"
-                    },
                     resolve: {
                         alias: {
                             "./config/modules/OpModules.mjs": "./config/modules/Default.mjs"

+ 4 - 0
webpack.config.js

@@ -34,6 +34,10 @@ const banner = `/**
 
 
 module.exports = {
+    output: {
+        publicPath: "",
+        globalObject: "this"
+    },
     plugins: [
         new webpack.ProvidePlugin({
             $: "jquery",