gel-typography 5.0.0 → 5.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/.nvmrc +1 -1
- package/_typography.scss +3 -1
- package/actions/build.sh +10 -0
- package/actions/npm.sh +15 -0
- package/actions/watch.sh +10 -0
- package/lib/_settings.scss +3 -1
- package/lib/_tools.scss +4 -2
- package/package.json +3 -3
package/.nvmrc
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
v22.14.0
|
package/_typography.scss
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
1
3
|
///*------------------------------------*\
|
|
2
4
|
// # GEL TYPOGRAPHY
|
|
3
5
|
//\*------------------------------------*/
|
|
@@ -20,7 +22,7 @@ $enhanced: true !default;
|
|
|
20
22
|
|
|
21
23
|
// If larger font sizes enable, merge them with gel-type-settings
|
|
22
24
|
@if $gel-type-enable--larger-type-sizes {
|
|
23
|
-
$gel-type-settings: map
|
|
25
|
+
$gel-type-settings: map.merge($gel-type-settings, $gel-larger-font-sizes);
|
|
24
26
|
}
|
|
25
27
|
|
|
26
28
|
// Output the typography styles for the 4 groups
|
package/actions/build.sh
ADDED
package/actions/npm.sh
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
|
|
3
|
+
# Ensure abort if any command fails (returns non zero status code $?)
|
|
4
|
+
set -e +x
|
|
5
|
+
|
|
6
|
+
BASEDIR=$(dirname $(dirname $(readlink -f "$0")))
|
|
7
|
+
|
|
8
|
+
# Create .npmrc to ensure NPM uses the token
|
|
9
|
+
echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' >> $BASEDIR/.npmrc
|
|
10
|
+
|
|
11
|
+
# Publish the package using the token for authenication
|
|
12
|
+
npm publish
|
|
13
|
+
|
|
14
|
+
# Remove the npmrc file as action completed
|
|
15
|
+
rm $BASEDIR/.npmrc
|
package/actions/watch.sh
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
|
|
3
|
+
# Ensure abort if any command fails (returns non zero status code $?)
|
|
4
|
+
set -e +x
|
|
5
|
+
|
|
6
|
+
# Extract the tag/release number
|
|
7
|
+
echo "VERSION=${GIT_BRANCH##*/}" >> actions/jenkins.properties
|
|
8
|
+
|
|
9
|
+
# Source the properties file
|
|
10
|
+
. actions/jenkins.properties
|
package/lib/_settings.scss
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use 'sass:meta';
|
|
2
|
+
|
|
1
3
|
///*------------------------------------*\
|
|
2
4
|
// # GEL TYPOGRAPHY - SETTINGS
|
|
3
5
|
//\*------------------------------------*/
|
|
@@ -412,7 +414,7 @@ $gel-larger-font-sizes: (
|
|
|
412
414
|
// Adds the typography specific breakpoints to the Sass MQ list
|
|
413
415
|
// of breakpoints
|
|
414
416
|
//
|
|
415
|
-
@if (mixin-exists(mq)) {
|
|
417
|
+
@if (meta.mixin-exists(mq)) {
|
|
416
418
|
@include mq-add-breakpoint(gel-bp-type-b, 320px);
|
|
417
419
|
@include mq-add-breakpoint(gel-bp-type-c, 600px);
|
|
418
420
|
} @else {
|
package/lib/_tools.scss
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
1
3
|
///*------------------------------------*\
|
|
2
4
|
// # GEL TYPOGRAPHY - TOOL
|
|
3
5
|
//\*------------------------------------*/
|
|
@@ -44,10 +46,10 @@
|
|
|
44
46
|
|
|
45
47
|
@if map-has-key($source, $key) {
|
|
46
48
|
$current: map-get($source, $key);
|
|
47
|
-
$new: ($key: map
|
|
49
|
+
$new: ($key: map.merge($current, $value));
|
|
48
50
|
}
|
|
49
51
|
|
|
50
|
-
$source: map
|
|
52
|
+
$source: map.merge($source, $new);
|
|
51
53
|
}
|
|
52
54
|
|
|
53
55
|
@return $source;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gel-typography",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"description": "A flexible code implementation of the GEL Typography",
|
|
5
5
|
"main": "_typography.scss",
|
|
6
6
|
"scripts": {
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
},
|
|
39
39
|
"homepage": "https://github.com/bbc/gel-typography",
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"sass": "1.
|
|
41
|
+
"sass": "1.85.0",
|
|
42
42
|
"sass-mq": "6.0.0"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"gel-sass-tools": "3.0
|
|
45
|
+
"gel-sass-tools": "3.4.0"
|
|
46
46
|
}
|
|
47
47
|
}
|