Skip to content
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

Move Bower dependencies to npm #510

Open
wants to merge 81 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
6443ea4
bower removes
Apr 18, 2022
8f4c954
version up
Apr 18, 2022
c7c7f9c
remove commented line
Apr 19, 2022
7693003
review fixes part 1
Apr 19, 2022
166c57d
move packages to res
Apr 19, 2022
da12151
fix eslint
Apr 19, 2022
7151d77
fix error alert
Apr 20, 2022
b7fe079
workaround for bug in lib
Apr 20, 2022
8ef6fb0
Merge branch 'master' into master
DaniilSmirnov Apr 20, 2022
6a4cca6
update master
May 10, 2022
2ad317a
Merge branch 'DeviceFarmer-master'
May 10, 2022
2d01f00
fix yarn.lock
May 10, 2022
72321c9
upgrade node to latest version v17.9.0 (#500)
denis99999 Apr 12, 2022
2cbae3e
update semaphore files for consistency with upgrading nodejs to lates…
denis99999 Apr 14, 2022
275107f
bower removes
Apr 18, 2022
3bffed9
version up
Apr 18, 2022
8ccd6f5
remove commented line
Apr 19, 2022
cd713d8
review fixes part 1
Apr 19, 2022
3d5f41f
move packages to res
Apr 19, 2022
8466cef
fix eslint
Apr 19, 2022
6915a25
fix error alert
Apr 20, 2022
83f8b2d
workaround for bug in lib
Apr 20, 2022
87b2e96
Merge branch 'master' into master
DaniilSmirnov May 10, 2022
fcc2cdf
fix yarn.lock
May 10, 2022
ddf4beb
update master
May 10, 2022
f848a8d
Merge remote-tracking branch 'origin/master'
May 10, 2022
2b9a530
fix yarn.lock
May 10, 2022
f3538a0
bower removes
Apr 18, 2022
2a91e6f
move packages to res
Apr 19, 2022
0e38d8a
Fix adbkit API invocations (#524)
koral-- May 5, 2022
0831124
Merge remote-tracking branch 'origin/master'
May 10, 2022
ffa58ad
Fix adbkit API invocations (#524)
koral-- May 5, 2022
2fa5b8c
bower removes
Apr 18, 2022
df32c19
move packages to res
Apr 19, 2022
837d42a
update master
May 10, 2022
8989114
Merge remote-tracking branch 'origin/master'
May 10, 2022
335a1ba
update master
May 10, 2022
7f73f73
bower removes
Apr 18, 2022
f770ba0
move packages to res
Apr 19, 2022
c49e728
update master
May 10, 2022
42c691a
Merge remote-tracking branch 'origin/master'
May 10, 2022
68365de
fix dco
DaniilSmirnov May 10, 2022
e60bcee
Revert "Fix adbkit API invocations (#524)" (#528)
koral-- May 12, 2022
ce5a000
fix bug on screen grabber management (#554)
denis99999 Jul 29, 2022
da9284b
add contributors (#555)
denis99999 Aug 2, 2022
d9e5944
add frame rate management (#558)
denis99999 Aug 3, 2022
da6c786
Update DEPLOYMENT.md (#569)
denis99999 Aug 24, 2022
878171e
fix deprecated warnings on Buffer class (#580)
denis99999 Sep 16, 2022
40757e7
Upload the ipa files for the iOS platform (#583)
mankoffs Sep 20, 2022
0c74b53
fix #592 Fix marketName issue (#593)
jsjs4013 Sep 30, 2022
2a5b1b9
Bump passport from 0.4.1 to 0.6.0 (#581)
dependabot[bot] Oct 9, 2022
e7e0d3b
Fixing the link to get the package swagger-node-runner from ssh to ht…
Energoblock Oct 31, 2022
dd8c186
Update rethinkdb to 2.4.2 in docker compose sample (#611)
koral-- Nov 1, 2022
24c944d
Enable device market name (#601)
MykytaIvshkn Nov 3, 2022
f168b45
move off screen password autofill (#610)
Ristakis Nov 3, 2022
831ee73
Bump moment from 2.29.3 to 2.29.4 (#596)
dependabot[bot] Nov 24, 2022
a146768
Update device-db to 1.3.0 (#619)
koral-- Nov 25, 2022
1d3df08
Bump decode-uri-component from 0.2.0 to 0.2.2 (#622)
dependabot[bot] Dec 6, 2022
856d5f0
bower removes
Apr 18, 2022
b75ebfc
version up
Apr 18, 2022
ffbe511
review fixes part 1
Apr 19, 2022
ec994aa
move packages to res
Apr 19, 2022
587aa26
fix eslint
Apr 19, 2022
0080e90
fix error alert
Apr 20, 2022
f3d61d6
workaround for bug in lib
Apr 20, 2022
d012aab
update master
May 10, 2022
ec6e024
bower removes
Apr 18, 2022
8574a17
move packages to res
Apr 19, 2022
514c051
Fix adbkit API invocations (#524)
koral-- May 5, 2022
bfe9686
bower removes
Apr 18, 2022
62bb46a
move packages to res
Apr 19, 2022
664bc2f
update master
May 10, 2022
6a38c94
bower removes
Apr 18, 2022
35c22fe
move packages to res
Apr 19, 2022
20007b5
update master
May 10, 2022
899df36
bower removes
Apr 18, 2022
41255df
move packages to res
Apr 19, 2022
2c17f46
update master
May 10, 2022
61dbe1e
review fix
Dec 23, 2022
9e88ff0
Merge remote-tracking branch 'origin/master'
Dec 23, 2022
51c0447
resolve confilcts
Dec 23, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .bowerrc

This file was deleted.

1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
.idea/
node_modules/
npm-debug.log
res/bower_components/
res/build/
rethinkdb_data/
temp/
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
/*.tgz
/.env
/node_modules/
/res/bower_components/
/res/build/
/res/test_out/
/rethinkdb_data/
Expand Down
3 changes: 0 additions & 3 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
*.!sync
.DS_Store
/*.tgz
/.bowerrc
/.dockerignore
/.editorconfig
/.env
Expand All @@ -13,12 +12,10 @@
/.python-version
/.travis.yml
/Dockerfile
/bower.json
/component.json
/docker
/gulpfile.js
/npm-debug.log
/res/bower_components/
/res/test/
/res/web_modules/
/rethinkdb_data/
Expand Down
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ RUN set -x && \
npm install --python="/usr/bin/python3" --loglevel http && \
npm pack && \
tar xzf devicefarmer-stf-*.tgz --strip-components 1 -C /app && \
bower cache clean && \
npm prune --production && \
mv node_modules /app && \
rm -rf ~/.node-gyp && \
Expand Down
1 change: 0 additions & 1 deletion Dockerfile-debian-armhf
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
echo '--- Assembling app' && \
echo 'npm pack' | su stf -s /bin/bash && \
tar xzf devicefarmer-stf-*.tgz --strip-components 1 -C /app && \
echo '/tmp/build/node_modules/.bin/bower cache clean' | su stf -s /bin/bash && \
echo 'npm prune --production' | su stf -s /bin/bash && \
mv node_modules /app && \
chown -R root:root /app && \
Expand Down
1 change: 0 additions & 1 deletion Dockerfile-debian-x86_64
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
echo '--- Assembling app' && \
echo 'npm pack' | su stf -s /bin/bash && \
tar xzf devicefarmer-stf-*.tgz --strip-components 1 -C /app && \
echo '/tmp/build/node_modules/.bin/bower cache clean' | su stf -s /bin/bash && \
echo 'npm prune --production' | su stf -s /bin/bash && \
mv node_modules /app && \
chown -R root:root /app && \
Expand Down
49 changes: 0 additions & 49 deletions bower.json

This file was deleted.

1 change: 0 additions & 1 deletion docker/armv7l/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ RUN set -xo pipefail && \
echo 'npm pack' | su stf -s /bin/sh && \
tar -xzf stf-*.tgz && \
mv package /app && \
echo 'bower cache clean' | su stf -s /bin/sh && \
echo 'npm prune --production' | su stf -s /bin/sh && \
mv node_modules /app && \
chown -R root:root /app && \
Expand Down
6 changes: 1 addition & 5 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ var run = require('gulp-run')

gulp.task('jsonlint', function() {
return gulp.src([
'.bowerrc'
, '.yo-rc.json'
'.yo-rc.json'
, '*.json'
], {allowEmpty: true})
.pipe(jsonlint())
Expand All @@ -39,7 +38,6 @@ gulp.task('eslint', function() {
return gulp.src([
'lib/**/*.js'
, 'res/**/*.js'
, '!res/bower_components/**'
, '*.js'
])
// eslint() attaches the lint output to the "eslint" property
Expand Down Expand Up @@ -201,7 +199,6 @@ gulp.task('webpack:others', function(callback) {
gulp.task('pug', function() {
return gulp.src([
'./res/**/*.pug'
, '!./res/bower_components/**'
])
.pipe(pug({
locals: {
Expand All @@ -219,7 +216,6 @@ gulp.task('translate:extract', gulp.series('pug', function() {
return gulp.src([
'./tmp/html/**/*.html'
, './res/**/*.js'
, '!./res/bower_components/**'
, '!./res/build/**'
])
.pipe(gettext.extract('stf.pot'))
Expand Down
2 changes: 1 addition & 1 deletion lib/cli/please.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
require('please-update-dependencies')(module)
require('./')
require('please-update-dependencies')('./package.json')
2 changes: 0 additions & 2 deletions lib/units/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ module.exports = function(options) {
require('./middleware/webpack')(webpackServerConfig))
}

app.use('/static/bower_components',
serveStatic(pathutil.resource('bower_components')))
app.use('/static/app/data', serveStatic(pathutil.resource('data')))
app.use('/static/app/status', serveStatic(pathutil.resource('common/status')))
app.use('/static/app/browsers', browserIconMiddleware())
Expand Down
2 changes: 0 additions & 2 deletions lib/units/auth/ldap.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ module.exports = function(options) {
app.use(bodyParser.json())
app.use(csrf())
app.use(validator())
app.use('/static/bower_components',
serveStatic(pathutil.resource('bower_components')))
app.use('/static/auth/ldap', serveStatic(pathutil.resource('auth/ldap')))

app.use(function(req, res, next) {
Expand Down
2 changes: 0 additions & 2 deletions lib/units/auth/mock.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ module.exports = function(options) {
app.use(bodyParser.json())
app.use(csrf())
app.use(validator())
app.use('/static/bower_components',
serveStatic(pathutil.resource('bower_components')))
app.use('/static/auth/mock', serveStatic(pathutil.resource('auth/mock')))

app.use(function(req, res, next) {
Expand Down
2 changes: 1 addition & 1 deletion lib/units/websocket/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ module.exports = function(options) {
])
}
catch(err) {
//workaround for https://github.com/openstf/stf/issues/1180
// workaround for https://github.com/openstf/stf/issues/1180
log.error('input.touchMove had an error', err.stack)
}
})
Expand Down
35 changes: 32 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@
},
"scripts": {
"test": "gulp test",
"prepare": "bower install && not-in-install && gulp build || in-install"
"prepare": "not-in-install && gulp build || in-install",
"test:unit": "gulp karma",
"test:e2e": "gulp protractor",
"lint": "gulp lint"
},
"dependencies": {
"@devicefarmer/adbkit": "^2.11.3",
Expand All @@ -46,16 +49,34 @@
"@julusian/jpeg-turbo": "^0.5.4",
"@slack/client": "^3.5.4",
"android-device-list": "^1.2.1",
"angular": "1.5.11",
"angular-animate": "1.5.11",
"angular-borderlayout": "https://github.com/filearts/angular-borderlayout#7c9716aebd9260763f798561ca49d6fbfd4a5c67",
"angular-cookies": "1.5.11",
"angular-elastic": "2.5.1",
"angular-gettext": "2.2.1",
"angular-growl-v2": "https://github.com/JanStevens/angular-growl-2#v0.7.9",
"angular-hotkeys": "1.6.0",
"angular-ladda": "0.3.3",
"angular-route": "1.5.11",
"angular-touch": "1.5.11",
"angular-ui-bootstrap": "1.1.2",
"angular-xeditable": "0.1.12",
"aws-sdk": "^2.4.13",
"basic-auth": "^1.0.3",
"bluebird": "^2.10.1",
"body-parser": "^1.13.3",
"bootstrap": "3.3.7",
"bufferutil": "^4.0.3",
"chalk": "~1.1.1",
"components-font-awesome": "4.7.0",
"compression": "^1.5.2",
"cookie-session": "^2.0.0-alpha.1",
"csurf": "^1.7.0",
"d3": "3.5.17",
"debug": "^2.2.0",
"draggabilly": "1.2.4",
"epoch-charting": "0.8.4",
"eventemitter3": "^1.2.0",
"express": "^4.14.0",
"express-validator": "^2.20.8",
Expand All @@ -72,7 +93,12 @@
"mime": "^1.3.4",
"minimatch": "^3.0.3",
"my-local-ip": "^1.0.0",
"ng-context-menu": "https://github.com/swimlane/ng-context-menu#93d825d981dc6f49bcaa861ef5a87fa9d1923f34",
"ng-file-upload": "2.2.2",
"ng-table": "1.0.0",
"oboe": "2.1.5",
"openid": "^2.0.1",
"packery": "1.4.3",
"passport": "^0.4.1",
"passport-oauth2": "^1.1.2",
"passport-saml": "^0.15.0",
Expand All @@ -93,6 +119,7 @@
"swagger-tools": "^0.10.4",
"temp": "^0.8.1",
"transliteration": "^2.2.0",
"underscore.string": "3.2.3",
"url-join": "1.1.0",
"utf-8-validate": "^5.0.0",
"uuid": "^3.0.0",
Expand All @@ -102,8 +129,8 @@
"zeromq": "^5.0.0"
DaniilSmirnov marked this conversation as resolved.
Show resolved Hide resolved
},
"devDependencies": {
"angular-mocks": "1.5.11",
"async": "^2.0.1",
"bower": "^1.8.8",
"chai": "^3.4.1",
"css-loader": "^0.28.11",
"del": "^2.0.1",
Expand All @@ -112,6 +139,7 @@
"exports-loader": "^0.7.0",
"file-loader": "^0.9.0",
"fs-extra": "^8.1.0",
"grunt": "^0.4.0",
"gulp": "^4.0.2",
"gulp-angular-gettext": "^2.1.0",
"gulp-eslint": "^4.0.2",
Expand Down Expand Up @@ -158,7 +186,8 @@
"webpack-dev-server": "^2.11.5"
},
"engines": {
"node": ">= 6.9"
"node": ">= 12",
DaniilSmirnov marked this conversation as resolved.
Show resolved Hide resolved
"npm": ">=8.5.5"
},
"externalDependencies": {
"rethinkdb": ">= 2.2",
Expand Down
6 changes: 3 additions & 3 deletions res/app/control-panes/advanced/run-js/run-js.pug
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
button(ng-click='saveDialog()', ng-disabled='!snippet.editorText').btn.btn-sm.btn-default-outline
i.fa.fa-save
span(translate) Save...
button(type='button',
ng-disabled='!hasSnippets()').btn.btn-sm.btn-default-outline.uib-dropdown-toggle
button(type='button', uib-dropdown-toggle,
ng-disabled='!hasSnippets()').btn.btn-sm.btn-default-outline
span.caret
ul.uib-dropdown-menu.pull-right
ul(uib-dropdown-menu).pull-right
li(ng-repeat='snip in snippets')
a(ng-click='openSnippet(snip)').btn-link {{snip.name}}
li.divider
Expand Down
5 changes: 3 additions & 2 deletions res/app/control-panes/dashboard/install/install.pug
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
span(ng-if='!showManifest') Show Manifest
pre.manifest-text(ng-if='showManifest') {{ installation.manifest | json }}

alert(type='danger', close='clear()', ng-if='installation.error')
.alert.alert-danger.alert-dismissible(role="alert", ng-if='installation.error')
strong(translate) Oops!
|  
.button.close(type="button", data-dismiss="alert" aria-label="Close")
span(aria-hidden="true") ×
span {{ installation.error | installError | translate }} ({{ installation.error }})
2 changes: 1 addition & 1 deletion res/app/device-list/device-list.pug
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
i.fa.fa-columns
span(ng-bind='"Customize"|translate')

ul.uib-dropdown-menu(role='menu').pointer.stf-device-details-customize
ul(uib-dropdown-menu, role='menu').pointer.stf-device-details-customize
li(ng-repeat='column in columns track by column.name',
ng-hide='!adminMode && columnDefinitions[column.name].admin',
ng-click='$event.stopPropagation()')
Expand Down
2 changes: 1 addition & 1 deletion res/app/settings/general/local/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require('angular-bootstrap')
require('angular-ui-bootstrap')

module.exports = angular.module('ui-local-settings', [
require('stf/settings').name,
Expand Down
4 changes: 2 additions & 2 deletions res/web_modules/epoch/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require('jquery')

require('d3')
require('epoch/dist/css/epoch.min.css')
require('epoch/dist/js/epoch.min.js')
require('epoch-charting/dist/css/epoch.min.css')
require('epoch-charting/dist/js/epoch.min.js')
require('ng-epoch')

module.exports = {
Expand Down
28 changes: 28 additions & 0 deletions res/web_modules/font-lato-2-subset/css/font-lato-2.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
@font-face {
font-family: 'Lato';
font-style: normal;
font-weight: 100;
src: local('Lato Hair'), local('Lato-Hair'), url(../font/LatoLatinHair-Regular.woff) format('woff');
text-rendering: optimizeLegibility;
}
@font-face {
font-family: 'Lato';
font-style: normal;
font-weight: 300;
src: local('Lato Light'), local('Lato-Light'), url(../font/LatoLatinLight-Regular.woff) format('woff');
text-rendering: optimizeLegibility;
}
@font-face {
font-family: 'Lato';
font-style: normal;
font-weight: 400;
src: local('Lato Regular'), local('Lato-Regular'), url(../font/LatoLatin-Regular.woff) format('woff');
text-rendering: optimizeLegibility;
}
@font-face {
font-family: 'Lato';
font-style: normal;
font-weight: 700;
src: local('Lato Bold'), local('Lato-Bold'), url(../font/LatoLatin-Bold.woff) format('woff');
text-rendering: optimizeLegibility;
}
11 changes: 11 additions & 0 deletions res/web_modules/font-lato-2-subset/font/LatoLatin-Bold.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/* Webfont: LatoLatin-Bold */@font-face {
font-family: 'LatoLatin';
src: url('LatoLatin-Bold.eot'); /* IE9 Compat Modes */
src: url('LatoLatin-Bold.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('LatoLatin-Bold.woff') format('woff'), /* Modern Browsers */
url('LatoLatin-Bold.ttf') format('truetype');
font-style: normal;
font-weight: bold;
text-rendering: optimizeLegibility;
}

Binary file not shown.
Binary file not shown.
Binary file not shown.
11 changes: 11 additions & 0 deletions res/web_modules/font-lato-2-subset/font/LatoLatin-Regular.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/* Webfont: LatoLatin-Regular */@font-face {
font-family: 'LatoLatin';
src: url('LatoLatin-Regular.eot'); /* IE9 Compat Modes */
src: url('LatoLatin-Regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('LatoLatin-Regular.woff') format('woff'), /* Modern Browsers */
url('LatoLatin-Regular.ttf') format('truetype');
font-style: normal;
font-weight: normal;
text-rendering: optimizeLegibility;
}

Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading