为什么 wiredep 不断删除我的 Bower 组件?
Why does wiredep keep removing my bower component?
每当 wiredep g运行t 任务 运行s 时,它都会删除 socketio。
~/.g/p/g/g/s/b/f/brody % git diff
diff --git a/app/app/index.html b/app/app/index.html
index 9abc970..f9dd603 100644
--- a/app/app/index.html
+++ b/app/app/index.html
@@ -65,7 +65,6 @@
<!-- build:js(.) scripts/vendor.js -->
<!-- bower:js -->
<script src="bower_components/jquery/dist/jquery.js"></script>
- <script src="bower_components/socket.io-client/socket.io.js"></script>
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.js"></script>
<script src="bower_components/angular-animate/angular-animate.js"></script>
diff --git a/app/test/karma.conf.js b/app/test/karma.conf.js
index 710f26a..ab51cc6 100644
--- a/app/test/karma.conf.js
+++ b/app/test/karma.conf.js
@@ -20,7 +20,6 @@ module.exports = function(config) {
files: [
// bower:js
'bower_components/jquery/dist/jquery.js',
- 'bower_components/socket.io-client/socket.io.js',
'bower_components/angular/angular.js',
'bower_components/bootstrap/dist/js/bootstrap.js',
'bower_components/angular-animate/angular-animate.js',
~/.g/p/g/g/s/b/f/brody %
我已经通过
安装了 socketio
bower install socket.io-client --save
包裹在我的bower.json
{
"name": "app",
"version": "0.0.0",
"dependencies": {
"socket.io-client": "~1.3.4",
"angular": "^1.3.0",
"bootstrap": "^3.2.0",
"angular-animate": "^1.3.0",
"angular-aria": "^1.3.0",
"angular-cookies": "^1.3.0",
"angular-messages": "^1.3.0",
"angular-resource": "^1.3.0",
"angular-route": "^1.3.0",
"angular-sanitize": "^1.3.0",
"angular-touch": "^1.3.0",
"angular-socket-io": "~0.7.0",
"message-center": "https://github.com/mateu-aguilo-bosch/message-center.git#~1.1.4"
},
"devDependencies": {
"angular-mocks": "^1.3.0"
},
"appPath": "app",
"moduleName": "appApp"
}
当我 运行 bower install
什么都没有改变。
该应用程序在我的 mac 上构建良好,但出于某些疯狂的原因,它一直在删除 socketio 并且无法在我的 ubuntu machine 上构建。
Searching for socket.io-client
on bower 生成一个名为 sio-client
的包,但没有任何名为 socket.io-client
.
的包
尝试:
"sio-client": "~1.3.4"
在你的 bower.json 中,它应该会变直。
每当 wiredep g运行t 任务 运行s 时,它都会删除 socketio。
~/.g/p/g/g/s/b/f/brody % git diff
diff --git a/app/app/index.html b/app/app/index.html
index 9abc970..f9dd603 100644
--- a/app/app/index.html
+++ b/app/app/index.html
@@ -65,7 +65,6 @@
<!-- build:js(.) scripts/vendor.js -->
<!-- bower:js -->
<script src="bower_components/jquery/dist/jquery.js"></script>
- <script src="bower_components/socket.io-client/socket.io.js"></script>
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.js"></script>
<script src="bower_components/angular-animate/angular-animate.js"></script>
diff --git a/app/test/karma.conf.js b/app/test/karma.conf.js
index 710f26a..ab51cc6 100644
--- a/app/test/karma.conf.js
+++ b/app/test/karma.conf.js
@@ -20,7 +20,6 @@ module.exports = function(config) {
files: [
// bower:js
'bower_components/jquery/dist/jquery.js',
- 'bower_components/socket.io-client/socket.io.js',
'bower_components/angular/angular.js',
'bower_components/bootstrap/dist/js/bootstrap.js',
'bower_components/angular-animate/angular-animate.js',
~/.g/p/g/g/s/b/f/brody %
我已经通过
安装了 socketiobower install socket.io-client --save
包裹在我的bower.json
{
"name": "app",
"version": "0.0.0",
"dependencies": {
"socket.io-client": "~1.3.4",
"angular": "^1.3.0",
"bootstrap": "^3.2.0",
"angular-animate": "^1.3.0",
"angular-aria": "^1.3.0",
"angular-cookies": "^1.3.0",
"angular-messages": "^1.3.0",
"angular-resource": "^1.3.0",
"angular-route": "^1.3.0",
"angular-sanitize": "^1.3.0",
"angular-touch": "^1.3.0",
"angular-socket-io": "~0.7.0",
"message-center": "https://github.com/mateu-aguilo-bosch/message-center.git#~1.1.4"
},
"devDependencies": {
"angular-mocks": "^1.3.0"
},
"appPath": "app",
"moduleName": "appApp"
}
当我 运行 bower install
什么都没有改变。
该应用程序在我的 mac 上构建良好,但出于某些疯狂的原因,它一直在删除 socketio 并且无法在我的 ubuntu machine 上构建。
Searching for socket.io-client
on bower 生成一个名为 sio-client
的包,但没有任何名为 socket.io-client
.
尝试:
"sio-client": "~1.3.4"
在你的 bower.json 中,它应该会变直。