@usequeek/theme-check 0.6.1 → 0.7.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/README.md +2 -2
- package/dist/context.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/utils/theme-designs.d.ts +1 -1
- package/dist/utils/theme-designs.js +1 -1
- package/dist/vocabulary.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# @usequeek/theme-check
|
|
2
2
|
|
|
3
3
|
The rules a [Queek](https://usequeek.com) storefront theme is checked against, as a library.
|
|
4
|
-
Most people want the command line instead: `npx queek
|
|
5
|
-
[`@usequeek/
|
|
4
|
+
Most people want the command line instead: `npx queek theme check` from
|
|
5
|
+
[`@usequeek/cli`](https://www.npmjs.com/package/@usequeek/cli).
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
npm install --save-dev @usequeek/theme-check
|
package/dist/context.js
CHANGED
|
@@ -19,7 +19,7 @@ export function localEnv(dir, cwd = process.cwd()) {
|
|
|
19
19
|
vocabulary: 'the business vocabulary (docs/business-vocabulary.json in the starter)',
|
|
20
20
|
scaffold: '`npm create @usequeek/theme`',
|
|
21
21
|
preview: (templateId) => `http://localhost:7833/${templateId}`,
|
|
22
|
-
capture: (designId) => designId === PRIMARY_DEMO_ID ? 'npx queek
|
|
22
|
+
capture: (designId) => designId === PRIMARY_DEMO_ID ? 'npx queek theme screenshot' : `npx queek theme screenshot ${designId}`,
|
|
23
23
|
submission: false,
|
|
24
24
|
};
|
|
25
25
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @usequeek/theme-check — the rules a Queek storefront theme is checked
|
|
3
|
-
* against, as a library. The `queek
|
|
4
|
-
* @usequeek/
|
|
3
|
+
* against, as a library. The `queek theme check` command of
|
|
4
|
+
* @usequeek/cli is its command-line front end.
|
|
5
5
|
*/
|
|
6
6
|
export { checkTheme, rejects, RULES, AT_SUBMISSION, type CheckOptions, type CheckResult, type CheckVocabulary } from './run.js';
|
|
7
7
|
export { resolveVocabulary, vocabularyCacheDir, readCachedVocabulary, bundledVocabulary, bundledVersion, parseEndpointPayload, parseVocabularyData, VOCABULARY_URL, VOCABULARY_CACHE_TTL_MS, type BusinessVocabularyData, type ResolveVocabularyOptions, type ResolvedVocabulary, type VocabularySource, } from './vocabulary.js';
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @usequeek/theme-check — the rules a Queek storefront theme is checked
|
|
3
|
-
* against, as a library. The `queek
|
|
4
|
-
* @usequeek/
|
|
3
|
+
* against, as a library. The `queek theme check` command of
|
|
4
|
+
* @usequeek/cli is its command-line front end.
|
|
5
5
|
*/
|
|
6
6
|
export { checkTheme, rejects, RULES, AT_SUBMISSION } from './run.js';
|
|
7
7
|
export { resolveVocabulary, vocabularyCacheDir, readCachedVocabulary, bundledVocabulary, bundledVersion, parseEndpointPayload, parseVocabularyData, VOCABULARY_URL, VOCABULARY_CACHE_TTL_MS, } from './vocabulary.js';
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
* it did.
|
|
30
30
|
*
|
|
31
31
|
* One resolver for every consumer: the registry, the design index the proxy
|
|
32
|
-
* and the preview read, both copies of theme-check, and
|
|
32
|
+
* and the preview read, both copies of theme-check, and the CLI. So it
|
|
33
33
|
* imports nothing. `yarn tools:sync-lists` copies this file byte for byte to
|
|
34
34
|
* theme-tools (packages/theme-check/src/utils/theme-designs.ts), and a copy
|
|
35
35
|
* that drifts fails `yarn tools:sync-lists --check`. Change it here, then sync.
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
* it did.
|
|
30
30
|
*
|
|
31
31
|
* One resolver for every consumer: the registry, the design index the proxy
|
|
32
|
-
* and the preview read, both copies of theme-check, and
|
|
32
|
+
* and the preview read, both copies of theme-check, and the CLI. So it
|
|
33
33
|
* imports nothing. `yarn tools:sync-lists` copies this file byte for byte to
|
|
34
34
|
* theme-tools (packages/theme-check/src/utils/theme-designs.ts), and a copy
|
|
35
35
|
* that drifts fails `yarn tools:sync-lists --check`. Change it here, then sync.
|
package/dist/vocabulary.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The live business vocabulary: one resolver, one cache, shared by
|
|
3
|
-
* theme-check,
|
|
3
|
+
* theme-check, the CLI and create-theme.
|
|
4
4
|
*
|
|
5
5
|
* Production serves `{ status, data }` at VOCABULARY_URL, where `data` holds
|
|
6
6
|
* the vocabulary (`version`, `services`, `catalogue`, `subcategories`,
|