@common-stack/rollup-vite-utils 6.0.6-alpha.55 → 6.0.6-alpha.56
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.
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
'use strict';var fs=require('fs'),path=require('path'),handleComponentOrDialog=require('../rollup/modifyLibFiles/handleComponentOrDialog.cjs');function _interopNamespaceDefault(e){var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var fs__namespace=/*#__PURE__*/_interopNamespaceDefault(fs);var path__namespace=/*#__PURE__*/_interopNamespaceDefault(path)
|
|
2
|
-
function getRootPath() {
|
|
1
|
+
'use strict';var fs=require('fs'),path=require('path'),handleComponentOrDialog=require('../rollup/modifyLibFiles/handleComponentOrDialog.cjs'),jsonWrappers=require('./json-wrappers.cjs');function _interopNamespaceDefault(e){var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var fs__namespace=/*#__PURE__*/_interopNamespaceDefault(fs);var path__namespace=/*#__PURE__*/_interopNamespaceDefault(path);function getRootPath() {
|
|
3
2
|
return process.cwd();
|
|
4
3
|
}
|
|
5
4
|
function generateRoute(filePath) {
|
|
@@ -7,7 +6,7 @@ function generateRoute(filePath) {
|
|
|
7
6
|
return { loaderInfo };
|
|
8
7
|
}
|
|
9
8
|
function createDummyFile(route) {
|
|
10
|
-
const routeStr = `${route.id}/${route.path}
|
|
9
|
+
const routeStr = jsonWrappers.getHash(`${route.id}/${route.path}`);
|
|
11
10
|
const fileName = `DummyRoute-${routeStr}.tsx`;
|
|
12
11
|
const newFilePath = path__namespace.join(getRootPath(), 'app', fileName);
|
|
13
12
|
const dummyComponent = createDummyComponent(route);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-routes.cjs","sources":["../../src/vite-wrappers/custom-routes.ts"],"sourcesContent":[null],"names":["extractLoaderInfoFromFile","path","fs"],"mappings":"
|
|
1
|
+
{"version":3,"file":"custom-routes.cjs","sources":["../../src/vite-wrappers/custom-routes.ts"],"sourcesContent":[null],"names":["extractLoaderInfoFromFile","getHash","path","fs"],"mappings":"qlBAKA,SAAS,WAAW,GAAA;AAChB,IAAA,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC;AACzB,CAAC;AAEK,SAAU,aAAa,CAAC,QAAgB,EAAA;IAC1C,MAAM,EAAE,UAAU,EAAE,GAAGA,iDAAyB,CAAC,QAAQ,CAAC,CAAC;IAC3D,OAAO,EAAE,UAAU,EAAE,CAAC;AAC1B,CAAC;AAEK,SAAU,eAAe,CAAC,KAAU,EAAA;AACtC,IAAA,MAAM,QAAQ,GAAGC,oBAAO,CAAC,GAAG,KAAK,CAAC,EAAE,CAAA,CAAA,EAAI,KAAK,CAAC,IAAI,CAAA,CAAE,CAAC,CAAC;AACtD,IAAA,MAAM,QAAQ,GAAG,CAAc,WAAA,EAAA,QAAQ,MAAM,CAAC;AAC9C,IAAA,MAAM,WAAW,GAAGC,eAAI,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;AAC9D,IAAA,MAAM,cAAc,GAAG,oBAAoB,CAAC,KAAK,CAAC,CAAC;AAEnD,IAAAC,aAAE,CAAC,aAAa,CAAC,WAAW,EAAE,cAAc,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC;AAC/E,IAAA,OAAO,WAAW,CAAC;AACvB,CAAC;AAED,SAAS,oBAAoB,CAAC,OAAY,EAAA;AACtC,IAAA,MAAM,QAAQ,GAAG,CAAA;;;;;cAKP,OAAO,CAAC,IAAI,IAAI,gBAAgB,CAAA;;;;;;;;;;;;;;;;;;KAkBzC,CAAC;AAEF,IAAA,OAAO,QAAQ,CAAC;AACpB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import*as fs from'fs';import*as path from'path';import {extractLoaderInfoFromFile}from'../rollup/modifyLibFiles/handleComponentOrDialog.js'
|
|
2
|
-
function getRootPath() {
|
|
1
|
+
import*as fs from'fs';import*as path from'path';import {extractLoaderInfoFromFile}from'../rollup/modifyLibFiles/handleComponentOrDialog.js';import {getHash}from'./json-wrappers.js';function getRootPath() {
|
|
3
2
|
return process.cwd();
|
|
4
3
|
}
|
|
5
4
|
function generateRoute(filePath) {
|
|
@@ -7,7 +6,7 @@ function generateRoute(filePath) {
|
|
|
7
6
|
return { loaderInfo };
|
|
8
7
|
}
|
|
9
8
|
function createDummyFile(route) {
|
|
10
|
-
const routeStr = `${route.id}/${route.path}
|
|
9
|
+
const routeStr = getHash(`${route.id}/${route.path}`);
|
|
11
10
|
const fileName = `DummyRoute-${routeStr}.tsx`;
|
|
12
11
|
const newFilePath = path.join(getRootPath(), 'app', fileName);
|
|
13
12
|
const dummyComponent = createDummyComponent(route);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-routes.js","sources":["../../src/vite-wrappers/custom-routes.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"custom-routes.js","sources":["../../src/vite-wrappers/custom-routes.ts"],"sourcesContent":[null],"names":[],"mappings":"qLAKA,SAAS,WAAW,GAAA;AAChB,IAAA,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC;AACzB,CAAC;AAEK,SAAU,aAAa,CAAC,QAAgB,EAAA;IAC1C,MAAM,EAAE,UAAU,EAAE,GAAG,yBAAyB,CAAC,QAAQ,CAAC,CAAC;IAC3D,OAAO,EAAE,UAAU,EAAE,CAAC;AAC1B,CAAC;AAEK,SAAU,eAAe,CAAC,KAAU,EAAA;AACtC,IAAA,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,KAAK,CAAC,EAAE,CAAA,CAAA,EAAI,KAAK,CAAC,IAAI,CAAA,CAAE,CAAC,CAAC;AACtD,IAAA,MAAM,QAAQ,GAAG,CAAc,WAAA,EAAA,QAAQ,MAAM,CAAC;AAC9C,IAAA,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;AAC9D,IAAA,MAAM,cAAc,GAAG,oBAAoB,CAAC,KAAK,CAAC,CAAC;AAEnD,IAAA,EAAE,CAAC,aAAa,CAAC,WAAW,EAAE,cAAc,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC;AAC/E,IAAA,OAAO,WAAW,CAAC;AACvB,CAAC;AAED,SAAS,oBAAoB,CAAC,OAAY,EAAA;AACtC,IAAA,MAAM,QAAQ,GAAG,CAAA;;;;;cAKP,OAAO,CAAC,IAAI,IAAI,gBAAgB,CAAA;;;;;;;;;;;;;;;;;;KAkBzC,CAAC;AAEF,IAAA,OAAO,QAAQ,CAAC;AACpB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@common-stack/rollup-vite-utils",
|
|
3
|
-
"version": "6.0.6-alpha.
|
|
3
|
+
"version": "6.0.6-alpha.56",
|
|
4
4
|
"description": "Client Module for react app",
|
|
5
5
|
"homepage": "https://github.com/cdmbase/fullstack-pro#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"typescript": {
|
|
60
60
|
"definition": "lib/index.d.ts"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "8615905937caf01fe3e74c87a8aa54ad04dacd26"
|
|
63
63
|
}
|