Граф коммитов

95 Коммитов

Автор SHA1 Сообщение Дата
Matjaž Horvat 2e53adffb5
Remove script to create source repos for Thunderbird and Seamonkey (#3287) 2024-07-30 21:01:15 +02:00
Eemeli Aro 3a33989d1a
Drop bin/mozilla-en-US.py (#3218) 2024-05-14 15:17:35 +02:00
Matjaž Horvat bf27e92f0d
Add script to generate source-only repos for Thunderbird and Seamonkey (#2656)
This script uses https://hg.mozilla.org/projects/comm-l10n/ repository to create repositories with source strings only for Thunderbird and Seamonkey.

It's a standalone script, rather than being included in mozilla-en-US.py, because the latter will be obsolete and removed soon.

Co-authored-by: Francesco Lodolo <flodolo@mozilla.com>
2022-11-09 12:44:48 +01:00
Eemeli Aro 9fc9430cc7
Refactor the frontend build (#2437)
* feat!(frontend): Drop react-scripts

* chore(frontend): Add missing dependency on escape-html

* refactor(frontend): Use ~ to prefix paths from src/ root

* chore(frontend): Add & configure jest & ts-jest

* chore(frontend): Fix bugs & tests revealed by updated jest, skipping EntityDetails

* chore(frontend): Add ESLint as explicit dev dependency; satisfy linter

* chore(frontend): Clean up dependencies, using caret ^ range for all

* chore(frontend): Switch from yarn to npm & configure as a workspace

Prettier & ESLint dependencies are now defined in the root package.json

Changing package management means that many path & minor updates are
simultaneously applied via the caret ^ ranges.

The local/pontoon-frontend Docker image now uses node:16 as a base
and /app/frontend rather than /frontend for its contents & workdir,
in order to accommodate the changed topography.

* chore: Collect devDependencies in root package.json

* chore(tag-admin): Move Babel config to repo root

* feat(frontend): Adjust public/ for being served as Django static files

* chore(frontend): Add build with Rollup

* feat(pontoon): Drop frontend proxy, server static files normally, add pipeline for frontend

* chore(server): Add dependencies via pontoon/package.json; clean up Dockerfile

* chore: Add build:prod targets for frontend & tag-admin

frontend image droapped from Dockerfile as unused

styled-components updated to v5 to avoid a broken import in v4.

* chore: Add watch targets for workspaces & root, using concurrently

* chore: Code review & CI-identified fixes

* chore: Refresh lockfiles, dropping frontend/yaml.lock

* chore: Add /bin/watch.sh to watch all builds; refactor `make run`

* ci: Fix frontend TS test CLI args due to yarn -> npm change

* chore: Use `npm start` rather than `npm run watch`

* chore(pontoon): Mark django-pipeline JS dependencies as devDependencies

* refactor: Rename frontend/ as translate/
2022-03-02 16:10:42 +01:00
Eemeli Aro d26c91487e
Handle the `tags/admin/` client as an npm workspace at `/tag-admin/` (#2430)
* Move tag-admin sources & tests to /tag-admin/src/

Import paths are modified to use relative, fully qualified file names.

* Configure tag-admin as an npm workspace

* Fix build & CI issues

Consistently call 'npm ci' and 'npm run build' where appropriate

* Apply lint & style rules to tag-admin/webpack.config.js

* Fix permissions for /tag-admin/ in Dockerfile

* ci: Rename "non-frontend-js" action as "tag-admin"

* docs(tag-admin): Add README
2022-02-16 16:47:32 +02:00
Eemeli Aro c7c8a297fe
fix(frontend): Use yarn instead of npm for install on Heroku (#2335) 2021-10-19 15:35:24 +02:00
Matjaž Horvat 88cb23af5f
Remove unused legacy scripts (#1787)
Move to https://github.com/mathjazz/pontoon-scripts/
2020-12-23 11:57:45 +01:00
Philipp Fischbeck 5084c1cf97
Fix bug 1680536: Use pip-compile for Python dependencies (#1766)
All direct dependencies are now in requirements/*.in files, and the requirements/*.txt files are generated with pip-compile. We provide a script for that, since these files should always be updated all at once.
2020-12-09 16:16:54 +01:00
Philipp Fischbeck 142f75013c
Bug 1600344: Remove six and __future__ usage (#1704)
This removes the direct six dependency and removes all __future__ imports.
However, six is still an indirect dependency through several packages.
The templatetags helpers 'urlparams' and 'urlencode' were removed since they were unused.
2020-10-15 21:36:52 +02:00
Jarek 3bae3f072c Fix bug 1595149: Fix Deploy to Heroku deployment (#1484)
Don't build frontend assets in the Heroku post deployment script
and disable the debug flag.
2019-11-12 23:14:03 +01:00
Jarek 6da1f3524b Fix bug 1527507 - Refactor all dependencies (#1204)
Newer versions of Pip (7.1+) allow to create a constraints file which keeps track of versions of all sub-dependencies.

* All requirements files are renamed and moved into a separate directory.
* All sub-dependencies are moved to a constraints file.
2019-03-07 09:51:37 +01:00
Adrian Gaudebert a72a26fb82
Fix bug 1473330 - Build frontend resources during Heroku deploy. (#1018)
* Fix bug 1473330 - Build frontend resources during Heroku deploy.

* Use correct URL to request data from the server.

* Load actual fontawesome CSS file.
2018-07-18 15:50:55 +02:00
Matjaž Horvat 195f5bf1a6
Fix bug 1475603: If updating repo fails, exit script (#1014) 2018-07-17 13:20:47 +02:00
Ryan Northey 6fe02c4734 Fix Bug 1440895: Add dj.debug package to requirements-dev #905
- Add dj.debug package to requirements-dev
  This allows the use of a @debug decorator that can be used to
  print out the sql used in a method or function.

  Also provides a contextmanager to do similar for a block of code.
- Add dev requirements for staging
2018-03-19 17:33:29 +00:00
Ryan Northey 81037cb08e Touch Bug 1243129: Heroku webpack part 2
- Update heroku post_compile for webpack
  - run webpack with -p for compression/optimization
  - run collectstatic after
- Add assets folder to staticfiles_dirs in settings
- Build webpack assets in assets folder
- Also updates the bundle dir away from path('static') which should
  be left for collectstatic's use only
- Run webpack before collectstatic in travis
2018-01-23 13:02:29 +00:00
Ryan Northey 81508bc74f Touch Bug 1243129: Heroku webpack support #813
- Bump node version
- Add webpack to heroku post_compile
- Install/update npm packages at deploy time
2018-01-23 10:03:40 +00:00
Adrian Gaudebert 68780803dc Fix bug 1421317 - Fix writing current revision sha during heroku deployment. (#773) 2017-11-30 19:08:41 +01:00
Adrian Gaudebert 8f5ba36833
Fix bug 1421317 - Expose current git revision sha in web app. (#768)
* Fix bug 1421317 - Expose current git revision sha in web app.

* Use Heroku env variables to write sha.
2017-11-29 10:31:35 +01:00
Jarek 5d4f67103a Fix bug 1407532: Fix "Deploy to Heroku" button (#735)
* Update version of buildpack for git submodules
* Add SITE_URL setting to app.json and mark as required
* Remove code responsible for automatic discovery of SITE_URL after a
  deploy on Heroku
* Add runtime.txt and set python2 as the default for python buildpack
2017-10-17 00:06:30 +02:00
Matjaž Horvat 199a9c1854 Update Mozilla en-US source repository URL (#733) 2017-10-11 20:54:43 +02:00
Matjaž Horvat 8a9b9fd465 Fix bug 1399166: Use X-channel repo as source (#714)
Update the script to create per-project en-US only repositories from
the cross-channel repository. It is already limited to localizable
files only, and it also includes files from the comm-* repositories.

We now also clean up target directory on a failed pull, so that it's
empty for a clone. We also prune all subdirectories in target
repository in case they get removed from source.
2017-10-05 18:26:36 +02:00
Matjaž Horvat db09793600 Add new devtools path 2017-08-25 09:38:03 +02:00
Emin Mastizada 39ab34a748 Fix bug 1386193: Use six library for python 3 conflicting methods (#656) 2017-08-02 11:55:05 +02:00
Matjaž Horvat dfb161759c Fix en-US repo script 2017-06-10 12:26:01 +02:00
Matjaž Horvat 41720eb129 Update langpack script to use mozilla-central (#580) 2017-04-18 17:58:53 +02:00
Matjaž Horvat 1435d92a90 Update en-US repo generator script to reflect dawn (#576)
Aurora is no more. Long live cenral!
2017-04-15 01:20:57 +02:00
Matjaž Horvat 206eab772b Amend en-US script 2017-03-10 10:44:57 +01:00
Victor Bychek 44a884f04a Use locale-neutral MDN links 2017-01-19 21:28:38 +01:00
Matjaž Horvat fef0380170 Add support for downloading Firefox language packs (#506) 2016-11-25 01:48:55 +01:00
Jarek c55c754a23 Wait for memcached during a build on Heroku. (#504) 2016-11-19 16:44:38 +01:00
Jarek e5360fadf5 Fix bug 1316171: 1-click deploy to Heroku (#468)
* Add support for app.json.
2016-11-16 00:01:50 +01:00
Matjaž Horvat a0127b8294 Add credits to @okulev
I just met with Ognyan Kulev at the l10n hackathon in Ljubljana. It
turns out he's the author of the script that generates Mozilla en-US
l10n repository. His script was used as an inspiration for Pontoon's
implementation of the same functionality.

Kudos to @okulev!
2016-07-10 12:11:09 +02:00
Jot cc76e939aa Bug 1244423: updated requirements.txt to support pip 8 2016-02-02 00:44:48 +01:00
Matjaž Horvat 1a65caa75e Add pocket to en-US extraction script 2016-01-26 10:33:24 +01:00
Matjaž Horvat ddac9cd327 Acknowledge new devtools location in mozilla en-US script 2015-12-15 00:40:07 +01:00
Matjaž Horvat 3d15bb2416 Add timestamp to mozilla en-US repo creating script 2015-11-04 17:31:55 +01:00
Matjaž Horvat 5c36bdf56c Fix comm- repository update 2015-10-30 11:23:07 +01:00
Matjaž Horvat 2892c36b37 Bug 1201431: remove missing files & folders from HG 2015-10-29 16:56:09 +01:00
Matjaž Horvat e85b56147f Fix bug 1214567: improve Pootle import/export scripts
* Obsolete filename parameter
* Make locale and project parameters optional
* Use bulk save
* Move the script under the sync app
2015-10-28 19:24:40 +01:00
Michael Kelly ab070c5a78 Notify New Relic on deploy. 2015-10-22 13:30:29 -07:00
Matjaž Horvat 5c430db84a Add support for dumping entire Verbatim locales 2015-10-19 22:08:09 +02:00
Michael Kelly a815f905f0 Bug 1212415: Document new sync process. 2015-10-14 15:14:25 -07:00
Jot a5670b024d Enabled support for pyflakes in pontoon. 2015-10-13 21:48:12 +02:00
Matjaž Horvat df5e153294 Add support for dumping entire Verbatim projects 2015-10-12 23:24:32 +02:00
Matjaž Horvat da970fed4d Add support for Mozilla Beta repositories 2015-09-25 09:11:35 +02:00
Michael Kelly 9b22f5ba34 Fix bug 1185698: Remove Docker environment.
Removes Docker-specific files and updates the documentation to remove references
to Docker.
2015-08-06 17:46:10 -07:00
Matjaž Horvat 7a53fd1c2e Add Verbatim migration scripts
Add managements commands to export translation data from Verbatim,
commit it to SVN and import it into Pontoon.
2015-08-05 21:31:01 +02:00
Michael Kelly 8499b022f8 Add ability to pass arguments to sync_projects.sh. 2015-08-03 10:34:47 -07:00
Michael Kelly 1f56a68891 Fix bug 1188929: Build assets in post_compile.
Since collectstatic has trouble building the assets during the normal build, we
build them during post_compile, when the path issues that cause collectstatic
to fail don't exist anymore.

This commit also reverts the previous removal of the translate app as that was
a temporary fix.
2015-07-30 23:17:09 -07:00
Matjaž Horvat 190ce5b45d Add comments 2015-07-29 07:11:27 +02:00