@mastors/core 1.1.0 → 1.2.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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/postinstall.js +38 -35
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastors/core",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Mastors Core — foundational tokens, mixins, functions, and SCSS architecture",
5
5
  "license": "MIT",
6
6
  "author": "Mastors Contributors",
@@ -50,9 +50,9 @@
50
50
  "stylelint": "^16.0.0",
51
51
  "stylelint-config-standard-scss": "^13.0.0",
52
52
  "typescript": "^5.3.0",
53
+ "@mastors/build-utils": "2.0.0",
53
54
  "@mastors/sass-config": "1.0.1",
54
- "@mastors/tsconfig": "1.0.1",
55
- "@mastors/build-utils": "2.0.0"
55
+ "@mastors/tsconfig": "1.0.1"
56
56
  },
57
57
  "peerDependencies": {
58
58
  "sass": ">=1.80.0"
package/postinstall.js CHANGED
@@ -1,41 +1,44 @@
1
1
  #!/usr/bin/env node
2
- // postinstall.js — Mastors ecosystem welcome script
2
+ // packages/core/postinstall.js — Mastors Core install welcome
3
3
  // Runs automatically after: npm install @mastors/core
4
-
5
4
  'use strict'
6
5
 
7
- const RESET = '\x1b[0m'
8
- const BOLD = '\x1b[1m'
9
- const DIM = '\x1b[2m'
10
- const GREEN = '\x1b[32m'
11
- const CYAN = '\x1b[36m'
12
- const YELLOW = '\x1b[33m'
13
- const WHITE = '\x1b[37m'
14
- const GRAY = '\x1b[90m'
15
-
16
- function line(char = '─', len = 52) {
17
- return GRAY + char.repeat(len) + RESET
6
+ const C = {
7
+ reset: '\x1b[0m',
8
+ bold: '\x1b[1m',
9
+ dim: '\x1b[2m',
10
+ green: '\x1b[32m',
11
+ cyan: '\x1b[36m',
12
+ yellow: '\x1b[33m',
13
+ white: '\x1b[37m',
14
+ gray: '\x1b[90m',
18
15
  }
19
16
 
20
- const message = `
21
- ${line()}
22
- ${BOLD}${WHITE} ✦ Thanks for installing Mastors!${RESET}
23
- ${line()}
24
-
25
- ${BOLD} Installed:${RESET}
26
- ${GREEN}✔${RESET} @mastors/core
27
-
28
- ${BOLD} Optional packages:${RESET}
29
- ${GREEN}✔${RESET} @mastors/flexer ${DIM}npm install @mastors/flexer${RESET}
30
- ${GREEN}✔${RESET} @mastors/gridder ${DIM}npm install @mastors/gridder${RESET}
31
- ${CYAN}◌${RESET} @mastors/typography ${GRAY}coming soon${RESET}
32
- ${CYAN}◌${RESET} @mastors/themes ${GRAY}coming soon${RESET}
33
- ${CYAN}◌${RESET} @mastors/animator ${GRAY}coming soon${RESET}
34
-
35
- ${BOLD} Documentation:${RESET}
36
- ${YELLOW}https://mastorscdn.kehem.com${RESET}
37
-
38
- ${line()}
39
- `
40
-
41
- process.stdout.write(message)
17
+ const W = 60
18
+ const ln = (char = '─') => C.gray + char.repeat(W) + C.reset
19
+
20
+ const msg = [
21
+ '',
22
+ ln('═'),
23
+ `${C.bold}${C.white} ✦ Thanks for installing @mastors/core!${C.reset}`,
24
+ ln('═'),
25
+ '',
26
+ ` ${C.green}[✔]${C.reset} ${C.bold}@mastors/core${C.reset} ${C.gray}(installed)${C.reset}`,
27
+ '',
28
+ ` ${C.gray}[○]${C.reset} ${C.bold}@mastors/gridder${C.reset} ${C.gray} CSS Grid utility classes${C.reset}`,
29
+ ` ${C.gray}[○]${C.reset} ${C.bold}@mastors/flexer${C.reset} ${C.gray}— Flexbox utility classes${C.reset}`,
30
+ '',
31
+ ln(),
32
+ ` ${C.yellow}Install the full Mastors suite + interactive picker:${C.reset}`,
33
+ ` ${C.cyan}${C.bold}npm install mastors${C.reset}${C.gray} then ${C.reset}${C.cyan}${C.bold}npx mastors${C.reset}`,
34
+ '',
35
+ ` Or install extra packages directly:`,
36
+ ` ${C.dim}npm install @mastors/gridder${C.reset}`,
37
+ ` ${C.dim}npm install @mastors/flexer${C.reset}`,
38
+ '',
39
+ ` ${C.yellow}Docs:${C.reset} ${C.dim}https://mastorscdn.kehem.com${C.reset}`,
40
+ ln(),
41
+ '',
42
+ ].join('\n')
43
+
44
+ process.stdout.write(msg)