gel-typography 4.1.0 → 5.1.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/.nvmrc +1 -1
- package/README.md +1 -1
- package/actions/build.sh +10 -0
- package/actions/npm.sh +15 -0
- package/actions/watch.sh +10 -0
- package/lib/_tools.scss +2 -2
- package/package.json +4 -4
package/.nvmrc
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
v22.14.0
|
package/README.md
CHANGED
|
@@ -150,7 +150,7 @@ There are a number of ways you can apply the touch detection. [Modernizr](https:
|
|
|
150
150
|
|
|
151
151
|
## Who is using this?
|
|
152
152
|
|
|
153
|
-
The following teams are currently using this component: GEL, News, Sport, Live, Homepage, Search, BBC Food, CBBC, CBeebies, BBC Three, MyBBC, K&L, Taster, Academy, Travel & Weather, BBC Music
|
|
153
|
+
The following teams are currently using this component: GEL, News, Sport, Live, Homepage, Search, BBC Food, CBBC, CBeebies, BBC Three, MyBBC, K&L, Taster, Academy, Travel & Weather, BBC Music, BBC Subtitle Guidelines
|
|
154
154
|
|
|
155
155
|
If your team is using this component, let us know and we'll add you to the list.
|
|
156
156
|
|
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/_tools.scss
CHANGED
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
|
|
121
121
|
|
|
122
122
|
// Loop through a supplied Sass map and return each key/value as CSS properties
|
|
123
|
-
// and values. Any `px` value will be automatically passed to the `
|
|
123
|
+
// and values. Any `px` value will be automatically passed to the `toRem` tool
|
|
124
124
|
//
|
|
125
125
|
// @param {Map} $type-values - a map of CSS values in property: value format
|
|
126
126
|
//
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
@mixin _gel-output-type-values($type-values) {
|
|
133
133
|
@each $property, $value in $type-values {
|
|
134
134
|
@if (type-of($value) == number and unit($value) == 'px') {
|
|
135
|
-
@include
|
|
135
|
+
@include toRem($property, $value);
|
|
136
136
|
} @else {
|
|
137
137
|
#{$property}: $value;
|
|
138
138
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gel-typography",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.1.2",
|
|
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.
|
|
42
|
-
"sass-mq": "
|
|
41
|
+
"sass": "1.85.0",
|
|
42
|
+
"sass-mq": "6.0.0"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"gel-sass-tools": "
|
|
45
|
+
"gel-sass-tools": "3.3.0"
|
|
46
46
|
}
|
|
47
47
|
}
|