@gesslar/sassy 0.20.0 → 0.21.0
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/package.json +12 -8
- package/src/BuildCommand.js +8 -9
- package/src/Cache.js +1 -0
- package/src/Colour.js +8 -2
- package/src/Command.js +92 -32
- package/src/Compiler.js +62 -36
- package/src/Data.js +24 -14
- package/src/Evaluator.js +8 -4
- package/src/File.js +14 -2
- package/src/LintCommand.js +381 -103
- package/src/ResolveCommand.js +44 -27
- package/src/Sass.js +2 -1
- package/src/Session.js +211 -42
- package/src/Term.js +7 -7
- package/src/Theme.js +378 -53
- package/src/ThemePool.js +1 -1
- package/src/ThemeToken.js +1 -0
- package/src/Type.js +11 -10
- package/src/Util.js +2 -2
- package/src/Valid.js +1 -1
- package/src/cli.js +27 -15
package/src/Valid.js
CHANGED
|
@@ -7,7 +7,7 @@ export default class Valid {
|
|
|
7
7
|
/**
|
|
8
8
|
* Validates a value against a type
|
|
9
9
|
*
|
|
10
|
-
* @param {
|
|
10
|
+
* @param {unknown} value - The value to validate
|
|
11
11
|
* @param {string} type - The expected type in the form of "object",
|
|
12
12
|
* "object[]", "object|object[]"
|
|
13
13
|
* @param {object} [options] - Additional options for validation.
|
package/src/cli.js
CHANGED
|
@@ -110,26 +110,38 @@ void (async function main() {
|
|
|
110
110
|
.description(pkgJson.description)
|
|
111
111
|
.version(pkgJson.version)
|
|
112
112
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
const commands = [BuildCommand, ResolveCommand, LintCommand]
|
|
114
|
+
|
|
115
|
+
for(const CommandClass of commands) {
|
|
116
|
+
const command = new CommandClass({cwd, packageJson: pkgJson})
|
|
117
|
+
command.setCache(cache)
|
|
118
|
+
await command.buildCli(program)
|
|
119
|
+
command.addCliOptions(alwaysAvailable, false)
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// // Add the build subcommand
|
|
123
|
+
// const buildCommand = new BuildCommand({cwd, packageJson: pkgJson})
|
|
124
|
+
|
|
125
|
+
// buildCommand.cache = cache
|
|
126
|
+
|
|
127
|
+
// void(await buildCommand.buildCli(program))
|
|
128
|
+
// .addCliOptions(alwaysAvailable, false)
|
|
129
|
+
|
|
130
|
+
// // Add the resolve subcommand
|
|
131
|
+
// const resolveCommand = new ResolveCommand({cwd, packageJson: pkgJson})
|
|
116
132
|
|
|
117
|
-
|
|
118
|
-
.addCliOptions(alwaysAvailable, false)
|
|
133
|
+
// resolveCommand.cache = cache
|
|
119
134
|
|
|
120
|
-
//
|
|
121
|
-
|
|
122
|
-
resolveCommand.cache = cache
|
|
135
|
+
// void(await resolveCommand.buildCli(program))
|
|
136
|
+
// .addCliOptions(alwaysAvailable, false)
|
|
123
137
|
|
|
124
|
-
|
|
125
|
-
|
|
138
|
+
// // Add the lint subcommand
|
|
139
|
+
// const lintCommand = new LintCommand({cwd, packageJson: pkgJson})
|
|
126
140
|
|
|
127
|
-
//
|
|
128
|
-
const lintCommand = new LintCommand({cwd, packageJson: pkgJson})
|
|
129
|
-
lintCommand.cache = cache
|
|
141
|
+
// lintCommand.cache = cache
|
|
130
142
|
|
|
131
|
-
void(await lintCommand.buildCli(program))
|
|
132
|
-
|
|
143
|
+
// void(await lintCommand.buildCli(program))
|
|
144
|
+
// .addCliOptions(alwaysAvailable, false)
|
|
133
145
|
|
|
134
146
|
// Let'er rip, bitches! VROOM VROOM, motherfucker!!
|
|
135
147
|
await program.parseAsync()
|