Skip to content

Commit

Permalink
bower removes
Browse files Browse the repository at this point in the history
  • Loading branch information
di.smirnov committed Apr 18, 2022
1 parent 3cc16a5 commit 6aabcc5
Show file tree
Hide file tree
Showing 42 changed files with 334 additions and 100 deletions.
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
28 changes: 28 additions & 0 deletions 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 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 added font-lato-2-subset/font/LatoLatin-Bold.eot
Binary file not shown.
Binary file added font-lato-2-subset/font/LatoLatin-Bold.ttf
Binary file not shown.
Binary file added font-lato-2-subset/font/LatoLatin-Bold.woff
Binary file not shown.
11 changes: 11 additions & 0 deletions 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 added font-lato-2-subset/font/LatoLatin-Regular.eot
Binary file not shown.
Binary file added font-lato-2-subset/font/LatoLatin-Regular.ttf
Binary file not shown.
Binary file added font-lato-2-subset/font/LatoLatin-Regular.woff
Binary file not shown.
11 changes: 11 additions & 0 deletions font-lato-2-subset/font/LatoLatinHair-Regular.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/* Webfont: LatoLatinHair-Regular */@font-face {
font-family: 'LatoLatinHair';
src: url('LatoLatinHair-Regular.eot'); /* IE9 Compat Modes */
src: url('LatoLatinHair-Regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('LatoLatinHair-Regular.woff') format('woff'), /* Modern Browsers */
url('LatoLatinHair-Regular.ttf') format('truetype');
font-style: normal;
font-weight: normal;
text-rendering: optimizeLegibility;
}

Binary file added font-lato-2-subset/font/LatoLatinHair-Regular.eot
Binary file not shown.
Binary file not shown.
Binary file not shown.
11 changes: 11 additions & 0 deletions font-lato-2-subset/font/LatoLatinLight-Regular.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/* Webfont: LatoLatinLight-Regular */@font-face {
font-family: 'LatoLatinLight';
src: url('LatoLatinLight-Regular.eot'); /* IE9 Compat Modes */
src: url('LatoLatinLight-Regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('LatoLatinLight-Regular.woff') format('woff'), /* Modern Browsers */
url('LatoLatinLight-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.
8 changes: 8 additions & 0 deletions font-lato-2-subset/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "font-lato-2-subset",
"version": "0.4.0",
"homepage": "https://github.com/gunta/font-lato-2-subset",
"description": "A subset of the font Lato 2",
"main": "css/font-lato-2.css",
"license": "SIL OPEN FONT LICENSE"
}
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('please-update-dependencies')(module)
require('./')
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
Loading

0 comments on commit 6aabcc5

Please sign in to comment.