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

70 Коммитов

Автор SHA1 Сообщение Дата
Nathan Barrett 166678d98b
Add jasmine-browser-runner (#13765)
* Add jasmine-browser-runner tests

* Replace Karma with Jasmine Browser Runner

* Update test npm script

* Update jasmine webpack and test commands

* Update npm script and documentation

* PR revisions

* Add package lock
2023-10-16 12:19:28 -05:00
Rob Hudson ab9bfdc7a2 Update pyenv docs 2023-04-14 13:48:55 -07:00
Alex Gibson 65945d1d49 Add recommended extensions for VSCode (Fixes #12515) 2022-12-20 20:00:32 +00:00
Alex Gibson b3b8a2bdc5
Add glean.js analytics to home page (#11402) 2022-05-16 10:14:14 +01:00
Steve Jalim a8d2e59939 10631: Reinstate support for python-coverage
This changeset makes Bedrock tests use coverage.py once more, but this time via the pytest-cov plugin

The configuration set up ignores a (seemingly) sensible set of files and folders, while also outputting HTML and XML reports, for human and [future] machine enjoyment.

Key changes:
* Config expanded for coverage.py
* Main test-running script updated to invoke pytest with the appropriate coverage-logging options
* Docs updated with a small note.
2021-10-25 15:59:53 -04:00
Ayushsunny d8389a1e8a Removed yarn as a dependencies and updated the docs 2021-10-22 10:13:39 +01:00
Alex Gibson 665323b14e Migrate to Webpack (Issue #10310) 2021-09-16 08:54:16 +01:00
Paul McLanahan e9ce02dde0 Include the sitemap.json file in the sitemaps update 2020-08-11 10:32:47 +01:00
Paul McLanahan bcab4b6b5d
Add more Python cache files to .gitignore
[ci-skip]
2020-07-09 13:05:00 -04:00
Alex Gibson 7a2d812ef3 Remove Sandstone (Fixes #8384) (#8449) 2020-01-23 20:04:51 +01:00
Paul McLanahan a8114a786e Add Fluent L10n system and port the Mission page to use it
* Fix dict cache default timeout
* Add fallback strings and checking for translations in template
* Add ftl alias and ftl_lazy for use in py files
* Move git repos and add fluent to l10n_update
* Add percent_translated and required_messages to the l10n object
* Add management commands for converting en-US .lang file and templates
* Add command to convert en-US .lang file to .ftl file
* Using data from above command add a command that will convert a
template to use the .ftl strings
* Update the l10n_update command to update both external l10n repos
* Convert the /mission/ page to Fluent
* Add command to convert .lang translations to .ftl
* Copy en .ftl file when porting translations
  * Removes the original string hash comments as well.
* Add Fluent docs.
* Add indentation and key sorting to metadata JSON output
* Add FTL file linting command
* Update mission template for FTL and remove FTL specific template
* Set l10n cache to 10s when DEBUG=True
* Fix and add tests for get_l10n_path
* Fix some style mistakes in docs and code
* Support multiline group comments for required strings

fix #7725, fix #7822, and fix #7726
2019-10-28 16:46:11 +00:00
Paul McLanahan 14ca66ea78 Use external data for home page content cards
This switches the current English home page to display
content cards from data in the mozmeao/www-admin repo.

Fix #6124
2019-01-22 18:40:02 +00:00
Paul McLanahan 8ae728302c Sitemap: exclude /firefox/*/all/, fix missing URLs, and add grants urls (#6101)
Also add system-requirements URLs and move sitemap index to /sitemap.xml.

Fix #6048
2018-09-10 14:15:54 -05:00
Jon Petto 5a947ec09c Bug 1446023 iframeless fxa form (#5713)
* [fix bug 1446023] Add iframeless FxA macro on /firstrun.

* Update distribution check to only switch to China re-pack URL if UITour call is successful.

* Add the following params to the token request:

- utm_source (if available)
- utm_campaign (if available)
- form_type (always 'email')
- entrypoint

* Make utm_source required.

* Update docs/comments to clarify Fx 48+ requirement.
2018-08-24 13:33:08 -07:00
Paul McLanahan 87233d2b30 Re #5775: Split sitemap by locale (#5987)
* Re #5775: Split sitemap by locale

Also add DB-based pages to sitemap from
release notes and security.
2018-08-10 11:23:20 -05:00
Paul McLanahan 202fe774e2 Upload static media to s3 on deploy (#5932) 2018-07-18 09:33:59 -05:00
Jon Petto 40f257d114 [fix #5841] Add IE /new variations and experiment. (#5858) 2018-07-06 16:41:56 +01:00
Paul McLanahan a8171c5784 Switch from django-pipeline to gulp tasks for asset processing (#5618)
* Move from django-pipeline to Gulp for static-assets

* Use Gulp tasks to compile less and sass
* Use Gulp tasks to concatinate files into bundles
* Use Gulp tasks to minify files for deployment
* Use Gulp tasks for development to watch for changes
* Use BrowserSync to serve development static files and refresh the
  in-progress page
* Update Docker setup to use multi-stage build
* Update Makefile to build and run the docker setup
* Update docs to recommend Docker-based development
* Update deployment and testing to also use the Makefile

* Add rebuild of SASS bundles when library files change

* Add an intermediate build directory just for LESS and SASS
* Avoid issues with ambiguous imports when .css and .scss in the same
  directory

* Set deployment docker image in git env var script
2018-06-07 10:52:53 -05:00
Paul McLanahan 54b8cbbf8a Fix #5583: Support loading some config from the DB
* Convert from python-decouple to everett for config loading
  * Gives us more flexibility on loading waffle switches
    and funnelcake definitions as well as potentially new
    config types in future.
* Create a model for storing configs
* Create a management command for loading configs from git repo

Relies on mozmeao/www-config#94 for loading configs.
2018-05-16 16:16:22 -04:00
Paul McLanahan 1f3ca1bf81 Upload and distribute database updates via S3 (#5334)
A.K.A The Sqlitening!

This removes bedrock's depenence on a database server and moves to
downloading pre-built sqlite database files from s3 on a schedule. There
is also a clock process that will update and upload such a database on a
schedule as well. This should mean more stability, speed, and
reliability for bedrock, as well as quicker development due to easy to
download pre-populated databases.
2018-03-29 14:24:22 -05:00
alexgibson b55c514b2a Update functional tests to Selenium 3.5.0 2018-01-23 15:22:05 -05:00
Paul McLanahan 8f241de8e3 Update community data via git
Converts community data (external files) updates to use
git just like we do for release notes and security advisories.
These files are already in a git repo together.
2017-12-06 11:10:24 -05:00
Jon Petto 4a13c7fbfe Updates new Fx home page copy to be more inclusive. (#5265) 2017-11-10 14:23:24 -08:00
Schalk Neethling 340471b390 Merge branch 'master' into ember-reference-5171 2017-10-10 10:37:45 +02:00
Jeff Austin 7b2dbcd0ec Fix reference to Ember on Developer Edition page 2017-10-09 12:51:30 -07:00
Paul McLanahan b81e99c59c Switch from NPM to Yarn for NodeJS deps
And switch docker base to mozmeao/base:python-2.7.
The official Nodejs image commands are now run in the
bedrock_build dockerfile.
2017-10-04 11:27:37 -04:00
Paul McLanahan f9d55e9fc4 Bug 1388150: Convert release notes to use git repo and JSON
Will allow us to simplify bedrock by not installing RNA.

Remove:

* django-mozilla-rna
* django-restframework
* django-synctool

Do markdown conversion on load of release: Helps with cache and perf.

Add tests for new release models
2017-09-26 22:23:06 -04:00
Jon Petto 4689cfa532 [fix bug 1370587] Move sync page to Fx hub 2017-07-13 13:12:52 -05:00
Paul McLanahan 86a765324f Only include default URLs in sitemap.xml
Also exclude more URLs from sitemap
2017-06-21 12:35:24 -04:00
Paul McLanahan 4002e7167a Fix bug 1369738: Add XML sitemap
Add a management command to generate a sitemap and update deployment
to generate and include it in the builds.

Thanks to @kyoshino in PR #1333 for most of the basis of this work.
2017-06-20 16:12:18 -04:00
Paul McLanahan a2cc3e9b2d Change how we do docker
* More simple and streamlined base image build file
* Use a builder image to decrease the size and security footprint of running containers
* Make demos more prod-like
* Add l10n for prod builds via docker commit
* Specifically include only those files required for the running site
* Tests in circleci now use the same docker build and test scripts
* Add lock for docker image building per git hash
* Add environment variable support to jenkins.yml
* Add headless and firefox integration tests to prod deploys
* Run integration smoke tests before deployment
2017-02-21 16:54:00 -05:00
Paul McLanahan 103cd86a0d Run all python tests in docker in circleci 2016-10-05 11:16:55 -04:00
Josh Mize 756b895bea Merge pull request #4302 from pmac/update-product-details-and-check
Add command to download, verify, and update product-details
2016-08-30 13:55:46 -05:00
Paul McLanahan 55d185f1df Add command to download, verify, and update product-details
Downloads the files locally, checks them, then loads the modified files
into the database.
2016-08-25 11:16:37 -04:00
alexgibson ef2efba326 Update pytest to v3.0.1
- pytest-django v3.0.0
- pytest-html v1.10.0
- pytest-selenium v1.3.1
- pytest-xdist v1.15.0
- pytest-rerunfailures v2.0.1
2016-08-25 09:28:24 +01:00
Alex Gibson 824523d3b8 Remove Cloud9, Vagrant and legacy PHP docs and associated files (closes #3944) 2016-03-11 10:46:54 +00:00
Alex Gibson 49664edc1f Switch from using jshint to eslint 2016-03-02 15:24:35 +00:00
Dave Hunt 2005b28524 Create initial functional tests using pytest 2015-10-15 10:37:45 +01:00
Josh Mize 46f1b895dc 12-factorify settings: fix bug 1182394 2015-07-20 02:46:44 -05:00
schalkneethling 2494f208b5 Adding karma-coverage to track JS unit test coverage 2015-07-14 12:00:01 +02:00
Alex Gibson c9874717dd Move Karma JS tests to /tests directory 2015-06-11 13:56:25 +01:00
Paul McLanahan cb4a45710e Bug 1133146: Add geolocation capabilities.
Add functions for country lookup and MaxMind DB handling.
2015-03-20 13:26:47 -04:00
Paul McLanahan 3a200c09a4 Add node dependencies less and yuglify. 2015-02-10 20:52:25 -05:00
mrobin 660ae4cb8b Bug 1098254 - Add JSONLint to gruntfile, fix JSLint warnings and add .idea to .gitignore
introduce .idea folder in gitignore for those who edit in jetrains IDEs

enhance grunt usage + use of JSONLint tool to validate JSON files

unused parameters + unneeded comma + filter loop from enumerables inherited properties

enhancements to gruntfile suggested by Alex Gibson

fix code style
2014-11-13 14:00:33 +01:00
Paul McLanahan a730fe41da Bug 1026184: Port /security to bedrock.
Add an update_security_advisories command to pull
in and parse the advisroies from the git repository.
2014-08-21 13:26:45 -04:00
Josh Mize bc76bafe5a Add Cloud9 quickstart script and docs 2014-08-15 05:44:42 +00:00
Paul McLanahan 8cc990ac66 Bug 801909: Port /credits and /credits/faq to bedrock.
* Add credits CSV file processing.
* Add FAQ and Credits templates.
* Add cron command for updating credits.csv from svn.
* Add new app for updating external files.
* Add updating external files to deployment.
* Add apache rule and cache headers.
* Add support for last-modified header based on date from web server.
2014-07-16 10:05:57 -04:00
Alex Gibson cb714f23e4 Add Karma test runner Grunt task for development 2014-02-25 16:05:59 +00:00
Alex Gibson 940ce2973f Add Gruntfile.js to bedrock 2014-01-24 14:02:44 +00:00
Paul McLanahan 28f82e7fe6 Ignore james ini file. 2013-11-21 11:18:00 -05:00