Skip to content

Commit 735c2c7

Browse files
committed
https://github.com/elmsln/issues/issues/1614
1 parent b10e3d6 commit 735c2c7

File tree

3 files changed

+25
-29
lines changed

3 files changed

+25
-29
lines changed

system/backend/php/lib/HAXCMSSite.php

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -320,23 +320,29 @@ public function getServiceWorkerStatus() {
320320
* @return array keyed array of files we wish to pull from the boilerplate and keep in sync
321321
*/
322322
public function getManagedTemplateFiles() {
323+
// not everything is templated but ensures self refreshing if we need to bulk tweak / enhance
323324
return array(
324-
'htaccess' => '.htaccess', // not templated (yet) but ensures self refreshing if we tweak it
325-
'404' => '404.html',
326-
'msbc' => 'browserconfig.xml',
327-
'dat' => 'dat.json',
325+
// HAX core / application / PWA requirements
326+
'htaccess' => '.htaccess',
328327
'build' => 'build.js',
329328
'buildlegacy' => 'assets/build-legacy.js',
330329
'buildpolyfills' => 'assets/build-polyfills.js',
331330
'buildhaxcms' => 'build-haxcms.js',
332331
'index' => 'index.html',
333332
'manifest' => 'manifest.json',
334-
'package' => 'package.json',
335-
'polymer' => 'polymer.json',
336333
'push' => 'push-manifest.json',
337334
'robots' => 'robots.txt',
338335
'sw' => 'service-worker.js',
339336
'outdated' => 'assets/upgrade-browser.html',
337+
'404' => '404.html',
338+
'msbc' => 'browserconfig.xml',
339+
// local development tooling
340+
'webdevserverhaxcmsconfigcjs' => 'web-dev-server.haxcms.config.cjs',
341+
'package' => 'package.json',
342+
'polymer' => 'polymer.json',
343+
// Beaker browser
344+
'dat' => 'dat.json',
345+
// SCORM 1.2
340346
'imsmdrootv1p2p1' => 'imsmd_rootv1p2p1.xsd',
341347
'imscprootv1p1p2' => 'imscp_rootv1p1p2.xsd',
342348
'adlcprootv1p2' => 'adlcp_rootv1p2.xsd',

system/boilerplate/site/package.json

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -19,33 +19,13 @@
1919
"access": "public"
2020
},
2121
"resolutions": {
22-
"object-assign": "4.1.1",
23-
"commander": "2.19.0",
24-
"readable-stream": "1.1.14",
25-
"isarray": "1.0.0",
26-
"source-map": "0.5.7",
27-
"kind-of": "6.0.2",
28-
"is-number": "4.0.0",
29-
"once": "1.4.0",
30-
"minimist": "1.2.0",
31-
"ajv": "6.5.5",
32-
"fast-deep-equal": "2.0.1",
33-
"json-schema-traverse": "0.4.1",
34-
"@polymer/app-layout": "3.0.2"
3522
},
3623
"devDependencies": {
37-
"@prettier/plugin-php": "^0.11.0",
38-
"prettier": "^1.16.4",
39-
"gulp": "^4.0.2",
40-
"gulp-terser": "^1.2.0",
41-
"rollup-plugin-terser": "5.2.0"
24+
"@web/dev-server": "0.3.0"
4225
},
4326
"scripts": {
44-
"lint": "prettier --check 'system/**/*.php' '*.{html,js,php,yml}'",
45-
"format": "prettier --write 'system/**/*.php' '*.{html,js,php,yml}'",
46-
"terser": "gulp",
4727
"start": "yarn run dev",
48-
"dev": "polymer serve --open --entrypoint dist/dev.html --allow-origin --open-path=/",
28+
"dev": "web-dev-server -c web-dev-server.haxcms.config.cjs",
4929
"dev-theme": "cd custom && yarn start"
5030
}
51-
}
31+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
const path = require("path");
2+
module.exports = {
3+
watch: true,
4+
https: true,
5+
nodeResolve: true,
6+
open: true,
7+
dedupe: true,
8+
rootDir: "./",
9+
appIndex: path.join(process.cwd(), "index.html"),
10+
};

0 commit comments

Comments
 (0)