-
Notifications
You must be signed in to change notification settings - Fork 8
WIP: Upgrade Semantic Ui to use Semantic-UI-Less #130
Conversation
…e build until semantic-ui-less is implemented
… correctly set @imagePath and @fontPath in two locations default and tripwire
scripts/builder.js
Outdated
@@ -25,8 +26,7 @@ module.exports = { | |||
get coverageDir () { return path.join(this.projectRoot, 'coverage') }, | |||
get distDir () { return path.join(this.projectRoot, 'lib') }, | |||
get projectRoot () { return path.resolve(__dirname, '..') }, | |||
get semanticDist () { return path.join(this.semanticPath, 'dist') }, | |||
get semanticPath () { return path.join(this.projectRoot, 'semantic') }, | |||
get semanticPath () { return path.join(this.projectRoot, 'semantic-ui-less') }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
look into require.resolve
require.resolve('semantic-ui-less')
==> // /Users/andrew/octagon/node_modules/semantic-ui-less/index.less
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needed to use the full path
scripts/builder.js
Outdated
console.log(stdout) | ||
console.log('Building Semantic Less') | ||
const lessInputSource =path.join(this.semanticPath, 'semantic.less') | ||
const lessInputStream = fs.readFileSync(lessInputSource).toString() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
await fs.readFile(...
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
…src. Adjusted script to use symlinks to pull in semantic-ui-less from node_modules and our theme info form src
….md, updated build script to work with less-loader. Styleguidist using Less-Loader doesn't like some files to be symlinked. Replaced most files in builder to be compied. Themes folder is symlinked so that changes you make in src are hotloaded. Theme.config was not able to be symlinked and if changes are made to it the project must be rebuilt.
Woohoo! new surge deployment available for viewing! 🎉 surgereview29593329.surge.sh |
Woohoo! new surge deployment available for viewing! 🎉 surgereview29595186.surge.sh |
Woohoo! new surge deployment available for viewing! 🎉 surgereview29596187.surge.sh |
Woohoo! new surge deployment available for viewing! 🎉 surgereview29596237.surge.sh |
Woohoo! new surge deployment available for viewing! 🎉 surgereview29596284.surge.sh |
@andrewleyva (& @ggascoigne) updates!
take a look at the static styleguide from @wa11-e (yours, or mine).
|
…d should have been relative
Woohoo! new surge deployment available for viewing! 🎉 surgereview29667143.surge.sh |
Woohoo! new surge deployment available for viewing! 🎉 surgereview29675775.surge.sh |
Addresses issue #119. |
I'm curious what the anticipated impact on TOC and Connect v4 will be with this change. |
Cool, I'll pull it into TOC when I return and run backstop there :) That'll be the real test 😁 |
problem statement
The build is heavy and slow and is integrated in such a way that updates could overwrite some of our code.
solution
Notes:
Currently we must use Less v2.7.2 because the latest (3.0.0-alpha.3) results in build errors for semantic-ui. And issue is open: Semantic-Org/Semantic-UI-LESS#30 (comment)