Unverified Commit bbf00234 authored by Ken Hawkins's avatar Ken Hawkins Committed by GitHub

馃悰 bug: css compilation location readout (#1245)

* bug: location readout

This fixes an issue where the compiled css location would be incorrectly output in some scenarios, resulting in:

```css
 * Location: components/vf-core-
```

We'll now see the more correct:

```css
 * Location: components/vf-core-components/embl-conditional-edit
```

This issue was intermitent and appears to have mainly occured on Mac OS, but not Linux.
parent 20bfcd73
Pipeline #110302 passed with stages
in 7 minutes and 13 seconds
### 2.2.12
* bug: issue where the compiled css location would be incorrectly output in some scenarios
* https://github.com/visual-framework/vf-core/pull/1245
### 2.2.9
- fix: avoid build failure on missing .eslintrc.js config in child projects
......
......@@ -43,10 +43,9 @@ module.exports = function(gulp, path, componentPath, componentDirectories, build
return new Transform({
objectMode: true,
transform: (data, _, done) => {
location = 'components/' + location.split('components/')[1];
location = 'components/' + location.split(/-components\/(.+)/)[1];
let name = JSON.parse(data.contents.toString()).name;
let version = JSON.parse(data.contents.toString()).version;
var output = `$componentInfo: (
name: "` + name + `",
version: "` + version + `",
......@@ -54,7 +53,6 @@ module.exports = function(gulp, path, componentPath, componentDirectories, build
vfCoreVersion: "` + global.vfVersion + `",
buildTimeStamp: "` + new Date().toUTCString() + `"
);`
done(null, output);
}
})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment