Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7fc4fa4

Browse files
committed
fix window path
1 parent 1213197 commit 7fc4fa4

File tree

10 files changed

+50
-57
lines changed

10 files changed

+50
-57
lines changed

‎LICENSE‎

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
1-
MIT License
1+
css-nesting-compiler
2+
Copyright (C) 2023 anilkumarum
23

3-
Copyright (c) 2023 anilkumarum
4+
This program is free software: you can redistribute it and/or modify
5+
it under the terms of the GNU General Public License as published by
6+
the Free Software Foundation, either version 3 of the License, or
7+
(at your option) any later version.
48

5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
10-
furnished to do so, subject to the following conditions:
9+
This program is distributed in the hope that it will be useful,
10+
but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
GNU General Public License for more details.
1113

12-
The above copyright notice and this permission notice shall be included in all
13-
copies or substantial portions of the Software.
14-
15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
14+
You should have received a copy of the GNU General Public License
15+
along with this program. If not, see <http://www.gnu.org/licenses/>.

‎css-parser/__tests__/css-rule.test.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"use strict";
2-
const test = require("ava");
2+
const ava = require("ava");
3+
const test = ava.default;
34
const { Parser } = require("../out/index.js");
45
const {
56
universalSelector,

‎css-parser/package.json‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@
77
"test": "ava --update-snapshots",
88
"dev": "npm run dev"
99
},
10-
"keywords": [],
11-
"author": "",
12-
"license": "MIT",
10+
"keywords": [
11+
"css-nesting"
12+
],
13+
"author": "anilkumarum",
14+
"license": "GPL-3.0-only",
1315
"devDependencies": {
1416
"@types/node": "^18.16.3",
1517
"ava": "^5.2.0"
1618
}
17-
}
19+
}

‎vscode-css-nesting/.vscodeignore‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ vsc-extension-quickstart.md
99
**/.eslintrc.json
1010
**/*.map
1111
**/*.ts
12-
node_modules
12+
**/node_modules

‎vscode-css-nesting/CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# Change Log
22

33
- Initial release
4+
- fix window path

‎vscode-css-nesting/LICENSE‎

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
1-
MIT License
1+
css-nesting-compiler
2+
Copyright (C) 2023 anilkumarum
23

3-
Copyright (c) 2023 anilkumarum
4+
This program is free software: you can redistribute it and/or modify
5+
it under the terms of the GNU General Public License as published by
6+
the Free Software Foundation, either version 3 of the License, or
7+
(at your option) any later version.
48

5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
10-
furnished to do so, subject to the following conditions:
9+
This program is distributed in the hope that it will be useful,
10+
but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
GNU General Public License for more details.
1113

12-
The above copyright notice and this permission notice shall be included in all
13-
copies or substantial portions of the Software.
14-
15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
14+
You should have received a copy of the GNU General Public License
15+
along with this program. If not, see <http://www.gnu.org/licenses/>.

‎vscode-css-nesting/package-lock.json‎

Lines changed: 7 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎vscode-css-nesting/package.json‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"name": "css-nesting-compiler",
33
"displayName": "CSS Nesting Compiler",
44
"description": "Superfast css compiler. Compile css nesting for firefox and old browsers",
5-
"version": "0.0.1",
5+
"version": "0.0.2",
66
"publisher": "anilkumarum",
7-
"license": "MIT",
7+
"license": "GPL-3.0-only",
88
"icon": "icon.png",
99
"preview": true,
1010
"bugs": {
@@ -41,7 +41,7 @@
4141
{
4242
"command": "cssNestingCompiler.compileCssNesting",
4343
"title": "Compile CSS Nesting",
44-
"category": "Compile css nesting"
44+
"category": "Compiler"
4545
}
4646
],
4747
"configuration": {
@@ -94,8 +94,7 @@
9494
]
9595
},
9696
"scripts": {
97-
"vscode:prepublish": "rm -r out/* && npm run bundle -- --minify",
98-
"bundle": "esbuild ./src/extension.ts --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node",
97+
"bundle": "esbuild ./src/extension.ts --bundle --minify --outfile=out/extension.js --external:vscode --format=cjs --platform=node",
9998
"compile": "tsc -p ./",
10099
"watch": "tsc -watch -p ./"
101100
},

‎vscode-css-nesting/src/compile/compile.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { userConfig } from "../utils/helper.js";
66
import msgChannel, { OutputLevel } from "../utils/msg-channel.js";
77
import { performance } from "node:perf_hooks";
88

9-
const workspaceFolder = vscode.workspace.workspaceFolders[0].uri.path;
9+
const workspaceFolder = vscode.workspace.workspaceFolders[0].uri.fsPath;
1010

1111
export default async function compileFile(filePath: string) {
1212
try {

‎vscode-css-nesting/src/compile/walker.ts‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@ import compileFile from "./compile.js";
55
import statusBar from "../utils/status-bar.js";
66
import msgChannel, { OutputLevel } from "../utils/msg-channel.js";
77
import { userConfig } from "../utils/helper.js";
8+
import * as path from "node:path";
89

9-
const workspaceFolder = vscode.workspace.workspaceFolders[0].uri.path;
10+
const workspaceFolder = vscode.workspace.workspaceFolders[0].uri.fsPath;
1011

1112
async function walkDir(source: string) {
1213
const dirents = await readdir(workspaceFolder + source, { withFileTypes: true });
1314

1415
const promises = [];
1516
for (const dirent of dirents) {
16-
const dirPath = `${source}/${dirent.name}`;
17+
const dirPath = `${source}${path.sep}${dirent.name}`;
1718
if (dirent.isDirectory()) willWalk(source.slice(1), dirent.name) && walkDir(dirPath);
1819
else if (dirent.name.endsWith(".css")) promises.push(compileFile(dirPath));
1920
}
@@ -22,7 +23,7 @@ async function walkDir(source: string) {
2223

2324
export default async function compileDir() {
2425
statusBar.processing();
25-
const rootDirPath = `/${userConfig.rootDir || ""}`;
26+
const rootDirPath = `${path.sep}${userConfig.rootDir || ""}`;
2627
await walkDir(rootDirPath).catch((err) => msgChannel.info(err, OutputLevel.Error));
2728
statusBar.done();
2829
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /