Skip to content

Commit d118fea

Browse files
committedAug 31, 2021
chore(deps): update dependency tsbb to v3 #48
1 parent 641fbe1 commit d118fea

File tree

6 files changed

+19
-21
lines changed

6 files changed

+19
-21
lines changed
 

‎package.json

+8-11
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,15 @@
44
"description": "All `.less` files are compiled into `.css` files.",
55
"main": "lib/compile.js",
66
"bin": {
7-
"compile-less": "lib/cli.js"
7+
"compile-less": "lib/index.js"
88
},
99
"scripts": {
1010
"prepare": "npm run build",
11-
"watch": "npm run watch:ts & npm run build:types -- --watch",
12-
"watch:ts": "tsbb watch",
13-
"build": "npm run build:ts && npm run build:types",
14-
"build:ts": "tsbb build",
15-
"build:types": "tsbb types",
16-
"test": "node ./lib/cli.js -d test/src -o test/out",
17-
"test:watch": "node ./lib/cli.js -d test/src -o test/out --combine test/out/dist.css --watch",
18-
"test:watch2": "node ./lib/cli.js -d test/src -o test/out --watch --exclude-css"
11+
"watch": "tsbb watch --disable-babel --no-esm",
12+
"build": "tsbb build --disable-babel --no-esm",
13+
"test": "node ./lib/index.js -d test/src -o test/out",
14+
"test:watch": "node ./lib/index.js -d test/src -o test/out --combine test/out/dist.css --watch",
15+
"test:watch2": "node ./lib/index.js -d test/src -o test/out --watch --exclude-css"
1916
},
2017
"repository": {
2118
"type": "git",
@@ -39,13 +36,13 @@
3936
"src"
4037
],
4138
"devDependencies": {
42-
"tsbb": "2.3.1"
39+
"tsbb": "3.0.0"
4340
},
4441
"dependencies": {
4542
"@types/fs-extra": "9.0.12",
4643
"@types/less": "3.0.3",
4744
"@types/minimist": "1.2.2",
48-
"@types/node": "16.6.1",
45+
"@types/node": "16.7.8",
4946
"chokidar": "3.5.2",
5047
"directory-tree": "2.3.1",
5148
"fs-extra": "10.0.0",

‎src/compile.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export async function outputFile(data: IOutputFile, inputDir: string, outputDir:
4444
console.log('♻️ \x1b[32m =>\x1b[0m:', logPathIn, '->', logPathOut);
4545
await fs.outputFile(data.path, data.css);
4646
if (data.imports && data.imports.length > 0) {
47-
console.log('\x1b[35m imports \x1b[0m:', data.imports);
47+
// console.log('\x1b[35m imports-> \x1b[0m:', data.imports);
4848
}
4949
} catch (error) {
5050
throw error;

‎src/executeLess.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import fs from 'fs-extra';
22
import less from 'less';
33
import { spawn } from 'child_process';
4+
// @ts-ignore
45
import LessPluginAutoPrefix from 'less-plugin-autoprefix';
56

67
const autoprefixPlugin = new LessPluginAutoPrefix({

‎src/global.d.ts

-8
This file was deleted.

‎src/cli.ts ‎src/index.ts

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ function outputHelp() {
2121
console.log(' -r, --rm-global,', 'Remove ":global" and ":global(className)".');
2222
exampleHelp();
2323
}
24-
2524
const argvs = minimist(process.argv.slice(2));
2625
if (argvs.h || argvs.help) {
2726
outputHelp()

‎src/tsconfig.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
{
3+
"extends": "../tsconfig",
4+
"include": ["../src"],
5+
"compilerOptions": {
6+
"baseUrl": ".",
7+
"noEmit": false
8+
}
9+
}

0 commit comments

Comments
 (0)
Please sign in to comment.