bower

bower install take repo, not specific files in main

匆匆过客 提交于 2019-12-05 17:59:06
I am trying to install some js files via bower. My repo has a bower.json with a main property, however the whole repo gets installed to components/, not just the files in the dist/custom/ dir. Here is what my bower.rc looks like { "name": "jquery-m", "version": "2.0.2mup", "description": "Meetup custom build of jQuery 2.0, used on mobile", "main": [ "./dist/custom/" ], "license": "MIT" } Is this the way bower is supposed to work? I thought it was possible just to specify certain files with your main property. Yes, this is how Bower is meant to work. Bower-installer looks like a more

npm安装bower时报错 我已解决

依然范特西╮ 提交于 2019-12-05 17:53:45
错误代码: npm ERR! Windows_NT 6.1.7601 npm ERR! argv "E:\\node\\\\node.exe" "E:\\node\\node_modules\\npm\\bin\\npm-cli.js" "install" npm ERR! node v0.12.0 npm ERR! npm v2.5.1 npm ERR! code ECONNRESET npm ERR! network tunneling socket could not be established, cause=connect ECONNREFUSED npm ERR! network This is most likely not a problem with npm itself npm ERR! network and is related to network connectivity. npm ERR! network In most cases you are behind a proxy or have bad network settings. npm ERR! network npm ERR! network If you are behind a proxy, please make sure that the npm ERR! network

Filter (include/exclude) files for Bower dependency

柔情痞子 提交于 2019-12-05 17:39:03
问题 I am trying to use Bower to manage client side dependencies from a Java/JSP server side application. It works and I can access client side libraries resolved via "bower install" as described in bower.json. However, lots of unnecessary files are added to "bower_components" as declared by the dependencies used (tests, docs, examples, etc). Q: Can I manually specify filters to include/exclude files from each dependency I declare in bower.json? If this is not possible, it sounds like i need to

「前端」Web应用如何让手机屏幕常亮?

穿精又带淫゛_ 提交于 2019-12-05 15:02:16
近来随着前端技术的发展,HTML5应用又看见了春天。很多以前深耕于PC端的WEB开发者,慢慢也开始转战移动端。虽然在PC端他们已身经百战,但是在移动端碰到的问题仍不少,因为WEB网络永远不会提供像本地移动平台一样多的API或控制。经管如此,但我们的用户仍然期望有相同的优秀体验。 在WEB端创建HTML5游戏和大型媒体应用程序是非常困难的,因为您不能忽视平台本身的限制。其中一个值得注意的小功能就是防止用户未激活时设备进入休眠状态。 想象一下,如果你的用户玩一款不需要太多互动的游戏,体验一个VR演示,甚至只是一个博客文章或幻灯片,屏幕突然变黑,这体验该多糟糕。 NoSleep.js一个wakelock小工具,它可以防止浏览器和设备进入睡眠状态!它在Android端和IOS端都适用。 下载 使用Bower命令,可以执行如下命令: bower install nosleep 使用npm,可以执行如下命令: npm install nosleep.js 或者,您可以手动添加NoSleep.js到您的项目 使用 使用NoSleep.js非常简单,只需要在需要控制的地方添加如下代码: 一旦你想放弃睡眠控制,只需调用禁用方法即可,如下: 原理 知道怎么使用NoSleep.js来阻止手机屏幕进入睡眠状态了,那你知道它的原理是什么吗?下面我来给你一一道来。 我们知道手机浏览器在播放视频的时候

Visual Studio 2015 RTM - Where did bower_components go?

此生再无相见时 提交于 2019-12-05 14:18:52
It looks like with Visual Studio 2015 RTM, the bower_components folder is gone and packages are saving directly to the wwwroot/lib/ folder. This would be verified by the fact that the default gulpfile no longer has a function for copying files from bower_components to wwwroot. However in the default project.json, bower_components is still in the "exclude" property even though the folder no longer exists. Possibly an oversight? Does anyone know what is going on with this? I didn't see anything about it in the release notes or the bug fixes and known issues articles. Also, I thought the entire

Bower - error when installing package “Arguments to path.join must be strings”

好久不见. 提交于 2019-12-05 12:52:44
问题 I just created a node project and am trying to install jquery using bower. bower install jquery I get the following error: bower jquery#* not-cached git://github.com/jquery/jquery.git#* bower jquery#* resolve git://github.com/jquery/jquery.git#* bower jquery#* error Arguments to path.join must be strings Stack trace: TypeError: Arguments to path.join must be strings at f (path.js:204:15) at Object.filter (native) at Object.exports.join (path.js:209:40) at GitHubResolver._checkout (C:\Users

How to get the Rhino edition of Less v.2.0.0 using bower as a package manager

北战南征 提交于 2019-12-05 12:44:08
I'm using the Rhino edition of less.js, extracted to my devlopment environment using bower. Under 1.7.5 everything worked fine, bower would get all the different editions, both Node and Rhino editions would be stored in my environment. With the recent update to 2.0.0 it would seem that only the Node versions are included. Is there some way to get bower to extract the Rhino edition? I can of-course download it manually, but then I would have to manually maintain that reference. Keeping track of new versions is one of my main reasons for using a package manager. Bass Jobsen Well from the

Gulp Copying Files from one Directory to another

不羁岁月 提交于 2019-12-05 10:27:40
问题 I want to Gulp Copy Multiple Files gulp.task('copy', function(){ gulp.src( 'bower_components/bootstrap/dist/js/bootstrap.js', 'bower_components/jquery/dist/jquery.min.js', 'bower_components/jquery.stellar/src/jquery.stellar.js', 'bower_components/jquery-waypoints/waypoints.js', 'bower_components/jquery-easing-original/jquery.easing.1.3.js') .pipe(gulp.dest('public/assets/js')); }); To copy my files from my bower_components directory to my assets directory, but it is only working with the

Node.js相关

六月ゝ 毕业季﹏ 提交于 2019-12-05 08:59:04
移动前端资源整理 http://ionichina.com/topic/570b1f4ecd63e4247a7cfcf3 Node.js API 中文版 http://nodeapi.ucdok.com/#/api/ Node.js 中文网 http://nodejs.cn/ Node.js 英文网 https://nodejs.org/en/ NPM https://www.npmjs.com/ Express中文网 http://www.expressjs.com.cn/ Express英文网 http://expressjs.com/ ejs模板引擎 https://www.npmjs.com/package/ejs jade模板引擎 https://www.npmjs.com/package/jade Jade - Template Engine http://jade-lang.com/ CNode:Node.js专业中文社区 https://cnodejs.org/ Bower https://bower.io/ bower是什么 http://dagaiwan.com/207.html @i5ting 的个人主页 - CNode技术社区 https://cnodejs.org/user/i5ting 狼叔:如何正确的学习Node.js https://github

how to include ngAnimate dependency in angular with yeoman

怎甘沉沦 提交于 2019-12-05 08:01:34
I am create an angular application using the combination of yeoman, gruntjs and bower. I installed my angular app with yo angular myapp and then added few dependencies with bower and finally I would run grunt server and start working. Only when I try to add the ng-animate dependency, I get into problems. This dependency gets downloaded but its scripting tag does not get added into index.html and the required reference does not get added into the karma.conf.js file. I have tried to add these two references manually: in the index.html <script src="bower_components/angular-animate/angular-animate