File tree Expand file tree Collapse file tree 8 files changed +274
-1099
lines changed
openlibrary/templates/site Expand file tree Collapse file tree 8 files changed +274
-1099
lines changed Original file line number Diff line number Diff line change 1717tasks :
1818- name : watch
1919 # This task watches for changes to JS/CSS files and automatically builds
20- init : gp sync-await docker-up && docker compose run --rm home npx concurrently npm: watch npm:watch-css
20+ init : gp sync-await docker-up && docker compose run --rm home npm run watch
2121- name : Start App
2222 before : |
2323 # run chown because https://github.com/gitpod-io/gitpod/issues/4851
Original file line number Diff line number Diff line change @@ -13,14 +13,14 @@ OSP_DUMP_LOCATION=/solr-updater-data/osp_totals.db
1313
1414all : git css js components i18n
1515
16- css : static/css/page- * .less
16+ css :
1717 mkdir -p $(BUILD )
18- parallel --verbose -q npx lessc {} $( BUILD ) /{/.} .css --clean-css= " --s1 --advanced " ::: $^
18+ NODE_ENV=production npx webpack --config webpack.config .css.js
1919
2020js :
2121 mkdir -p $(BUILD )
2222 rm -f $(BUILD ) /* .js $(BUILD ) /* .js.map
23- npm run build-assets: webpack
23+ NODE_ENV=production npx webpack
2424 # This adds FSF licensing for AGPLv3 to our js (for librejs)
2525 for js in $( BUILD) /* .js; do \
2626 echo " // @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3.0" | cat - $$ js > /tmp/js && mv /tmp/js $$ js; \
Original file line number Diff line number Diff line change 6565 "maxSize" : " 130KB"
6666 },
6767 {
68- "path" : " static/build/page-admin.css" ,
68+ "path" : " static/build/css/ page-admin.css" ,
6969 "maxSize" : " 26KB"
7070
7171 },
7272 {
73- "path" : " static/build/page-book.css" ,
73+ "path" : " static/build/css/ page-book.css" ,
7474 "maxSize" : " 15KB"
7575 },
7676 {
77- "path" : " static/build/page-edit.css" ,
77+ "path" : " static/build/css/ page-edit.css" ,
7878 "maxSize" : " 26KB"
7979 },
8080 {
81- "path" : " static/build/page-form.css" ,
81+ "path" : " static/build/css/ page-form.css" ,
8282 "maxSize" : " 26KB"
8383 },
8484 {
85- "path" : " static/build/page-home.css" ,
85+ "path" : " static/build/css/ page-home.css" ,
8686 "maxSize" : " 8KB"
8787 },
8888 {
89- "path" : " static/build/page-plain.css" ,
89+ "path" : " static/build/css/ page-plain.css" ,
9090 "maxSize" : " 26KB"
9191 },
9292 {
93- "path" : " static/build/page-subject.css" ,
93+ "path" : " static/build/css/ page-subject.css" ,
9494 "maxSize" : " 9.2KB"
9595 },
9696 {
97- "path" : " static/build/page-user.css" ,
97+ "path" : " static/build/css/ page-user.css" ,
9898 "maxSize" : " 30KB"
9999 }
100100 ]
Original file line number Diff line number Diff line change 2929 < link href ="/static/images/openlibrary-180x180.png " rel ="apple-touch-icon " sizes ="180x180 " />
3030 < link href ="/static/images/openlibrary-192x192.png " rel ="icon " sizes ="192x192 " />
3131 < link href ="/static/images/openlibrary-128x128.png " rel ="icon " sizes ="128x128 " />
32- $ style = 'build/page-%s.css'%ctx.get('cssfile', 'user')
32+ $ style = 'build/css/ page-%s.css'%ctx.get('cssfile', 'user')
3333 < link href ="$static_url(style) " rel ="stylesheet " type ="text/css " />
3434
3535 < noscript >
8181
8282 </ script >
8383 $if "dev" in ctx.features:
84- < link href ="$static_url('build/page-dev.css') " rel ="stylesheet " type ="text/css "/>
84+ < link href ="$static_url('build/css/ page-dev.css') " rel ="stylesheet " type ="text/css "/>
8585
8686 < meta name ="google-site-verification " content ="KrqcZD4l5BLNVyjzSi2sjZBiwgmkJ1W7n6w7ThD7A74 " />
8787 < meta name ="google-site-verification " content ="vtXGm8q3UgP-f6qXTvQBo85uh3nmIYIotVqqdJDpyz4 " />
You can’t perform that action at this time.
0 commit comments