Commit Graph

294 Commits

Author SHA1 Message Date
renovate[bot]
68b3a38248 chore(deps): update dependency eslint-import-resolver-webpack to v0.13.8 2024-06-14 21:06:34 +00:00
Feanil Patel
6c2cf87137 Merge pull request #34981 from openedx/feanil/remove_unnecessary_package
fix: Remove the unused edx-custom-a11y-rules package.
2024-06-13 12:24:04 -04:00
Juliana Kang
0fc990cf08 chore: Upgrade moment-timezone to v0.5.45 (#34968)
REV-4067
2024-06-13 11:57:23 -04:00
Feanil Patel
98b5ba5017 fix: Remove the unused edx-custom-a11y-rules package.
This package was only used by bok-choy which was archived a while ago.
We just missed the fact that this package was also a node dependency.

See https://github.com/openedx/public-engineering/issues/13 for more
details.
2024-06-13 07:42:22 -04:00
renovate[bot]
f256684646 fix(deps): update dependency whatwg-fetch to v2.0.4 2024-06-12 15:25:02 +00:00
renovate[bot]
6fc7e3b1e9 fix(deps): update dependency camelize to v1.0.1 2024-06-10 14:58:12 +00:00
renovate[bot]
1e52d284f3 chore(deps): update dependency karma-spec-reporter to v0.0.36 2024-06-10 06:31:09 +00:00
renovate[bot]
49d721f74a fix(deps): update dependency moment to v2.30.1 2024-06-07 21:23:01 +00:00
renovate[bot]
08c5a1cf16 fix(deps): update dependency js-cookie to v3.0.5 2024-06-07 19:31:52 +00:00
renovate[bot]
7f7cade131 chore(deps): update dependency @edx/stylelint-config-edx to v2.3.3 2024-06-06 16:24:10 +00:00
Diana Huang
de9a8652d4 Revert "fix(deps): update dependency moment-timezone to v0.5.45" (#34928)
This reverts commit 51ebabfd96.
2024-06-06 10:48:13 -04:00
renovate[bot]
51ebabfd96 fix(deps): update dependency moment-timezone to v0.5.45 2024-06-05 15:24:04 +00:00
renovate[bot]
7188619fa5 chore(deps): update dependency enzyme-adapter-react-16 to v1.15.8 2024-06-04 19:19:58 +00:00
renovate[bot]
9850472761 fix(deps): update dependency underscore to v1.12.1 [security] 2024-06-04 18:23:20 +00:00
renovate[bot]
7612ffd4e4 fix(deps): update dependency axios to ^0.28.0 [security] 2024-06-04 17:36:45 +00:00
Feanil Patel
9bbe644ceb fix: Updat edx-ui-toolkit node library.
edx-ui-toolkit 1.5.5 drops usage of the ux-pattern-library for its docs
and also updates many of its dependencies.  As a result, many
edx-platform dependencies that were super out of date can now be further
upgraded.
2024-06-03 16:36:08 -04:00
renovate[bot]
43d1204f25 chore(deps): update @edx/mockprock digest to 3ad18c6 2024-06-03 15:49:28 +00:00
Feanil Patel
9d8cdc3bf1 fix: Bump the edx-proctoring version to the latest.
Among other things, edx-proctoring has updated how its dependencies are
managed so it doesn't shrinkwrap its dependencies.  This allows us to
further upgrade dependencies in edx-platform and fixes an issue where we
had a required dependency on fsevents that was cropping up preventing us
from `npm install`ing cleanly on linux.
2024-05-29 15:17:36 -04:00
Brian Smith
27d33d4911 fix: move back to old version of imports-loader
this fixes the issue with xblocks not loading in studio. it also requires use of the deprecated "string as loader options" method for imports and exports loader config
2024-04-19 14:03:42 -04:00
Brian Smith
58185d7784 fix: use string-replace-loader instead of string-replace-webpack-plugin 2024-04-19 14:03:42 -04:00
Brian Smith
05baf4c1fe revert: revert: "chore: upgrade to node 18" (#34496)
This reverts commit eb26333ca6.
2024-04-19 14:03:42 -04:00
Feanil Patel
eb26333ca6 Revert "chore: upgrade to node 18" (#34496)
* Revert "chore: upgrade to node 18"

* Revert "fix: bump npm from 10.2.x to 10.5.x"

This reverts commit b6662d4ee0.

* Revert "fix: replace outdated webpack plugins"

This reverts commit b204f1b572.

* Revert "build: Remove the `npm bin` calls from package.json"

This reverts commit 4e3dd161ff.

* fix: fix bad conflict resolution.

---------

Co-authored-by: Diana Huang <dkh@edx.org>
2024-04-10 09:58:42 -04:00
Feanil Patel
4e3dd161ff build: Remove the npm bin calls from package.json
That command no longer exists with newer versions of NPM but the build
path for `npm run` includes the `node_modules/bin` directory now so it's
also not necessary.
2024-04-09 15:48:01 -04:00
Brian Smith
8fb63bb0cf chore(deps): update deps to support node 18 2024-04-09 10:32:54 -04:00
Brian Smith
2511556e95 chore: test updating node to 16.20 2024-04-09 10:32:54 -04:00
Kyle D. McCormick
bd82b1d75a docs: npm scripts for static assets are no longer experimental :) 2024-04-04 10:31:02 -04:00
Zachary Hancock
8d405ac588 feat: upgrade proctortrack JS (#32922) 2023-08-07 10:52:04 -04:00
Kyle McCormick
303bf5ef3c build: npm run watch (experimental) (#32866)
Implements the `npm run watch` section of the assets ADR [1], plus some
modifications since I decided to switch from pywatchman to watchdog (see
ADR changes for justification). This will replace `paver watch_assets`
(edx-platform) and `openedx-assets watch-themes` (Tutor).

Specifically, this PR adds three experimental commands:

* `npm run watch-sass` : Watch for Sass changes with watchdog.
* `npm run watch-webpack` : Invoke Webpack-watch for JS changes.
* `npm run watch` : Invoke both `watch-sass` and `watch-webpack` simultaneously.

These commands are only intended to work in development mode. They have
been tested both on bare-metal edx-platform and through `tutor dev run`
on on Linux.

Before removing the "experimental" label, we need to:

* Test through Devstack on Linux.
* Test through Devstack and `tutor dev run` on macOS.
* Test on bare-metal macOS. Might not work, which is OK, but we should
  document that.
* Document the commands in edx-platform's README.
* Confirm that this not only works through `tutor dev run`, but also as
  a suitable replacement in the `watchthemes` service that Tutor runs
  automatically as part of `tutor dev start`. Tweak if necessary.

References:

1. https://github.com/openedx/edx-platform/blob/master/docs/decisions/0017-reimplement-asset-processing.rst

Part of: https://github.com/openedx/edx-platform/issues/31612
2023-07-27 16:33:32 +00:00
Kyle McCormick
3e67719a24 build: npm run build (experimental) (#32823)
This PR implements much of the static assets rework ADR [1], including:

* `npm run build[-dev]`, and its subcommands,
* `npm run webpack[-dev]` and
* `npm run compile-sass[-dev]`.

This is backwards-compatible. `paver update_assets` should not be affected.
The new command warns that it is "experimental" for a few reasons:

* `npm run build` will fail in the webpack phase unless you first
run  `xmodule_assets`. This will be changed soon [2].

* We have tested the new build, but not quite so thoroughly that we'd
recommend it as the production default yet. Once the xmodule_assets
work lands, we'll share this on the forums so early adopters can try it
out.

* The commands lack some top-level documentation. Once they stabilize more,
we'll add a section to the README that explains how and when to use `npm run
build` and its subcommands and its env vars.

* `npm run watch` is not yet implemented.

References:
1. https://github.com/openedx/edx-platform/blob/master/docs/decisions/0017-reimplement-asset-processing.rst
2. https://github.com/openedx/edx-platform/pull/32685

Part of: https://github.com/openedx/edx-platform/issues/31604
2023-07-26 08:04:45 -04:00
Kyle McCormick
a6f04d8ca3 build: copy from node_modules using NPM postinstall hook, not Paver (RE-MERGE)
Re-merge of 4b64d8342d

The commit after this one contains the fix for the issue that led to the
revert.
2023-07-20 13:46:21 -04:00
Zachary Hancock
d1da82a325 fix: proctortrack version update to fix end exam error (#32762) 2023-07-18 13:17:00 -04:00
Kyle McCormick
95e0cdef28 Revert "build: copy from node_modules using NPM postinstall hook, not Paver (#32717)"
This reverts commit 4b64d8342d.
2023-07-17 14:06:05 -04:00
Kyle McCormick
4b64d8342d build: copy from node_modules using NPM postinstall hook, not Paver (#32717)
During the review of ADR 17 [1], Régis pointed out [2] that the shell script
which replaces Paver's `process_npm_assets`  could be automatically invoked as
an NPM post-install hook, ensuring that the step is seamlessly executed whenever
`npm install` is run. I had avoided using that suggestion, as I worried that it
would make it harder to move node_modules out of the edx-platform directory in
Tutor's openedx image.

Since then, two things have changed. Firstly, Tutor v16's new persistent mounts
interface [3] has lessened the importance of moving node_modules. Secondly, I
have realized that using a post-install hook would not preclude us from
modifying the underlying script (scripts/copy-node-modules.sh) to look in an
alternative location for node_modules, should that end up being something we
want to do.

This commit modifies the ADR based on those findings, stubs out Paver's
`process_npm_assets`, and adds the suggested post-install hook and replacement
Bash script.

References:
1. https://github.com/openedx/edx-platform/blob/master/docs/decisions/0017-reimplement-asset-processing.rst
2. https://github.com/openedx/edx-platform/pull/31790#discussion_r1122802492
3. https://github.com/overhangio/tutor/blob/master/CHANGELOG.md#v1600-2023-06-14

Part of: https://github.com/openedx/edx-platform/issues/31604
2023-07-17 13:26:58 -04:00
Zachary Hancock
ab3d322bc9 feat: update edx-proctoring JS library (#32668) 2023-07-06 10:25:15 -04:00
Zachary Hancock
75b6b1832b feat: update proctortrack (#32154) 2023-05-01 10:50:12 -04:00
Ghassan Maslamani
8b81e51ad7 chore: remove unused pkg (extract-text-webpack-plugin) (#31889)
This pkg isn't used since 5 years ago
This PR openedx/edx-platform/pull/17417 revert it's usage
2023-03-17 11:23:22 -04:00
Syed Ali Abbas Zaidi
5549db4d80 fix: migrate remaining eslint-config-edx (#31760)
* fix: migrate remaining eslint-config-edx

* refactor: updated eslint rules according to eslint-config-edx-es5

* refactor: add custom rules to suppress unnecessary eslint issues

* refactor: add custom rules to internal eslint configs

* fix: fix all indentation issues

* chore: update lock file
2023-03-02 16:16:50 +05:00
Bilal Qamar
64a1caa604 chore: added @edx/edx-proctoring & updated packages (#31848) 2023-03-01 11:18:51 +05:00
Bilal Qamar
20f65ae4e2 chore: incrementally upgrade npm packages (#31739)
* chore: incrementally upgrade npm packages

* chore: updated packages
2023-02-28 10:54:24 +05:00
Mohammad Ahtasham ul Hassan
3726d122f9 Migrate eslint-config-edx (#30460)
* feat: migrare eslint-config-edx

* refactor: updated package-lock

* refactor: updated package-lock

---------

Co-authored-by: Bilal Qamar <59555732+BilalQamar95@users.noreply.github.com>
Co-authored-by: Mashal Malik <107556986+Mashal-m@users.noreply.github.com>
Co-authored-by: Abdullah Waheed <abdullah.waheed@arbisoft.com>
2023-02-09 13:57:18 +05:00
Zachary Hancock
672b1341c4 chore: update edx-proctoring python and js (#31185) 2022-10-24 11:09:23 -04:00
Sarina Canelake
4a2f231302 fix: fix github url strings (org edx -> openedx) 2022-09-15 14:52:28 -04:00
Kshitij Sobti
d687bc7ba2 fix: Fix jasmine-jquery package format to avoid checking out over ssh (#30437)
The npm package manager seems to try checking out over ssh unless a github
dependency is specified with the git user via git@. Checking out over ssh breaks
deployments in CI and deployment environments.
2022-06-08 19:30:31 +00:00
Mohammad Ahtasham ul Hassan
f801deaae5 Node Upgrade (#30420)
* feat: Node16 upgrade
2022-05-18 16:12:34 +05:00
Mohammad Ahtasham ul Hassan
fee54bf424 Revert "Node 16 Upgrade (#30354)" (#30399)
This reverts commit f4c3c3fb4d.
2022-05-16 18:42:42 -04:00
Mohammad Ahtasham ul Hassan
f4c3c3fb4d Node 16 Upgrade (#30354)
* feat: Node16 upgrade
2022-05-16 16:53:37 +05:00
Mohammad Ahtasham ul Hassan
e84187bacd Revert "feat: node16 upgrade (#30249)" (#30268)
This reverts commit f10ebf0752.
2022-04-18 21:57:17 +05:00
Mohammad Ahtasham ul Hassan
f10ebf0752 feat: node16 upgrade (#30249) 2022-04-18 16:32:53 +05:00
Mohammad Ahtasham ul Hassan
a443542260 Revert "feat: node16 upgrade (#30158)" (#30228)
This reverts commit 5ee25c65ea.
2022-04-12 17:18:30 +05:00
Mohammad Ahtasham ul Hassan
5ee25c65ea feat: node16 upgrade (#30158) 2022-04-12 15:23:34 +05:00