@phun-ky/speccer 4.0.0 → 4.1.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/CHANGELOG.md +9 -0
- package/package.json +39 -20
- package/speccer.css +189 -201
- package/speccer.js +261 -228
- package/speccer.min.css +1 -1
- package/src/dissect.js +2 -2
- package/src/lib/resize.js +2 -2
- package/src/measure.js +1 -1
- package/src/spec.js +41 -41
- package/src/{anatomy.styl → styles/anatomy.styl} +59 -73
- package/src/styles/index.styl +26 -0
- package/src/styles/measure.styl +85 -0
- package/src/styles/spacing.styl +142 -0
- package/src/{typography.styl → styles/typography.styl} +1 -1
- package/src/typography.js +2 -2
- package/.eslintignore +0 -1
- package/dev/index.html +0 -472
- package/scripts/watcher.js +0 -125
- package/src/index.styl +0 -2
- package/src/speccer.styl +0 -162
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
|
+
|
|
5
|
+
## [4.1.0](https://github.com/phun-ky/speccer/compare/v4.0.0...v4.1.0) (2022-02-22)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
- Add release script ([4cb72cb](https://github.com/phun-ky/speccer/commit/4cb72cbea7dd1d6bcb8f1102384b14eecaa9eef0))
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phun-ky/speccer",
|
|
3
|
-
"version": "4.
|
|
4
|
-
"description": "A script to show
|
|
3
|
+
"version": "4.1.0",
|
|
4
|
+
"description": "A script to annotate, show spacing specs and to display typography information in documentation/website on HTML elements",
|
|
5
5
|
"main": "speccer.js",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -12,10 +12,18 @@
|
|
|
12
12
|
"rollup:dev": "npm run clean && rollup -c -w",
|
|
13
13
|
"clean": "rm -rf ./speccer.css ./speccer.min.css ./speccer.js",
|
|
14
14
|
"build": "npm run clean && npm run rollup && npm run stylus && npm run postcss",
|
|
15
|
-
"
|
|
15
|
+
"styles": "npm run stylus && npm run postcss",
|
|
16
|
+
"stylus": "rm -rf ./speccer.css && stylus ./src/styles/index.styl -o ./speccer.css",
|
|
16
17
|
"postcss": "rm -rf ./speccer.min.css && postcss ./speccer.css -o speccer.min.css",
|
|
17
|
-
"dev": "node ./scripts/
|
|
18
|
-
"commit": "npx git-cz"
|
|
18
|
+
"dev": "node ./scripts/server.js",
|
|
19
|
+
"commit": "npx git-cz",
|
|
20
|
+
"release": "npx standard-version"
|
|
21
|
+
},
|
|
22
|
+
"standard-version": {
|
|
23
|
+
"scripts": {
|
|
24
|
+
"prerelease": "npm run build",
|
|
25
|
+
"posttag": "git push --follow-tags origin master && npm publish"
|
|
26
|
+
}
|
|
19
27
|
},
|
|
20
28
|
"repository": {
|
|
21
29
|
"type": "git",
|
|
@@ -26,7 +34,22 @@
|
|
|
26
34
|
"css",
|
|
27
35
|
"javascript",
|
|
28
36
|
"spec",
|
|
29
|
-
"inspect"
|
|
37
|
+
"inspect",
|
|
38
|
+
"annotation",
|
|
39
|
+
"annotate",
|
|
40
|
+
"pin",
|
|
41
|
+
"specifications",
|
|
42
|
+
"anatomy",
|
|
43
|
+
"dissection",
|
|
44
|
+
"dissect",
|
|
45
|
+
"documentation",
|
|
46
|
+
"information",
|
|
47
|
+
"specification",
|
|
48
|
+
"specs",
|
|
49
|
+
"html-elements",
|
|
50
|
+
"inspect",
|
|
51
|
+
"spacing",
|
|
52
|
+
"speccer"
|
|
30
53
|
],
|
|
31
54
|
"author": "Alexander Vassbotn Røyne-Helgesen <alexander@phun-ky.net>",
|
|
32
55
|
"license": "MIT",
|
|
@@ -49,27 +72,23 @@
|
|
|
49
72
|
"@testing-library/user-event": "^12.7.1",
|
|
50
73
|
"babel-eslint": "^10.1.0",
|
|
51
74
|
"babel-jest": "^26.6.3",
|
|
75
|
+
"browser-sync": "^2.27.7",
|
|
52
76
|
"cssnano": "^5.0.4",
|
|
53
|
-
"eslint": "^
|
|
54
|
-
"eslint-config-airbnb": "^18.2.
|
|
55
|
-
"eslint-config-prettier": "^
|
|
56
|
-
"eslint-plugin-import": "^2.
|
|
57
|
-
"eslint-plugin-jest": "^24.
|
|
58
|
-
"eslint-plugin-prettier": "^
|
|
77
|
+
"eslint": "^7.32.0",
|
|
78
|
+
"eslint-config-airbnb": "^18.2.1",
|
|
79
|
+
"eslint-config-prettier": "^8.3.0",
|
|
80
|
+
"eslint-plugin-import": "^2.24.2",
|
|
81
|
+
"eslint-plugin-jest": "^24.4.2",
|
|
82
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
59
83
|
"jest": "^26.6.3",
|
|
60
84
|
"postcss": "^8.3.0",
|
|
61
85
|
"postcss-cli": "^8.3.1",
|
|
62
|
-
"prettier": "^2.
|
|
63
|
-
"prettier-eslint": "^
|
|
86
|
+
"prettier": "^2.4.1",
|
|
87
|
+
"prettier-eslint": "^13.0.0",
|
|
64
88
|
"regenerator-runtime": "^0.13.7",
|
|
65
89
|
"rollup": "^2.39.0",
|
|
66
90
|
"rollup-plugin-terser": "^7.0.2",
|
|
67
|
-
"
|
|
68
|
-
"body-parser": "^1.19.0",
|
|
69
|
-
"express": "^4.17.1",
|
|
70
|
-
"node-watch": "^0.7.1",
|
|
71
|
-
"open": "^8.0.2",
|
|
72
|
-
"reload": "^3.1.1"
|
|
91
|
+
"stylus": "^0.56.0"
|
|
73
92
|
},
|
|
74
93
|
"dependencies": {
|
|
75
94
|
"eslint-plugin-jsx-a11y": "^6.4.1",
|