@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.
- package/package.json +3 -3
- package/postinstall.js +38 -35
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastors/core",
|
|
3
|
-
"version": "1.
|
|
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
|
|
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
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
${
|
|
30
|
-
|
|
31
|
-
${
|
|
32
|
-
${
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
${
|
|
36
|
-
${
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
`
|
|
40
|
-
|
|
41
|
-
|
|
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)
|