-
Notifications
You must be signed in to change notification settings - Fork 218
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
Bower support #39
Comments
I'll get this done, @brunowego |
@JedWatson could you please create a repo Here is a slightly modified script to automate bower publishing. There must be a bower.json in that repo (I'll create one). ORG="elementalui"
NAME=$(echo 'console.log(require("./package.json").name)' | node)
REPO="$NAME-dist"
DESC=$(echo 'console.log(require("./package.json").description)' | node)
HOMEPAGE=$(echo 'console.log(require("./package.json").homepage)' | node)
VERSION=$(echo 'console.log(require("./package.json").version)' | node)
# Run only once to create repo (need github.token locally)
curl -i -X POST https://api.github.com/orgs/$ORG/repos -H "Authorization: token `cat github.token`" \
--data '{"name":"$REPO","description":"$DESC","homepage":"$HOMEPAGE","private":false,"has_issues":true,"has_wiki":false,"has_downloads":false}'
# Then push there a bower.json
# Run every time to publish a new version
pushd .
rm -rf /tmp/dist
git clone git@github.com:$ORG/$REPO.git /tmp/dist
npm run build
cp -f ./dist/* /tmp/dist
cd /tmp/dist
git add .
git commit -m "Release"
bower version $VERSION
git push && git push --tags
popd .
# Run only once to publish
bower register $NAME https://github.com/$ORG/$REPO.git |
As soon as I test this script manually, I'll add it to npm scripts. |
@nkbt I've created the repo and made you an admin, go for it 👍 |
Thanks 👍
|
@nkbt I've just released a new version, could you update the publish npm script (or add a |
@JedWatson I'd wait a little bit more on this.
If you think |
Very sorry so much time passed :(. Little update: I'm pretty close. I wrote some shell scripts and tested on multiple projects - all seems working fine. My next task is to port them to JS, so bower publishing is windows-compatible + more testing. That should not take much time. It is going to be a fairly simple CLI tool. If you are interested, see work in progress/join https://github.com/bower-registry/bower-registry |
I have downloaded and installed npm, webpack, browserify, bower, GIT onto my machine. |
@topgun743 the easiest way would be to clone the repo an run |
so
|
I created a PR #84 with bower auto-publish script So now as soon as we publish on npm, we should run Script is fairly simple, though I still want to make it cross-platform JS-only. For now I could not figure out why I guess we need to update README with Bower instructions:
Version 0.5.3 is published |
Did this
Took following files from dist folder: Added these two files to my HTML page header. Executed the page but still it is complaining something like "module classnames not loaded yet". I guess full js output (independent of any dependency) is still not coming. |
That actually looks like a bug. Classnames is in dependencies and I believe it should be included into a build. |
|
@topgun743 can you open another issue for this one? Sort of |
Bower support, fixes elementalui#39 git-svn-id: https://github.com/elementalui/elemental.git@616 773dd515-ab26-cda1-e266-ce57b7db7bff
Bower is popular and easy to use. To install elemental using bower try: bower install elementalui
The text was updated successfully, but these errors were encountered: