@featurevisor/core 0.52.0 → 0.52.1
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/.eslintcache +1 -1
- package/CHANGELOG.md +8 -0
- package/coverage/clover.xml +2 -2
- package/coverage/lcov-report/index.html +1 -1
- package/coverage/lcov-report/lib/builder/allocator.js.html +1 -1
- package/coverage/lcov-report/lib/builder/index.html +1 -1
- package/coverage/lcov-report/lib/builder/traffic.js.html +1 -1
- package/coverage/lcov-report/src/builder/allocator.ts.html +1 -1
- package/coverage/lcov-report/src/builder/index.html +1 -1
- package/coverage/lcov-report/src/builder/traffic.ts.html +1 -1
- package/lib/site/exportSite.d.ts +2 -0
- package/lib/site/exportSite.js +34 -0
- package/lib/site/exportSite.js.map +1 -0
- package/lib/site/generateHistory.d.ts +3 -0
- package/lib/site/generateHistory.js +76 -0
- package/lib/site/generateHistory.js.map +1 -0
- package/lib/site/generateSiteSearchIndex.d.ts +4 -0
- package/lib/site/generateSiteSearchIndex.js +141 -0
- package/lib/site/generateSiteSearchIndex.js.map +1 -0
- package/lib/site/getLastModifiedFromHistory.d.ts +2 -0
- package/lib/site/getLastModifiedFromHistory.js +19 -0
- package/lib/site/getLastModifiedFromHistory.js.map +1 -0
- package/lib/site/getOwnerAndRepoFromUrl.d.ts +4 -0
- package/lib/site/getOwnerAndRepoFromUrl.js +21 -0
- package/lib/site/getOwnerAndRepoFromUrl.js.map +1 -0
- package/lib/site/getRelativePaths.d.ts +6 -0
- package/lib/site/getRelativePaths.js +16 -0
- package/lib/site/getRelativePaths.js.map +1 -0
- package/lib/site/getRepoDetails.d.ts +8 -0
- package/lib/site/getRepoDetails.js +49 -0
- package/lib/site/getRepoDetails.js.map +1 -0
- package/lib/site/index.d.ts +2 -0
- package/lib/site/index.js +19 -0
- package/lib/site/index.js.map +1 -0
- package/lib/site/serveSite.d.ts +2 -0
- package/lib/site/serveSite.js +55 -0
- package/lib/site/serveSite.js.map +1 -0
- package/package.json +2 -2
- package/src/site/exportSite.ts +53 -0
- package/src/site/generateHistory.ts +101 -0
- package/src/site/generateSiteSearchIndex.ts +203 -0
- package/src/site/getLastModifiedFromHistory.ts +21 -0
- package/src/site/getOwnerAndRepoFromUrl.ts +17 -0
- package/src/site/getRelativePaths.ts +24 -0
- package/src/site/getRepoDetails.ts +62 -0
- package/src/site/index.ts +2 -0
- package/src/site/serveSite.ts +60 -0
- package/lib/site.d.ts +0 -16
- package/lib/site.js +0 -368
- package/lib/site.js.map +0 -1
- package/src/site.ts +0 -515
package/.eslintcache
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/allocator.spec.ts":"1","/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/allocator.ts":"2","/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/buildDatafile.ts":"3","/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/buildProject.ts":"4","/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/getFeatureRanges.ts":"5","/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/index.ts":"6","/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/traffic.spec.ts":"7","/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/traffic.ts":"8","/home/runner/work/featurevisor/featurevisor/packages/core/src/config.ts":"9","/home/runner/work/featurevisor/featurevisor/packages/core/src/datasource/datasource.ts":"10","/home/runner/work/featurevisor/featurevisor/packages/core/src/datasource/index.ts":"11","/home/runner/work/featurevisor/featurevisor/packages/core/src/datasource/parsers.ts":"12","/home/runner/work/featurevisor/featurevisor/packages/core/src/generate-code/index.ts":"13","/home/runner/work/featurevisor/featurevisor/packages/core/src/generate-code/typescript.ts":"14","/home/runner/work/featurevisor/featurevisor/packages/core/src/index.ts":"15","/home/runner/work/featurevisor/featurevisor/packages/core/src/init.ts":"16","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/attributeSchema.ts":"17","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/checkCircularDependency.ts":"18","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/conditionSchema.ts":"19","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/featureSchema.ts":"20","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/groupSchema.ts":"21","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/index.ts":"22","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/lintProject.ts":"23","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/printJoiError.ts":"24","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/segmentSchema.ts":"25","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/testSchema.ts":"26","/home/runner/work/featurevisor/featurevisor/packages/core/src/restore.ts":"27","/home/runner/work/featurevisor/featurevisor/packages/core/src/site.ts":"28","/home/runner/work/featurevisor/featurevisor/packages/core/src/tester.ts":"29","/home/runner/work/featurevisor/featurevisor/packages/core/src/utils.ts":"30"},{"size":3214,"mtime":1697119636636,"results":"31","hashOfConfig":"32"},{"size":1014,"mtime":1697119636636,"results":"33","hashOfConfig":"32"},{"size":8223,"mtime":1697119636636,"results":"34","hashOfConfig":"32"},{"size":2854,"mtime":1697119636640,"results":"35","hashOfConfig":"32"},{"size":1728,"mtime":1697119636640,"results":"36","hashOfConfig":"32"},{"size":65,"mtime":1697119636640,"results":"37","hashOfConfig":"32"},{"size":12889,"mtime":1697119636640,"results":"38","hashOfConfig":"32"},{"size":4799,"mtime":1697119636640,"results":"39","hashOfConfig":"32"},{"size":2966,"mtime":1697119636640,"results":"40","hashOfConfig":"32"},{"size":5523,"mtime":1697119636640,"results":"41","hashOfConfig":"32"},{"size":57,"mtime":1697119636640,"results":"42","hashOfConfig":"32"},{"size":646,"mtime":1697119636640,"results":"43","hashOfConfig":"32"},{"size":1619,"mtime":1697119636640,"results":"44","hashOfConfig":"32"},{"size":5875,"mtime":1697119636640,"results":"45","hashOfConfig":"32"},{"size":213,"mtime":1697119636640,"results":"46","hashOfConfig":"32"},{"size":1308,"mtime":1697119636640,"results":"47","hashOfConfig":"32"},{"size":341,"mtime":1697119636640,"results":"48","hashOfConfig":"32"},{"size":1106,"mtime":1697119636640,"results":"49","hashOfConfig":"32"},{"size":3003,"mtime":1697119636640,"results":"50","hashOfConfig":"32"},{"size":5782,"mtime":1697119636640,"results":"51","hashOfConfig":"32"},{"size":2092,"mtime":1697119636640,"results":"52","hashOfConfig":"32"},{"size":31,"mtime":1697119636640,"results":"53","hashOfConfig":"32"},{"size":4594,"mtime":1697119636640,"results":"54","hashOfConfig":"32"},{"size":323,"mtime":1697119636640,"results":"55","hashOfConfig":"32"},{"size":368,"mtime":1697119636640,"results":"56","hashOfConfig":"32"},{"size":1248,"mtime":1697119636640,"results":"57","hashOfConfig":"32"},{"size":604,"mtime":1697119636640,"results":"58","hashOfConfig":"32"},{"size":14669,"mtime":1697119636640,"results":"59","hashOfConfig":"32"},{"size":6412,"mtime":1697119636640,"results":"60","hashOfConfig":"32"},{"size":2108,"mtime":1697119636640,"results":"61","hashOfConfig":"32"},{"filePath":"62","messages":"63","suppressedMessages":"64","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"u5hm5o",{"filePath":"65","messages":"66","suppressedMessages":"67","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"68","messages":"69","suppressedMessages":"70","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"71","messages":"72","suppressedMessages":"73","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"74","messages":"75","suppressedMessages":"76","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"77","messages":"78","suppressedMessages":"79","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"80","messages":"81","suppressedMessages":"82","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"83","messages":"84","suppressedMessages":"85","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"86","messages":"87","suppressedMessages":"88","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"89","messages":"90","suppressedMessages":"91","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"92","messages":"93","suppressedMessages":"94","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"95","messages":"96","suppressedMessages":"97","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"98","messages":"99","suppressedMessages":"100","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"101","messages":"102","suppressedMessages":"103","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"104","messages":"105","suppressedMessages":"106","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"107","messages":"108","suppressedMessages":"109","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"110","messages":"111","suppressedMessages":"112","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"113","messages":"114","suppressedMessages":"115","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"116","messages":"117","suppressedMessages":"118","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"119","messages":"120","suppressedMessages":"121","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"122","messages":"123","suppressedMessages":"124","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"125","messages":"126","suppressedMessages":"127","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"128","messages":"129","suppressedMessages":"130","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"131","messages":"132","suppressedMessages":"133","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"134","messages":"135","suppressedMessages":"136","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"137","messages":"138","suppressedMessages":"139","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"140","messages":"141","suppressedMessages":"142","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"143","messages":"144","suppressedMessages":"145","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"146","messages":"147","suppressedMessages":"148","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"149","messages":"150","suppressedMessages":"151","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/allocator.spec.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/allocator.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/buildDatafile.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/buildProject.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/getFeatureRanges.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/traffic.spec.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/traffic.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/config.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/datasource/datasource.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/datasource/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/datasource/parsers.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/generate-code/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/generate-code/typescript.ts",[],["152"],"/home/runner/work/featurevisor/featurevisor/packages/core/src/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/init.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/attributeSchema.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/checkCircularDependency.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/conditionSchema.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/featureSchema.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/groupSchema.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/lintProject.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/printJoiError.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/segmentSchema.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/testSchema.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/restore.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/tester.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/utils.ts",[],[],{"ruleId":"153","severity":2,"message":"154","line":41,"column":10,"nodeType":"155","messageId":"156","endLine":41,"endColumn":38,"suppressions":"157"},"@typescript-eslint/no-unused-vars","'getFeaturevisorTypeFromValue' is defined but never used.","Identifier","unusedVar",["158"],{"kind":"159","justification":"160"},"directive",""]
|
|
1
|
+
[{"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/allocator.spec.ts":"1","/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/allocator.ts":"2","/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/buildDatafile.ts":"3","/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/buildProject.ts":"4","/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/getFeatureRanges.ts":"5","/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/index.ts":"6","/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/traffic.spec.ts":"7","/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/traffic.ts":"8","/home/runner/work/featurevisor/featurevisor/packages/core/src/config.ts":"9","/home/runner/work/featurevisor/featurevisor/packages/core/src/datasource/datasource.ts":"10","/home/runner/work/featurevisor/featurevisor/packages/core/src/datasource/index.ts":"11","/home/runner/work/featurevisor/featurevisor/packages/core/src/datasource/parsers.ts":"12","/home/runner/work/featurevisor/featurevisor/packages/core/src/generate-code/index.ts":"13","/home/runner/work/featurevisor/featurevisor/packages/core/src/generate-code/typescript.ts":"14","/home/runner/work/featurevisor/featurevisor/packages/core/src/index.ts":"15","/home/runner/work/featurevisor/featurevisor/packages/core/src/init.ts":"16","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/attributeSchema.ts":"17","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/checkCircularDependency.ts":"18","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/conditionSchema.ts":"19","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/featureSchema.ts":"20","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/groupSchema.ts":"21","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/index.ts":"22","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/lintProject.ts":"23","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/printJoiError.ts":"24","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/segmentSchema.ts":"25","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/testSchema.ts":"26","/home/runner/work/featurevisor/featurevisor/packages/core/src/restore.ts":"27","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/exportSite.ts":"28","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/generateHistory.ts":"29","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/generateSiteSearchIndex.ts":"30","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/getLastModifiedFromHistory.ts":"31","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/getOwnerAndRepoFromUrl.ts":"32","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/getRelativePaths.ts":"33","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/getRepoDetails.ts":"34","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/index.ts":"35","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/serveSite.ts":"36","/home/runner/work/featurevisor/featurevisor/packages/core/src/tester.ts":"37","/home/runner/work/featurevisor/featurevisor/packages/core/src/utils.ts":"38"},{"size":3214,"mtime":1697128799180,"results":"39","hashOfConfig":"40"},{"size":1014,"mtime":1697128799180,"results":"41","hashOfConfig":"40"},{"size":8223,"mtime":1697128799180,"results":"42","hashOfConfig":"40"},{"size":2854,"mtime":1697128799180,"results":"43","hashOfConfig":"40"},{"size":1728,"mtime":1697128799180,"results":"44","hashOfConfig":"40"},{"size":65,"mtime":1697128799180,"results":"45","hashOfConfig":"40"},{"size":12889,"mtime":1697128799180,"results":"46","hashOfConfig":"40"},{"size":4799,"mtime":1697128799180,"results":"47","hashOfConfig":"40"},{"size":2966,"mtime":1697128799180,"results":"48","hashOfConfig":"40"},{"size":5523,"mtime":1697128799180,"results":"49","hashOfConfig":"40"},{"size":57,"mtime":1697128799180,"results":"50","hashOfConfig":"40"},{"size":646,"mtime":1697128799180,"results":"51","hashOfConfig":"40"},{"size":1619,"mtime":1697128799180,"results":"52","hashOfConfig":"40"},{"size":5875,"mtime":1697128799180,"results":"53","hashOfConfig":"40"},{"size":213,"mtime":1697128799180,"results":"54","hashOfConfig":"40"},{"size":1308,"mtime":1697128799180,"results":"55","hashOfConfig":"40"},{"size":341,"mtime":1697128799180,"results":"56","hashOfConfig":"40"},{"size":1106,"mtime":1697128799180,"results":"57","hashOfConfig":"40"},{"size":3003,"mtime":1697128799180,"results":"58","hashOfConfig":"40"},{"size":5782,"mtime":1697128799180,"results":"59","hashOfConfig":"40"},{"size":2092,"mtime":1697128799180,"results":"60","hashOfConfig":"40"},{"size":31,"mtime":1697128799180,"results":"61","hashOfConfig":"40"},{"size":4594,"mtime":1697128799180,"results":"62","hashOfConfig":"40"},{"size":323,"mtime":1697128799180,"results":"63","hashOfConfig":"40"},{"size":368,"mtime":1697128799180,"results":"64","hashOfConfig":"40"},{"size":1248,"mtime":1697128799180,"results":"65","hashOfConfig":"40"},{"size":604,"mtime":1697128799180,"results":"66","hashOfConfig":"40"},{"size":1740,"mtime":1697128799180,"results":"67","hashOfConfig":"40"},{"size":2808,"mtime":1697128799184,"results":"68","hashOfConfig":"40"},{"size":6199,"mtime":1697128799184,"results":"69","hashOfConfig":"40"},{"size":516,"mtime":1697128799184,"results":"70","hashOfConfig":"40"},{"size":496,"mtime":1697128799184,"results":"71","hashOfConfig":"40"},{"size":607,"mtime":1697128799184,"results":"72","hashOfConfig":"40"},{"size":1560,"mtime":1697128799184,"results":"73","hashOfConfig":"40"},{"size":59,"mtime":1697128799184,"results":"74","hashOfConfig":"40"},{"size":1697,"mtime":1697128799184,"results":"75","hashOfConfig":"40"},{"size":6412,"mtime":1697128799184,"results":"76","hashOfConfig":"40"},{"size":2108,"mtime":1697128799184,"results":"77","hashOfConfig":"40"},{"filePath":"78","messages":"79","suppressedMessages":"80","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"u5hm5o",{"filePath":"81","messages":"82","suppressedMessages":"83","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"84","messages":"85","suppressedMessages":"86","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"87","messages":"88","suppressedMessages":"89","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"90","messages":"91","suppressedMessages":"92","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"93","messages":"94","suppressedMessages":"95","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"96","messages":"97","suppressedMessages":"98","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"99","messages":"100","suppressedMessages":"101","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"102","messages":"103","suppressedMessages":"104","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"105","messages":"106","suppressedMessages":"107","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"108","messages":"109","suppressedMessages":"110","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"111","messages":"112","suppressedMessages":"113","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"114","messages":"115","suppressedMessages":"116","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"117","messages":"118","suppressedMessages":"119","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"120","messages":"121","suppressedMessages":"122","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"123","messages":"124","suppressedMessages":"125","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"126","messages":"127","suppressedMessages":"128","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"129","messages":"130","suppressedMessages":"131","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"132","messages":"133","suppressedMessages":"134","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"135","messages":"136","suppressedMessages":"137","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"138","messages":"139","suppressedMessages":"140","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"141","messages":"142","suppressedMessages":"143","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"144","messages":"145","suppressedMessages":"146","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"147","messages":"148","suppressedMessages":"149","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"150","messages":"151","suppressedMessages":"152","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"153","messages":"154","suppressedMessages":"155","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"156","messages":"157","suppressedMessages":"158","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"159","messages":"160","suppressedMessages":"161","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"162","messages":"163","suppressedMessages":"164","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"165","messages":"166","suppressedMessages":"167","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"168","messages":"169","suppressedMessages":"170","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"171","messages":"172","suppressedMessages":"173","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"174","messages":"175","suppressedMessages":"176","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"177","messages":"178","suppressedMessages":"179","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"180","messages":"181","suppressedMessages":"182","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"183","messages":"184","suppressedMessages":"185","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"186","messages":"187","suppressedMessages":"188","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"189","messages":"190","suppressedMessages":"191","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/allocator.spec.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/allocator.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/buildDatafile.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/buildProject.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/getFeatureRanges.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/traffic.spec.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/traffic.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/config.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/datasource/datasource.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/datasource/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/datasource/parsers.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/generate-code/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/generate-code/typescript.ts",[],["192"],"/home/runner/work/featurevisor/featurevisor/packages/core/src/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/init.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/attributeSchema.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/checkCircularDependency.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/conditionSchema.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/featureSchema.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/groupSchema.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/lintProject.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/printJoiError.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/segmentSchema.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/testSchema.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/restore.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/exportSite.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/generateHistory.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/generateSiteSearchIndex.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/getLastModifiedFromHistory.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/getOwnerAndRepoFromUrl.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/getRelativePaths.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/getRepoDetails.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/serveSite.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/tester.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/utils.ts",[],[],{"ruleId":"193","severity":2,"message":"194","line":41,"column":10,"nodeType":"195","messageId":"196","endLine":41,"endColumn":38,"suppressions":"197"},"@typescript-eslint/no-unused-vars","'getFeaturevisorTypeFromValue' is defined but never used.","Identifier","unusedVar",["198"],{"kind":"199","justification":"200"},"directive",""]
|
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.52.1](https://github.com/featurevisor/featurevisor/compare/v0.52.0...v0.52.1) (2023-10-12)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @featurevisor/core
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [0.52.0](https://github.com/featurevisor/featurevisor/compare/v0.51.2...v0.52.0) (2023-10-12)
|
|
7
15
|
|
|
8
16
|
|
package/coverage/clover.xml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<coverage generated="
|
|
3
|
-
<project timestamp="
|
|
2
|
+
<coverage generated="1697128989236" clover="3.2.0">
|
|
3
|
+
<project timestamp="1697128989236" name="All files">
|
|
4
4
|
<metrics statements="173" coveredstatements="165" conditionals="86" coveredconditionals="70" methods="28" coveredmethods="28" elements="287" coveredelements="263" complexity="0" loc="173" ncloc="173" packages="2" files="4" classes="4"/>
|
|
5
5
|
<package name="lib.builder">
|
|
6
6
|
<metrics statements="90" coveredstatements="86" conditionals="48" coveredconditionals="39" methods="14" coveredmethods="14"/>
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
117
117
|
Code coverage generated by
|
|
118
118
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
119
|
-
at 2023-10-
|
|
119
|
+
at 2023-10-12T16:43:09.210Z
|
|
120
120
|
</div>
|
|
121
121
|
<script src="prettify.js"></script>
|
|
122
122
|
<script>
|
|
@@ -175,7 +175,7 @@ exports.getUpdatedAvailableRangesAfterFilling = getUpdatedAvailableRangesAfterFi
|
|
|
175
175
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
176
176
|
Code coverage generated by
|
|
177
177
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
178
|
-
at 2023-10-
|
|
178
|
+
at 2023-10-12T16:43:09.210Z
|
|
179
179
|
</div>
|
|
180
180
|
<script src="../../prettify.js"></script>
|
|
181
181
|
<script>
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
117
117
|
Code coverage generated by
|
|
118
118
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
119
|
-
at 2023-10-
|
|
119
|
+
at 2023-10-12T16:43:09.210Z
|
|
120
120
|
</div>
|
|
121
121
|
<script src="../../prettify.js"></script>
|
|
122
122
|
<script>
|
|
@@ -442,7 +442,7 @@ exports.getTraffic = getTraffic;
|
|
|
442
442
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
443
443
|
Code coverage generated by
|
|
444
444
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
445
|
-
at 2023-10-
|
|
445
|
+
at 2023-10-12T16:43:09.210Z
|
|
446
446
|
</div>
|
|
447
447
|
<script src="../../prettify.js"></script>
|
|
448
448
|
<script>
|
|
@@ -193,7 +193,7 @@ export function getUpdatedAvailableRangesAfterFilling(
|
|
|
193
193
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
194
194
|
Code coverage generated by
|
|
195
195
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
196
|
-
at 2023-10-
|
|
196
|
+
at 2023-10-12T16:43:09.210Z
|
|
197
197
|
</div>
|
|
198
198
|
<script src="../../prettify.js"></script>
|
|
199
199
|
<script>
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
117
117
|
Code coverage generated by
|
|
118
118
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
119
|
-
at 2023-10-
|
|
119
|
+
at 2023-10-12T16:43:09.210Z
|
|
120
120
|
</div>
|
|
121
121
|
<script src="../../prettify.js"></script>
|
|
122
122
|
<script>
|
|
@@ -553,7 +553,7 @@ export function getTraffic(
|
|
|
553
553
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
554
554
|
Code coverage generated by
|
|
555
555
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
556
|
-
at 2023-10-
|
|
556
|
+
at 2023-10-12T16:43:09.210Z
|
|
557
557
|
</div>
|
|
558
558
|
<script src="../../prettify.js"></script>
|
|
559
559
|
<script>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.exportSite = void 0;
|
|
4
|
+
var fs = require("fs");
|
|
5
|
+
var path = require("path");
|
|
6
|
+
var mkdirp = require("mkdirp");
|
|
7
|
+
var generateHistory_1 = require("./generateHistory");
|
|
8
|
+
var getRepoDetails_1 = require("./getRepoDetails");
|
|
9
|
+
var generateSiteSearchIndex_1 = require("./generateSiteSearchIndex");
|
|
10
|
+
function exportSite(rootDirectoryPath, projectConfig) {
|
|
11
|
+
var hasError = false;
|
|
12
|
+
mkdirp.sync(projectConfig.siteExportDirectoryPath);
|
|
13
|
+
var sitePackagePath = path.dirname(require.resolve("@featurevisor/site/package.json"));
|
|
14
|
+
// copy site dist
|
|
15
|
+
var siteDistPath = path.join(sitePackagePath, "dist");
|
|
16
|
+
fs.cpSync(siteDistPath, projectConfig.siteExportDirectoryPath, { recursive: true });
|
|
17
|
+
var sitePublicPath = path.join(sitePackagePath, "public");
|
|
18
|
+
fs.cpSync(sitePublicPath, projectConfig.siteExportDirectoryPath, { recursive: true });
|
|
19
|
+
console.log("Site dist copied to:", projectConfig.siteExportDirectoryPath);
|
|
20
|
+
// generate history
|
|
21
|
+
var fullHistory = (0, generateHistory_1.generateHistory)(rootDirectoryPath, projectConfig);
|
|
22
|
+
// site search index
|
|
23
|
+
var repoDetails = (0, getRepoDetails_1.getRepoDetails)();
|
|
24
|
+
var searchIndex = (0, generateSiteSearchIndex_1.generateSiteSearchIndex)(rootDirectoryPath, projectConfig, fullHistory, repoDetails);
|
|
25
|
+
var searchIndexFilePath = path.join(projectConfig.siteExportDirectoryPath, "search-index.json");
|
|
26
|
+
fs.writeFileSync(searchIndexFilePath, JSON.stringify(searchIndex));
|
|
27
|
+
console.log("Site search index written at: ".concat(searchIndexFilePath));
|
|
28
|
+
// copy datafiles
|
|
29
|
+
fs.cpSync(projectConfig.outputDirectoryPath, path.join(projectConfig.siteExportDirectoryPath, "datafiles"), { recursive: true });
|
|
30
|
+
// @TODO: replace placeoholders in index.html
|
|
31
|
+
return hasError;
|
|
32
|
+
}
|
|
33
|
+
exports.exportSite = exportSite;
|
|
34
|
+
//# sourceMappingURL=exportSite.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exportSite.js","sourceRoot":"","sources":["../../src/site/exportSite.ts"],"names":[],"mappings":";;;AAAA,uBAAyB;AACzB,2BAA6B;AAE7B,+BAAiC;AAIjC,qDAAoD;AACpD,mDAAkD;AAClD,qEAAoE;AAEpE,SAAgB,UAAU,CAAC,iBAAyB,EAAE,aAA4B;IAChF,IAAM,QAAQ,GAAG,KAAK,CAAC;IAEvB,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,uBAAuB,CAAC,CAAC;IAEnD,IAAM,eAAe,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,iCAAiC,CAAC,CAAC,CAAC;IAEzF,iBAAiB;IACjB,IAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC;IACxD,EAAE,CAAC,MAAM,CAAC,YAAY,EAAE,aAAa,CAAC,uBAAuB,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAEpF,IAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,QAAQ,CAAC,CAAC;IAC5D,EAAE,CAAC,MAAM,CAAC,cAAc,EAAE,aAAa,CAAC,uBAAuB,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAEtF,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,aAAa,CAAC,uBAAuB,CAAC,CAAC;IAE3E,mBAAmB;IACnB,IAAM,WAAW,GAAG,IAAA,iCAAe,EAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;IAEtE,oBAAoB;IACpB,IAAM,WAAW,GAAG,IAAA,+BAAc,GAAE,CAAC;IACrC,IAAM,WAAW,GAAG,IAAA,iDAAuB,EACzC,iBAAiB,EACjB,aAAa,EACb,WAAW,EACX,WAAW,CACZ,CAAC;IACF,IAAM,mBAAmB,GAAG,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,uBAAuB,EAAE,mBAAmB,CAAC,CAAC;IAClG,EAAE,CAAC,aAAa,CAAC,mBAAmB,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC;IACnE,OAAO,CAAC,GAAG,CAAC,wCAAiC,mBAAmB,CAAE,CAAC,CAAC;IAEpE,iBAAiB;IACjB,EAAE,CAAC,MAAM,CACP,aAAa,CAAC,mBAAmB,EACjC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,uBAAuB,EAAE,WAAW,CAAC,EAC7D,EAAE,SAAS,EAAE,IAAI,EAAE,CACpB,CAAC;IAEF,6CAA6C;IAE7C,OAAO,QAAQ,CAAC;AAClB,CAAC;AAzCD,gCAyCC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.generateHistory = void 0;
|
|
4
|
+
var path = require("path");
|
|
5
|
+
var fs = require("fs");
|
|
6
|
+
var child_process_1 = require("child_process");
|
|
7
|
+
var getRelativePaths_1 = require("./getRelativePaths");
|
|
8
|
+
function generateHistory(rootDirectoryPath, projectConfig) {
|
|
9
|
+
try {
|
|
10
|
+
// raw history
|
|
11
|
+
var rawHistoryFilePath = path.join(projectConfig.siteExportDirectoryPath, "history-raw.txt");
|
|
12
|
+
var _a = (0, getRelativePaths_1.getRelativePaths)(rootDirectoryPath, projectConfig), relativeFeaturesPath = _a.relativeFeaturesPath, relativeSegmentsPath_1 = _a.relativeSegmentsPath, relativeAttributesPath_1 = _a.relativeAttributesPath;
|
|
13
|
+
var separator_1 = "|";
|
|
14
|
+
var cmd = "git log --name-only --pretty=format:\"%h".concat(separator_1, "%an").concat(separator_1, "%aI\" --no-merges --relative -- ").concat(relativeFeaturesPath, " ").concat(relativeSegmentsPath_1, " ").concat(relativeAttributesPath_1, " > ").concat(rawHistoryFilePath);
|
|
15
|
+
(0, child_process_1.execSync)(cmd);
|
|
16
|
+
console.log("History (raw) generated at: ".concat(rawHistoryFilePath));
|
|
17
|
+
// structured history
|
|
18
|
+
var rawHistory = fs.readFileSync(rawHistoryFilePath, "utf8");
|
|
19
|
+
var fullHistory_1 = [];
|
|
20
|
+
var entry_1 = {
|
|
21
|
+
commit: "",
|
|
22
|
+
author: "",
|
|
23
|
+
timestamp: "",
|
|
24
|
+
entities: [],
|
|
25
|
+
};
|
|
26
|
+
rawHistory.split("\n").forEach(function (line, index) {
|
|
27
|
+
if (index === 0 && line.length === 0) {
|
|
28
|
+
// no history found
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
if (index > 0 && line.length === 0) {
|
|
32
|
+
// commit finished
|
|
33
|
+
fullHistory_1.push(entry_1);
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
if (line.indexOf(separator_1) > -1) {
|
|
37
|
+
// commit line
|
|
38
|
+
var parts = line.split("|");
|
|
39
|
+
entry_1 = {
|
|
40
|
+
commit: parts[0],
|
|
41
|
+
author: parts[1],
|
|
42
|
+
timestamp: parts[2],
|
|
43
|
+
entities: [],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
// file line
|
|
48
|
+
var lineSplit = line.split(path.sep);
|
|
49
|
+
var fileName = lineSplit.pop();
|
|
50
|
+
var relativeDir = lineSplit.join(path.sep);
|
|
51
|
+
var key = fileName.replace("." + projectConfig.parser, "");
|
|
52
|
+
var type = "feature";
|
|
53
|
+
if (relativeDir === relativeSegmentsPath_1) {
|
|
54
|
+
type = "segment";
|
|
55
|
+
}
|
|
56
|
+
else if (relativeDir === relativeAttributesPath_1) {
|
|
57
|
+
type = "attribute";
|
|
58
|
+
}
|
|
59
|
+
entry_1.entities.push({
|
|
60
|
+
type: type,
|
|
61
|
+
key: key,
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
var fullHistoryFilePath = path.join(projectConfig.siteExportDirectoryPath, "history-full.json");
|
|
66
|
+
fs.writeFileSync(fullHistoryFilePath, JSON.stringify(fullHistory_1));
|
|
67
|
+
console.log("History (full) generated at: ".concat(fullHistoryFilePath));
|
|
68
|
+
return fullHistory_1;
|
|
69
|
+
}
|
|
70
|
+
catch (error) {
|
|
71
|
+
console.error("Error when generating history from git: ".concat(error.status, "\n").concat(error.stderr.toString()));
|
|
72
|
+
return [];
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
exports.generateHistory = generateHistory;
|
|
76
|
+
//# sourceMappingURL=generateHistory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generateHistory.js","sourceRoot":"","sources":["../../src/site/generateHistory.ts"],"names":[],"mappings":";;;AAAA,2BAA6B;AAC7B,uBAAyB;AACzB,+CAAyC;AAMzC,uDAAsD;AAEtD,SAAgB,eAAe,CAAC,iBAAiB,EAAE,aAA4B;IAC7E,IAAI;QACF,cAAc;QACd,IAAM,kBAAkB,GAAG,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,uBAAuB,EAAE,iBAAiB,CAAC,CAAC;QAEzF,IAAA,KAAyE,IAAA,mCAAgB,EAC7F,iBAAiB,EACjB,aAAa,CACd,EAHO,oBAAoB,0BAAA,EAAE,sBAAoB,0BAAA,EAAE,wBAAsB,4BAGzE,CAAC;QAEF,IAAM,WAAS,GAAG,GAAG,CAAC;QAEtB,IAAM,GAAG,GAAG,kDAA0C,WAAS,gBAAM,WAAS,6CAAkC,oBAAoB,cAAI,sBAAoB,cAAI,wBAAsB,gBAAM,kBAAkB,CAAE,CAAC;QACjN,IAAA,wBAAQ,EAAC,GAAG,CAAC,CAAC;QAEd,OAAO,CAAC,GAAG,CAAC,sCAA+B,kBAAkB,CAAE,CAAC,CAAC;QAEjE,q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GAAG,GAAG,aAAa,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;gBAE7D,IAAI,IAAI,GAAG,SAAgD,CAAC;gBAE5D,IAAI,WAAW,KAAK,sBAAoB,EAAE;oBACxC,IAAI,GAAG,SAAS,CAAC;iBAClB;qBAAM,IAAI,WAAW,KAAK,wBAAsB,EAAE;oBACjD,IAAI,GAAG,WAAW,CAAC;iBACpB;gBAED,OAAK,CAAC,QAAQ,CAAC,IAAI,CAAC;oBAClB,IAAI,MAAA;oBACJ,GAAG,KAAA;iBACJ,CAAC,CAAC;aACJ;QACH,CAAC,CAAC,CAAC;QAEH,IAAM,mBAAmB,GAAG,IAAI,CAAC,IAAI,CACnC,aAAa,CAAC,uBAAuB,EACrC,mBAAmB,CACpB,CAAC;QACF,EAAE,CAAC,aAAa,CAAC,mBAAmB,EAAE,IAAI,CAAC,SAAS,CAAC,aAAW,CAAC,CAAC,CAAC;QACnE,OAAO,CAAC,GAAG,CAAC,uCAAgC,mBAAmB,CAAE,CAAC,CAAC;QAEnE,OAAO,aAAW,CAAC;KACpB;IAAC,OAAO,KAAK,EAAE;QACd,OAAO,CAAC,KAAK,CACX,kDAA2C,KAAK,CAAC,MAAM,eAAK,KAAK,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAE,CACtF,CAAC;QAEF,OAAO,EAAE,CAAC;KACX;AACH,CAAC;AA1FD,0CA0FC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { HistoryEntry, SearchIndex } from "@featurevisor/types";
|
|
2
|
+
import { ProjectConfig } from "../config";
|
|
3
|
+
import { RepoDetails } from "./getRepoDetails";
|
|
4
|
+
export declare function generateSiteSearchIndex(rootDirectoryPath: string, projectConfig: ProjectConfig, fullHistory: HistoryEntry[], repoDetails: RepoDetails | undefined): SearchIndex;
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.generateSiteSearchIndex = void 0;
|
|
15
|
+
var datasource_1 = require("../datasource");
|
|
16
|
+
var utils_1 = require("../utils");
|
|
17
|
+
var getRelativePaths_1 = require("./getRelativePaths");
|
|
18
|
+
var getLastModifiedFromHistory_1 = require("./getLastModifiedFromHistory");
|
|
19
|
+
function generateSiteSearchIndex(rootDirectoryPath, projectConfig, fullHistory, repoDetails) {
|
|
20
|
+
var result = {
|
|
21
|
+
links: undefined,
|
|
22
|
+
entities: {
|
|
23
|
+
attributes: [],
|
|
24
|
+
segments: [],
|
|
25
|
+
features: [],
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
var datasource = new datasource_1.Datasource(projectConfig);
|
|
29
|
+
/**
|
|
30
|
+
* Links
|
|
31
|
+
*/
|
|
32
|
+
if (repoDetails) {
|
|
33
|
+
var _a = (0, getRelativePaths_1.getRelativePaths)(rootDirectoryPath, projectConfig), relativeAttributesPath = _a.relativeAttributesPath, relativeSegmentsPath = _a.relativeSegmentsPath, relativeFeaturesPath = _a.relativeFeaturesPath;
|
|
34
|
+
var prefix = "";
|
|
35
|
+
if (repoDetails.topLevelPath !== rootDirectoryPath) {
|
|
36
|
+
prefix = rootDirectoryPath.replace(repoDetails.topLevelPath + "/", "") + "/";
|
|
37
|
+
}
|
|
38
|
+
result.links = {
|
|
39
|
+
attribute: repoDetails.blobUrl.replace("{{blobPath}}", prefix + relativeAttributesPath + "/{{key}}." + datasource.getExtension()),
|
|
40
|
+
segment: repoDetails.blobUrl.replace("{{blobPath}}", prefix + relativeSegmentsPath + "/{{key}}." + datasource.getExtension()),
|
|
41
|
+
feature: repoDetails.blobUrl.replace("{{blobPath}}", prefix + relativeFeaturesPath + "/{{key}}." + datasource.getExtension()),
|
|
42
|
+
commit: repoDetails.commitUrl,
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Entities
|
|
47
|
+
*/
|
|
48
|
+
// usage
|
|
49
|
+
var attributesUsedInFeatures = {};
|
|
50
|
+
var attributesUsedInSegments = {};
|
|
51
|
+
var segmentsUsedInFeatures = {};
|
|
52
|
+
// features
|
|
53
|
+
var featureFiles = datasource.listFeatures();
|
|
54
|
+
featureFiles.forEach(function (entityName) {
|
|
55
|
+
var parsed = datasource.readFeature(entityName);
|
|
56
|
+
if (Array.isArray(parsed.variations)) {
|
|
57
|
+
parsed.variations.forEach(function (variation) {
|
|
58
|
+
if (!variation.variables) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
variation.variables.forEach(function (v) {
|
|
62
|
+
if (v.overrides) {
|
|
63
|
+
v.overrides.forEach(function (o) {
|
|
64
|
+
if (o.conditions) {
|
|
65
|
+
(0, utils_1.extractAttributeKeysFromConditions)(o.conditions).forEach(function (attributeKey) {
|
|
66
|
+
if (!attributesUsedInFeatures[attributeKey]) {
|
|
67
|
+
attributesUsedInFeatures[attributeKey] = new Set();
|
|
68
|
+
}
|
|
69
|
+
attributesUsedInFeatures[attributeKey].add(entityName);
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
if (o.segments && o.segments !== "*") {
|
|
73
|
+
(0, utils_1.extractSegmentKeysFromGroupSegments)(o.segments).forEach(function (segmentKey) {
|
|
74
|
+
if (!segmentsUsedInFeatures[segmentKey]) {
|
|
75
|
+
segmentsUsedInFeatures[segmentKey] = new Set();
|
|
76
|
+
}
|
|
77
|
+
segmentsUsedInFeatures[segmentKey].add(entityName);
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
Object.keys(parsed.environments).forEach(function (environmentKey) {
|
|
86
|
+
var env = parsed.environments[environmentKey];
|
|
87
|
+
env.rules.forEach(function (rule) {
|
|
88
|
+
if (rule.segments && rule.segments !== "*") {
|
|
89
|
+
(0, utils_1.extractSegmentKeysFromGroupSegments)(rule.segments).forEach(function (segmentKey) {
|
|
90
|
+
if (!segmentsUsedInFeatures[segmentKey]) {
|
|
91
|
+
segmentsUsedInFeatures[segmentKey] = new Set();
|
|
92
|
+
}
|
|
93
|
+
segmentsUsedInFeatures[segmentKey].add(entityName);
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
if (env.force) {
|
|
98
|
+
env.force.forEach(function (force) {
|
|
99
|
+
if (force.segments && force.segments !== "*") {
|
|
100
|
+
(0, utils_1.extractSegmentKeysFromGroupSegments)(force.segments).forEach(function (segmentKey) {
|
|
101
|
+
if (!segmentsUsedInFeatures[segmentKey]) {
|
|
102
|
+
segmentsUsedInFeatures[segmentKey] = new Set();
|
|
103
|
+
}
|
|
104
|
+
segmentsUsedInFeatures[segmentKey].add(entityName);
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
if (force.conditions) {
|
|
108
|
+
(0, utils_1.extractAttributeKeysFromConditions)(force.conditions).forEach(function (attributeKey) {
|
|
109
|
+
if (!attributesUsedInFeatures[attributeKey]) {
|
|
110
|
+
attributesUsedInFeatures[attributeKey] = new Set();
|
|
111
|
+
}
|
|
112
|
+
attributesUsedInFeatures[attributeKey].add(entityName);
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
result.entities.features.push(__assign(__assign({}, parsed), { key: entityName, lastModified: (0, getLastModifiedFromHistory_1.getLastModifiedFromHistory)(fullHistory, "feature", entityName) }));
|
|
119
|
+
});
|
|
120
|
+
// segments
|
|
121
|
+
var segmentFiles = datasource.listSegments();
|
|
122
|
+
segmentFiles.forEach(function (entityName) {
|
|
123
|
+
var parsed = datasource.readSegment(entityName);
|
|
124
|
+
(0, utils_1.extractAttributeKeysFromConditions)(parsed.conditions).forEach(function (attributeKey) {
|
|
125
|
+
if (!attributesUsedInSegments[attributeKey]) {
|
|
126
|
+
attributesUsedInSegments[attributeKey] = new Set();
|
|
127
|
+
}
|
|
128
|
+
attributesUsedInSegments[attributeKey].add(entityName);
|
|
129
|
+
});
|
|
130
|
+
result.entities.segments.push(__assign(__assign({}, parsed), { key: entityName, lastModified: (0, getLastModifiedFromHistory_1.getLastModifiedFromHistory)(fullHistory, "segment", entityName), usedInFeatures: Array.from(segmentsUsedInFeatures[entityName] || []) }));
|
|
131
|
+
});
|
|
132
|
+
// attributes
|
|
133
|
+
var attributeFiles = datasource.listAttributes();
|
|
134
|
+
attributeFiles.forEach(function (entityName) {
|
|
135
|
+
var parsed = datasource.readAttribute(entityName);
|
|
136
|
+
result.entities.attributes.push(__assign(__assign({}, parsed), { key: entityName, lastModified: (0, getLastModifiedFromHistory_1.getLastModifiedFromHistory)(fullHistory, "attribute", entityName), usedInFeatures: Array.from(attributesUsedInFeatures[entityName] || []), usedInSegments: Array.from(attributesUsedInSegments[entityName] || []) }));
|
|
137
|
+
});
|
|
138
|
+
return result;
|
|
139
|
+
}
|
|
140
|
+
exports.generateSiteSearchIndex = generateSiteSearchIndex;
|
|
141
|
+
//# sourceMappingURL=generateSiteSearchIndex.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generateSiteSearchIndex.js","sourceRoot":"","sources":["../../src/site/generateSiteSearchIndex.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AASA,4CAA2C;AAE3C,kCAAmG;AAEnG,uDAAsD;AACtD,2EAA0E;AAG1E,SAAgB,uBAAuB,CACrC,iBAAyB,EACzB,aAA4B,EAC5B,WAA2B,EAC3B,WAAoC;IAEpC,IAAM,MAAM,GAAgB;QAC1B,KAAK,EAAE,SA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IAAM,cAAc,GAAG,UAAU,CAAC,cAAc,EAAE,CAAC;IACnD,cAAc,CAAC,OAAO,CAAC,UAAC,UAAU;QAChC,IAAM,MAAM,GAAG,UAAU,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;QAEpD,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,uBAC1B,MAAM,KACT,GAAG,EAAE,UAAU,EACf,YAAY,EAAE,IAAA,uDAA0B,EAAC,WAAW,EAAE,WAAW,EAAE,UAAU,CAAC,EAC9E,cAAc,EAAE,KAAK,CAAC,IAAI,CAAC,wBAAwB,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC,EACtE,cAAc,EAAE,KAAK,CAAC,IAAI,CAAC,wBAAwB,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC,IACtE,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAChB,CAAC;AAzLD,0DAyLC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getLastModifiedFromHistory = void 0;
|
|
4
|
+
function getLastModifiedFromHistory(fullHistory, type, key) {
|
|
5
|
+
var lastModified = fullHistory.find(function (entry) {
|
|
6
|
+
return entry.entities.find(function (entity) {
|
|
7
|
+
return entity.type === type && entity.key === key;
|
|
8
|
+
});
|
|
9
|
+
});
|
|
10
|
+
if (lastModified) {
|
|
11
|
+
return {
|
|
12
|
+
commit: lastModified.commit,
|
|
13
|
+
timestamp: lastModified.timestamp,
|
|
14
|
+
author: lastModified.author,
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.getLastModifiedFromHistory = getLastModifiedFromHistory;
|
|
19
|
+
//# sourceMappingURL=getLastModifiedFromHistory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getLastModifiedFromHistory.js","sourceRoot":"","sources":["../../src/site/getLastModifiedFromHistory.ts"],"names":[],"mappings":";;;AAEA,SAAgB,0BAA0B,CACxC,WAA2B,EAC3B,IAAI,EACJ,GAAG;IAEH,IAAM,YAAY,GAAG,WAAW,CAAC,IAAI,CAAC,UAAC,KAAK;QAC1C,OAAO,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAC,MAAM;YAChC,OAAO,MAAM,CAAC,IAAI,KAAK,IAAI,IAAI,MAAM,CAAC,GAAG,KAAK,GAAG,CAAC;QACpD,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,IAAI,YAAY,EAAE;QAChB,OAAO;YACL,MAAM,EAAE,YAAY,CAAC,MAAM;YAC3B,SAAS,EAAE,YAAY,CAAC,SAAS;YACjC,MAAM,EAAE,YAAY,CAAC,MAAM;SAC5B,CAAC;KACH;AACH,CAAC;AAlBD,gEAkBC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getOwnerAndRepoFromUrl = void 0;
|
|
4
|
+
function getOwnerAndRepoFromUrl(url) {
|
|
5
|
+
var owner;
|
|
6
|
+
var repo;
|
|
7
|
+
if (url.startsWith("https://")) {
|
|
8
|
+
var parts = url.split("/");
|
|
9
|
+
repo = parts.pop().replace(".git", "");
|
|
10
|
+
owner = parts.pop();
|
|
11
|
+
}
|
|
12
|
+
else if (url.startsWith("git@")) {
|
|
13
|
+
var urlParts = url.split(":");
|
|
14
|
+
var parts = urlParts[1].split("/");
|
|
15
|
+
repo = parts.pop().replace(".git", "");
|
|
16
|
+
owner = parts.pop();
|
|
17
|
+
}
|
|
18
|
+
return { owner: owner, repo: repo };
|
|
19
|
+
}
|
|
20
|
+
exports.getOwnerAndRepoFromUrl = getOwnerAndRepoFromUrl;
|
|
21
|
+
//# sourceMappingURL=getOwnerAndRepoFromUrl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getOwnerAndRepoFromUrl.js","sourceRoot":"","sources":["../../src/site/getOwnerAndRepoFromUrl.ts"],"names":[],"mappings":";;;AAAA,SAAgB,sBAAsB,CAAC,GAAW;IAChD,IAAI,KAAK,CAAC;IACV,IAAI,IAAI,CAAC;IAET,IAAI,GAAG,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE;QAC9B,IAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC7B,IAAI,GAAI,KAAK,CAAC,GAAG,EAAa,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QACnD,KAAK,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC;KACrB;SAAM,IAAI,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE;QACjC,IAAM,QAAQ,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAChC,IAAM,KAAK,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACrC,IAAI,GAAI,KAAK,CAAC,GAAG,EAAa,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QACnD,KAAK,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC;KACrB;IAED,OAAO,EAAE,KAAK,OAAA,EAAE,IAAI,MAAA,EAAE,CAAC;AACzB,CAAC;AAhBD,wDAgBC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRelativePaths = void 0;
|
|
4
|
+
var path = require("path");
|
|
5
|
+
function getRelativePaths(rootDirectoryPath, projectConfig) {
|
|
6
|
+
var relativeFeaturesPath = path.relative(rootDirectoryPath, projectConfig.featuresDirectoryPath);
|
|
7
|
+
var relativeSegmentsPath = path.relative(rootDirectoryPath, projectConfig.segmentsDirectoryPath);
|
|
8
|
+
var relativeAttributesPath = path.relative(rootDirectoryPath, projectConfig.attributesDirectoryPath);
|
|
9
|
+
return {
|
|
10
|
+
relativeFeaturesPath: relativeFeaturesPath,
|
|
11
|
+
relativeSegmentsPath: relativeSegmentsPath,
|
|
12
|
+
relativeAttributesPath: relativeAttributesPath,
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
exports.getRelativePaths = getRelativePaths;
|
|
16
|
+
//# sourceMappingURL=getRelativePaths.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRelativePaths.js","sourceRoot":"","sources":["../../src/site/getRelativePaths.ts"],"names":[],"mappings":";;;AAAA,2BAA6B;AAI7B,SAAgB,gBAAgB,CAAC,iBAAiB,EAAE,aAA4B;IAC9E,IAAM,oBAAoB,GAAG,IAAI,CAAC,QAAQ,CACxC,iBAAiB,EACjB,aAAa,CAAC,qBAAqB,CACpC,CAAC;IACF,IAAM,oBAAoB,GAAG,IAAI,CAAC,QAAQ,CACxC,iBAAiB,EACjB,aAAa,CAAC,qBAAqB,CACpC,CAAC;IACF,IAAM,sBAAsB,GAAG,IAAI,CAAC,QAAQ,CAC1C,iBAAiB,EACjB,aAAa,CAAC,uBAAuB,CACtC,CAAC;IAEF,OAAO;QACL,oBAAoB,sBAAA;QACpB,oBAAoB,sBAAA;QACpB,sBAAsB,wBAAA;KACvB,CAAC;AACJ,CAAC;AAnBD,4CAmBC"}
|