-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Build] Bower Overwrites Files [!] #1310
Comments
I assumed bower wouldn't delete files that aren't in repository. Very lame. Perhaps adding bower ignore values for paths that shouldn't be touched. i.e. I'll have to experiment with this when I get back from the holidays. |
I too did an update and lost my customization :( |
See #1385 discussion consolidated there. |
So if this is closed, what is the proposed solution? I read the other thread but it only seemed to be a general discussion of best practices, not anyone offering a concrete way of solving this problem. I can change to npm instead of bower if the workflow would work there. |
@vikeri The solution will launch early next week along with other changes to build tools, like importable gulp tasks, and first party meteor integration. NPM will be the preferred install path. It will crawl for a You can take a peek at it the underlying code here if you're interested I still need to do some testing, but its nearly complete. |
Great news! So are those task folders included in the newest npm package or how would I go about exactly to install and configure it? |
I'm still debugging some edge cases. My big fear is releasing new build tools that prevent people from working with SUI immediately. Beyond this testing, and rewriting some admin tasks See readme here: https://github.com/Semantic-Org/Semantic-UI/tree/meteor/src#setup |
Moved everything into |
Ok! Thanks for keeping us posted :) |
|
Good stuff! Downloaded with npm and did the install. But I'm still not 100% sure of how the supposed install config should be, my hypothesis the following:
My question is hence if this accomplishes these two objectives:
|
I now tried this setup with a fresh install and even though the installer finds my semantic.json it says it can't find the files in the lib-semantic folder (correct since that folder does not exist in the repo). Thereafter it ignores the values in semantic.json it and runs the standard installation prompts with the standard defaults. Should this be a separate issue btw? |
@vikeri Make sure the It should be able to detect the files and update them instead of triggering install. |
The I had the impression that the only files I had to change to make my own theme were those in {
"base": "lib-semantic/", // In my .gitignore and thus would like the install to create it
"paths": {
"source": {
"config": "src/theme.config",
"definitions": "src/definitions/",
"site": "../src/site/", // In git since that is where I customize my own theme
"themes": "src/themes/"
},
"output": {
"packaged": "dist/",
"uncompressed": "dist/components/",
"compressed": "dist/components/",
"themes": "dist/themes/"
},
"clean": "dist/"
},
"permission": false,
"rtl": false,
"version": "1.9.1"
} |
The new build tools no longer have issues with overwrites, there's a manual upgrade script baked in for npm. This will only update if the installed version is different than the version in |
I use semantic as a bower component in my frontend source folder, thus locating it in
bower_components
After upgrading to 1.0 I decided to modify a few things with the help of the site.variables file located in src/site/globals. I did this and successfully built my own semantic.css with
gulp build
.Then when updating semantic to 1.0.1 with
bower update
it deleted my semantic.json, theme.less files along with the site folder. Not too happy with this. I can restore the files through git but for future updates of semantic I would like to know how my customization should be done so that it will not be overwritten.The text was updated successfully, but these errors were encountered: