travix-ui-kit
Advanced tools
Comparing version 0.6.8 to 0.6.9
@@ -10,2 +10,17 @@ const path = require('path'); | ||
const defaultOutputThemeFile = path.join(__dirname, '..', 'dist', 'theme.css'); | ||
function buildTheme(builder, themeFiles) { | ||
return builder.build(themeFiles); | ||
} | ||
function buildThemeCSS(builder, themeFiles, output) { | ||
return buildTheme(builder, themeFiles) | ||
.then(result => outputFile(output, result)); | ||
} | ||
function buildThemeJS(builder, themeFiles, output) { | ||
return buildTheme(builder, themeFiles) | ||
.then(result => outputFile(output, `window.TravixTheme = ${JSON.stringify(result)};`)); | ||
} | ||
/** | ||
@@ -38,2 +53,11 @@ * Triggers the build process. | ||
const outputThemeJs = path.join( | ||
path.dirname(output), | ||
`${path.basename(output, path.extname(output))}.js` | ||
); | ||
const builderJS = themeBuilder({ | ||
format: 'jsflat', | ||
prefix: 'tx', | ||
}); | ||
if (watch) { | ||
@@ -43,13 +67,18 @@ builder.watch(themeFiles, (result) => { | ||
}); | ||
builderJS.watch(themeFiles, (result) => { | ||
outputFile(outputThemeJs, `window.TravixTheme = ${JSON.stringify(result)};`); | ||
}); | ||
} | ||
return builder.build(themeFiles) | ||
.then(result => outputFile(output, result)) | ||
.then(() => runWebpackAndCopyFilesToFinalDestination({ | ||
cssDir, | ||
jsDir, | ||
watch, | ||
webpackConfig, | ||
webpackNodeEnv: { 'process.env.NODE_ENV': environment }, | ||
})); | ||
return Promise.all([ | ||
buildThemeCSS(builder, themeFiles, output), | ||
buildThemeJS(builderJS, themeFiles, outputThemeJs), | ||
]).then(() => runWebpackAndCopyFilesToFinalDestination({ | ||
cssDir, | ||
jsDir, | ||
watch, | ||
webpackConfig, | ||
webpackNodeEnv: { 'process.env.NODE_ENV': environment }, | ||
})); | ||
}; |
# Change Log | ||
## [v0.6.8](https://github.com/Travix-International/travix-ui-kit/tree/v0.6.8) (2017-06-29) | ||
[Full Changelog](https://github.com/Travix-International/travix-ui-kit/compare/v0.6.7...v0.6.8) | ||
**Fixed bugs:** | ||
- Modal component is still rendered \(although transparent\) after closed by clicking on overlay [\#109](https://github.com/Travix-International/travix-ui-kit/issues/109) | ||
**Merged pull requests:** | ||
- Change SlidingPanel to use the refs [\#116](https://github.com/Travix-International/travix-ui-kit/pull/116) ([mAiNiNfEcTiOn](https://github.com/mAiNiNfEcTiOn)) | ||
## [v0.6.7](https://github.com/Travix-International/travix-ui-kit/tree/v0.6.7) (2017-06-28) | ||
@@ -4,0 +15,0 @@ [Full Changelog](https://github.com/Travix-International/travix-ui-kit/compare/v0.6.6...v0.6.7) |
{ | ||
"name": "travix-ui-kit", | ||
"version": "0.6.8", | ||
"version": "0.6.9", | ||
"description": "Travix UI kit", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2417714
119
33607