igniteui-cli 13.1.3 → 13.1.4
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "igniteui-cli",
|
|
3
|
-
"version": "13.1.
|
|
3
|
+
"version": "13.1.4",
|
|
4
4
|
"description": "CLI tool for creating Ignite UI projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CLI",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"all": true
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@igniteui/angular-templates": "~17.1.
|
|
76
|
-
"@igniteui/cli-core": "~13.1.
|
|
75
|
+
"@igniteui/angular-templates": "~17.1.1314",
|
|
76
|
+
"@igniteui/cli-core": "~13.1.4",
|
|
77
77
|
"chalk": "^2.3.2",
|
|
78
78
|
"fs-extra": "^3.0.1",
|
|
79
79
|
"glob": "^7.1.2",
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates a class transformer function that maps matches from a module object
|
|
3
|
+
* @param styles Object map of classes and their scoped name, normally from a CSS Module import
|
|
4
|
+
*/
|
|
5
|
+
export default function createClassTransformer(styles: any) {
|
|
6
|
+
return (classes: string) => {
|
|
7
|
+
return classes
|
|
8
|
+
.split(' ')
|
|
9
|
+
.map(className => styles[className] || className)
|
|
10
|
+
.join(' ');
|
|
11
|
+
}
|
|
12
|
+
}
|