-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
handle nextValue and update test data
- Loading branch information
1 parent
3248097
commit 49849f6
Showing
601 changed files
with
778 additions
and
349 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v16 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
This script updates syntax for given CSS feature and type in test data. | ||
*/ | ||
|
||
/* eslint-disable-next-line n/no-unsupported-features/node-builtins */ | ||
import fs from "node:fs/promises"; | ||
import * as Utils from "./utils.js"; | ||
|
||
const helpMessage = | ||
"Usage:\n\t" + | ||
"npm run add-syntax '[feature-name]' '[feature-type]'\n\t" + | ||
"node testing/add-syntax '[feature-name]' '[feature-type]'\n"; | ||
|
||
if (process.argv.length < 3) { | ||
console.error(helpMessage); | ||
/* eslint-disable-next-line no-process-exit, n/no-process-exit */ | ||
process.exit(1); | ||
} else if (process.argv[2] === "--help" || process.argv[2] === "-h") { | ||
console.info(helpMessage); | ||
/* eslint-disable-next-line no-process-exit, n/no-process-exit */ | ||
process.exit(0); | ||
} | ||
|
||
const name = process.argv[2]; | ||
const type = process.argv[3]; | ||
let syntax = Utils.getSyntaxForType(name, type); | ||
|
||
if (syntax) { | ||
syntax = { | ||
name: name, | ||
type: type, | ||
...syntax, | ||
}; | ||
|
||
await fs.writeFile( | ||
`testing/data/${type}__${name}.json`, | ||
JSON.stringify(syntax, undefined, " ") | ||
); | ||
} | ||
|
||
console.log(`Added ${type}__${name}`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.