tungsten 0.3.6 → 0.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.build-complete +1 -1
- package/dist/bin/commands/build.d.ts.map +1 -1
- package/dist/bin/commands/build.js +2 -0
- package/dist/bin/commands/dev.d.ts.map +1 -1
- package/dist/bin/commands/dev.js +2 -0
- package/dist/componentCss/tungsten.css +2 -2
- package/dist/staticGen/staticGen.js +4 -4
- package/package.json +1 -1
package/dist/.build-complete
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
1786136431615
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../src/bin/commands/build.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../src/bin/commands/build.ts"],"names":[],"mappings":"AAwDA,OAAO,EAAE,CAAA"}
|
|
@@ -9,7 +9,9 @@ const profile = process.argv.slice(3).includes('--profile');
|
|
|
9
9
|
const sxyFramework = new Framework();
|
|
10
10
|
sxyFramework.profiler = createTimeProfiler(profile);
|
|
11
11
|
await sxyFramework.init();
|
|
12
|
+
cliOut('Removing old builds');
|
|
12
13
|
await sxyFramework.clean('prod');
|
|
14
|
+
cliOut('Building');
|
|
13
15
|
await sxyFramework.build('prod');
|
|
14
16
|
// //// dev
|
|
15
17
|
// import { prodBuildFolder } from '../../settings.js'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../../src/bin/commands/dev.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../../src/bin/commands/dev.ts"],"names":[],"mappings":"AAuDA,OAAO,EAAE,CAAA"}
|
package/dist/bin/commands/dev.js
CHANGED
|
@@ -15,8 +15,10 @@ sxyFramework.profiler = createTimeProfiler(profile);
|
|
|
15
15
|
await sxyFramework.init();
|
|
16
16
|
//console.log('framework ready')
|
|
17
17
|
// build for dev
|
|
18
|
+
cliOut('Removing old builds');
|
|
18
19
|
await sxyFramework.clean('dev');
|
|
19
20
|
//cliOut('cleaned')
|
|
21
|
+
cliOut('Building');
|
|
20
22
|
await sxyFramework.build('dev');
|
|
21
23
|
//cliNews('Build complete')
|
|
22
24
|
// start a dev server
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@import "i/T-components-library-
|
|
2
|
-
@import "i/T-components-library-
|
|
1
|
+
@import "i/T-components-library-RichTextEditor-RichTextEditor.css";
|
|
2
|
+
@import "i/T-components-library-__StatefulMessage-StatefulMessage.css";
|
|
@@ -65,7 +65,9 @@ export async function staticGen(framework) {
|
|
|
65
65
|
const finalRoutes = objectFilter(appRoutes, (path, route) => {
|
|
66
66
|
if (!path.startsWith('/')) {
|
|
67
67
|
//cliWarn(`Static gen skipping route ${route.path}, because it does not start with /, and is not default or 404`)
|
|
68
|
-
|
|
68
|
+
if (!['error', '404', 'default'].includes(path)) {
|
|
69
|
+
cliWarn(`Static gen skipping route ${path}, because it does not start with /`);
|
|
70
|
+
}
|
|
69
71
|
return false;
|
|
70
72
|
}
|
|
71
73
|
if (path.includes(':')) {
|
|
@@ -96,6 +98,7 @@ export async function staticGen(framework) {
|
|
|
96
98
|
links = findLinks(result);
|
|
97
99
|
const newPaths = [];
|
|
98
100
|
for (const link of links) {
|
|
101
|
+
if (link.startsWith('http://') || link.startsWith('https://')) continue; // ignore external links
|
|
99
102
|
if (link.startsWith('#')) continue; // ignore anchors/hash links
|
|
100
103
|
if (!StringIsPath(link)) {
|
|
101
104
|
throwError('renderRoute', `Found a link '${link}' that did not start with /`);
|
|
@@ -104,9 +107,6 @@ export async function staticGen(framework) {
|
|
|
104
107
|
for (const [path, dynamicRoute] of dynamicRoutes) {
|
|
105
108
|
if (RouteKeyIsPath(path)) {
|
|
106
109
|
if (matchPath(path, link)) {
|
|
107
|
-
//console.log('link', link)
|
|
108
|
-
//console.log('in?', link in rewriteMap)
|
|
109
|
-
//console.log(`link ${link} matched dynamic route ${dynamicRoute.path}`)
|
|
110
110
|
newPaths.push(link);
|
|
111
111
|
rewriteMap[link] = pathToLink(link, siteBasePath);
|
|
112
112
|
}
|