@plumeria/init 19.6.1 → 19.6.2

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 CHANGED
@@ -34,12 +34,12 @@ Next.js gets `@plumeria/next-plugin`; every other bundler gets
34
34
 
35
35
  ## What it asks
36
36
 
37
- **Which spelling of a two-named property does this project write?** —
37
+ **Which spelling should lint enforce?** —
38
38
  `marginBlockStart` or `marginTop`. The answer reaches both sides at once: the
39
39
  bundler plugin gets `withoutLogicalProperties` or `withoutPhysicalProperties`,
40
40
  so the counterpart cannot compile, and ESLint gets
41
41
  `@plumeria/no-logical-properties` or `@plumeria/no-physical-properties`, so it
42
- is reported while you type. Answering "both" sets neither. `--sizes` extends
42
+ is reported while you type. Answering "none" sets neither. `--sizes` extends
43
43
  the answer to the size axis, where `width` and `inlineSize` are the pair.
44
44
 
45
45
  **Expand a border shorthand into the three declarations it sets?** — turns on
package/dist/cli.js CHANGED
@@ -72,9 +72,6 @@ function parseArgs(argv) {
72
72
  case '--physical':
73
73
  options.preset.spelling = 'physical';
74
74
  break;
75
- case '--both':
76
- options.preset.spelling = 'both';
77
- break;
78
75
  case '--sizes':
79
76
  options.preset.sizes = true;
80
77
  break;
package/dist/prompt.js CHANGED
@@ -10,13 +10,13 @@ const style_1 = require("./style");
10
10
  const SPELLINGS = {
11
11
  '1': 'logical',
12
12
  '2': 'physical',
13
- '3': 'both',
13
+ '3': 'none',
14
14
  l: 'logical',
15
15
  logical: 'logical',
16
16
  p: 'physical',
17
17
  physical: 'physical',
18
- b: 'both',
19
- both: 'both',
18
+ n: 'none',
19
+ none: 'none',
20
20
  };
21
21
  const terminal = () => {
22
22
  const rl = promises_1.default.createInterface({
@@ -43,9 +43,9 @@ const ask = async (asker, preset) => {
43
43
  const choices = [
44
44
  ['1', 'logical', 'marginBlockStart, insetInlineStart'],
45
45
  ['2', 'physical', 'marginTop, left'],
46
- ['3', 'both', 'no policy'],
46
+ ['3', 'none', 'no policy'],
47
47
  ];
48
- console.log(`\nWhich spelling of a two-named property does this project write?`);
48
+ console.log(`\nWhich spelling should lint enforce?`);
49
49
  for (const [key, name, hint] of choices) {
50
50
  console.log(` ${style_1.style.choice(`${key}:`)} ${name.padEnd(9)}${style_1.style.faint(hint)}`);
51
51
  }
@@ -64,7 +64,7 @@ const ask = async (asker, preset) => {
64
64
  console.log(`${style_1.style.failure('✖')} answer 1, 2 or 3.`);
65
65
  }
66
66
  }
67
- if (answers.spelling !== 'both' && preset.sizes === undefined) {
67
+ if (answers.spelling !== 'none' && preset.sizes === undefined) {
68
68
  answers.sizes = await confirm(asker, 'Reject the size axis too (width/height ↔ inlineSize/blockSize)?', false);
69
69
  }
70
70
  if (preset.expandBorderShorthands === undefined) {
package/dist/setup.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { Bundler, Detected, PackageManager } from './detect';
2
- export type Spelling = 'logical' | 'physical' | 'both';
2
+ export type Spelling = 'logical' | 'physical' | 'none';
3
3
  export interface Answers {
4
4
  spelling: Spelling;
5
5
  sizes: boolean;
package/dist/setup.js CHANGED
@@ -20,7 +20,7 @@ const assertStyleProp = (value) => {
20
20
  };
21
21
  exports.assertStyleProp = assertStyleProp;
22
22
  exports.DEFAULT_ANSWERS = {
23
- spelling: 'both',
23
+ spelling: 'none',
24
24
  sizes: false,
25
25
  styleProp: exports.DEFAULT_STYLE_PROP,
26
26
  expandBorderShorthands: true,
@@ -45,7 +45,7 @@ const INSTALL = {
45
45
  yarn: 'yarn add -D',
46
46
  bun: 'bun add -d',
47
47
  };
48
- const rejectedSpelling = (spelling) => spelling === 'both'
48
+ const rejectedSpelling = (spelling) => spelling === 'none'
49
49
  ? undefined
50
50
  : spelling === 'logical'
51
51
  ? 'physical'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/init",
3
- "version": "19.6.1",
3
+ "version": "19.6.2",
4
4
  "description": "One command that sets up Plumeria: detects the bundler, installs the packages, writes the configs",
5
5
  "author": "Refirst 11",
6
6
  "license": "MIT",