Skip to content

Commit

Permalink
update build system
Browse files Browse the repository at this point in the history
  • Loading branch information
denis-migdal committed Feb 27, 2025
1 parent 08786c0 commit 4525b83
Show file tree
Hide file tree
Showing 15 changed files with 32 additions and 14 deletions.
2 changes: 2 additions & 0 deletions V3/assets/auto-vanilla/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import LISS from "@LISS"

const template =
LISS.template`Hello <em>World</em>`;

Expand Down
4 changes: 3 additions & 1 deletion V3/components/code/highlight.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -609,4 +609,6 @@ begin:a.concat(/</,a.lookahead(a.concat(n,a.either(/\/>/,/>/,/\s/)))),
end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:r}]},{
className:"tag",begin:a.concat(/<\//,a.lookahead(a.concat(n,/>/))),contains:[{
className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}
})();hljs.registerLanguage("xml",e)})();
})();hljs.registerLanguage("xml",e)})();

export default hljs;
4 changes: 2 additions & 2 deletions V3/components/code/hl.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// const hljs = require('highlight.js');
const hljs = require('./highlight.min.js');
// need to add "export default"...
import hljs from './highlight.min.js';

export function hl(code: string, language: string): string {
return hljs.highlight(code, { language }).value;
Expand Down
10 changes: 10 additions & 0 deletions V3/src/utils/tests/buildTestPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,22 @@ export default function buildTestPage(args: {
margin: 0;
background-color: white;
}
:not(:defined) {
visibility: hidden;
}
</style>
${
args.files === "" || args.files === undefined || args.files?.includes("bry")
? `<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/brython@3/brython.min.js" defer></script>`
: ""
}
<script type="importmap">
{
"imports": {
"@LISS": "${args.liss}"
}
}
</script>
<script type="module" src='${args.liss}'
liss-sw="${args.sw ?? ""}"
liss-mode="auto-load"
Expand Down
2 changes: 2 additions & 0 deletions dist/prod/V3/assets/auto-vanilla/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import LISS from "@LISS"

const template =
LISS.template`Hello <em>World</em>`;

Expand Down
2 changes: 1 addition & 1 deletion dist/prod/V3/libs/LISS/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/prod/V3/libs/LISS/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/prod/V3/skeleton/base/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/prod/V3/skeleton/base/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/prod/V3/skeleton/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/prod/V3/skeleton/index.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "LISS",
"version": "2.0.0",
"description": "[PROJECT_DESC]",
"type": "module",
"repository": {
"type": "git",
"url": "git+[PROJECT_REPOSITORY]"
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
"allowSyntheticDefaultImports": true,

"module": "esnext",
"target": "esnext",
Expand Down
8 changes: 4 additions & 4 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const WF = require("./build/WebpackFramework");
import buildConfigs from "./build/WebpackFramework/index.js";

module.exports = WF.buildConfigs("./V3/",
"./dist/${version}/V3/",
{ "@LISS": "V3/" });
export default buildConfigs("./V3/",
"./dist/${version}/V3/",
{ "@LISS": "V3/" });

0 comments on commit 4525b83

Please sign in to comment.