Skip to content

Commit e980bec

Browse files
committed
completely removing bower components from git and instead making it a postinstall script
(mostly for bluemix's benefit)
1 parent 7f611de commit e980bec

22 files changed

+12
-19843
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,4 @@ doc/
1111
examples/static/webpack-bundle.js
1212
examples/node_modules/
1313
dist/*.js
14-
examples/static/bower_components/jquery/external/
15-
examples/static/bower_components/jquery/src/
14+
examples/static/bower_components/

examples/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33
"version": "1.0.0",
44
"description": "Examples showing the IBM Watson Speech Javascript SDK in action.",
55
"scripts": {
6-
"start": "node server.js"
6+
"start": "node server.js",
7+
"postinstall": "bower install"
78
},
9+
"cacheDirectories": ["node_modules", "static/bower_components"],
810
"dependencies": {
11+
"bower": "^1.8.0",
912
"defaults": "^1.0.3",
1013
"dotenv": "^4.0.0",
1114
"express": "^4.13.3",

examples/readme.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ Prerequisite
1212

1313
* IBM Watson Speech to Text service credentials - see http://www.ibm.com/watson/developercloud/doc/getting_started/gs-credentials.shtml
1414
* Node.js OR Python
15+
* [Bower](https://bower.io/) for installing client-side dependencies
1516

1617

1718
Setup - Node.js
1819
---------------
1920

20-
1. `cd` into the `examples/` directory and run `npm install` to grab dependencies
21+
1. `cd` into the `examples/` directory and run `npm install` to grab dependencies (this automatically runs `bower install`)
2122
2. edit `tts-token.js` and `stt-token.js` to include your service credentials (or create a `.env` file)
2223
3. run `npm start`
2324
4. Open your browser to http://localhost:3000/ to see the examples.
@@ -26,10 +27,11 @@ Setup - Node.js
2627
Setup - Python
2728
--------------
2829

29-
1. `cd` into the `examples/` directory and run `pip install watson_developer_cloud flask` (or `easy_install...`) to grab dependencies
30-
2. edit `server.py` to include your service credentials (or create a `.env` file)
31-
3. run `python server.py`
32-
4. Open your browser to http://localhost:5000/ to see the examples.
30+
1. `cd` into the `examples/` directory and run `pip install watson_developer_cloud flask` (or `easy_install...`) to install python dependencies
31+
2. run `bower install` to install client-side dependencies
32+
3. edit `server.py` to include your service credentials (or create a `.env` file)
33+
4. run `python server.py`
34+
5. Open your browser to http://localhost:5000/ to see the examples.
3335

3436

3537
Notes

examples/static/bower_components/fetch/.bower.json

Lines changed: 0 additions & 24 deletions
This file was deleted.

examples/static/bower_components/fetch/LICENSE

Lines changed: 0 additions & 20 deletions
This file was deleted.

examples/static/bower_components/fetch/bower.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)