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>
* 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/
* 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
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.
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.
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.
* Fix bug 1473330 - Build frontend resources during Heroku deploy.
* Use correct URL to request data from the server.
* Load actual fontawesome CSS file.
- 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
- 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
* 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
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.
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!
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.