Skip to content

Commit cee234f

Browse files
mykongeeFoxEightBChiang4dplee123nicoflrs
committed
Nexus v0.5.3 published to VSCode Extension Marketplace
Co-authored-by: Alex Hersler <[email protected]> Co-authored-by: Brian Chiang <[email protected]> Co-authored-by: David Lee <[email protected]> Co-authored-by: Nico Flores <[email protected]>
1 parent 14b175c commit cee234f

File tree

6 files changed

+20
-7
lines changed

6 files changed

+20
-7
lines changed

nexus/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
22
.DS_Store
3+
nexus-extension-0.5.2.vsix

nexus/.vscodeignore

-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@ vsc-extension-quickstart.md
88
**/.eslintrc.json
99
**/*.map
1010
**/*.ts
11-
node_modules

nexus/package-lock.json

+9-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nexus/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"repository": {
88
"url": "https://github.com/oslabs-beta/Nexus"
99
},
10-
"version": "0.5.2",
10+
"version": "0.5.3",
1111
"engines": {
1212
"vscode": "^1.64.0"
1313
},

nexus/src/parser/NextParser.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"use strict";
22
exports.__esModule = true;
33
exports.NextParser = void 0;
4+
// @ts-nocheck
45
var parserModule = require("acorn");
56
var PARSER = parserModule.Parser;
67
var jsx = require("acorn-jsx");
@@ -168,12 +169,18 @@ var NextParser = /** @class */ (function () {
168169
// with endpoint, use this.string to find /pages/cats/index.js
169170
// loop over endpoints
170171
if (endpoints.length) {
172+
var styleEndpoints = [];
171173
for (var i_2 = 0; i_2 < endpoints.length; i_2++) {
174+
styleEndpoints.push(endpoints[i_2].slice(1));
175+
styleEndpoints = styleEndpoints.map(function (el) {
176+
el = el.substring(el.indexOf("/"));
177+
return el;
178+
});
172179
var fileToRecurse = this.string.split('/pages')[0] + "/pages".concat(endpoints[i_2], "/index.js");
173180
var children = [];
174181
var props = {};
175182
children.push(this.recurse(fileToRecurse));
176-
var componentNode = new ComponentNode(endpoints[i_2], this.getPropParameters(fileToRecurse, 'static'), children, 'ssg');
183+
var componentNode = new ComponentNode(styleEndpoints[i_2], this.getPropParameters(fileToRecurse, 'static'), children, 'ssg');
177184
components.push(componentNode);
178185
}
179186
}

nexus/src/parser/ReactParser.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"use strict";
22
exports.__esModule = true;
33
exports.ReactParser = void 0;
4+
// @ts-nocheck
45
// const PARSER = require('acorn').Parser;
56
var parserModule = require("acorn");
67
var PARSER = parserModule.Parser;

0 commit comments

Comments
 (0)