-
-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Isolate cookiebar module JS #119
Commits on May 9, 2024
-
Added boilerplate to create/bundle an npm package on Github, so that the build artifact(s) can be included in the static files of the django app for ease of use, and other projects can separately install the package for the JS with npm to bundle the JS with their own solution.
Configuration menu - View commit details
-
Copy full SHA for ae76649 - Browse repository at this point
Copy the full SHA ae76649View commit details -
♻️ Refactor cookiebar.module.js into TS module
The added type safety helps catch bugs, and the setup is simple enough for people not too familiar with TS to be able to contribute. Small refactors have been done to avoid globals and localize state a bit more, which shouldn't affect anyone.
Configuration menu - View commit details
-
Copy full SHA for af0d31b - Browse repository at this point
Copy the full SHA af0d31bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 883afe4 - Browse repository at this point
Copy the full SHA 883afe4View commit details -
🔨 Use esbuild to bundle for django staticfiles
The cookiebar module TS source is taken as input, and the resulting bundle written to the cookie consent staticfiles directory.
Configuration menu - View commit details
-
Copy full SHA for b954dcf - Browse repository at this point
Copy the full SHA b954dcfView commit details -
🐛 Closes #116 - swap order of onShow and doInsert
The onShow handler should be invoked after the node was inserted. Thanks to @grrodre for contributing the patch!
Configuration menu - View commit details
-
Copy full SHA for e1498dc - Browse repository at this point
Copy the full SHA e1498dcView commit details -
📦 Build JS assets in CI and gitignore them
The npm 'package' and the django staticfiles assets are exclusively to be built in the CI pipeline, and not kept in version control. This keeps a single source of truth and prevents us from forgetting to update the artifacts, at the cost of a little extra step for local development.
Configuration menu - View commit details
-
Copy full SHA for 9a3b2a9 - Browse repository at this point
Copy the full SHA 9a3b2a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for cbcc422 - Browse repository at this point
Copy the full SHA cbcc422View commit details -
Ensure that the frontend package version is also bumped.
Configuration menu - View commit details
-
Copy full SHA for 3839ea4 - Browse repository at this point
Copy the full SHA 3839ea4View commit details -
Configuration menu - View commit details
-
Copy full SHA for dc7c716 - Browse repository at this point
Copy the full SHA dc7c716View commit details -
🐛 Add missing extension to import/export statements
A package with type: module requires extensions in the imports to fully resolve them (tested with Webpack 5). We can simply use the .js extension even in .ts files, tsc understands it (even though this looks really weird).
Configuration menu - View commit details
-
Copy full SHA for 5d993d2 - Browse repository at this point
Copy the full SHA 5d993d2View commit details -
Configuration menu - View commit details
-
Copy full SHA for d0deb07 - Browse repository at this point
Copy the full SHA d0deb07View commit details -
🔖 Bump version to 0.6.0 beta 0
The code is different from 0.5.0 beta 0, and the next release will be 0.6.0.
Configuration menu - View commit details
-
Copy full SHA for 0191b88 - Browse repository at this point
Copy the full SHA 0191b88View commit details