Commit Graph

234 Commits

Author SHA1 Message Date
XhmikosR
7b8211ce64 Update globby to v14
Also:

* fix globals type
* switch to async
2024-03-12 09:50:25 +02:00
Julien Déramond
52cc9342cb Bump copyright year to 2024 2024-02-05 20:13:23 -08:00
XhmikosR
ba449604ce
Improve change-version script (#38983)
Only replace the version in specific files instead of blindly all repo files
2023-08-21 09:03:09 +03:00
XhmikosR
56664e0caa
Convert build scripts to ESM (#38984) 2023-08-06 07:37:24 +03:00
Julien Déramond
5036f70e1c
Add color-modes.js to bootstrap-x.y.z-examples.zip (#38747) 2023-06-18 17:52:31 +03:00
Christian Oliff
07a08c2335
Rename config.yml to hugo.yml (#38582)
hugo.yml is now recommended (over the generic sounding config.yml) as the default config based filename
REF: https://gohugo.io/getting-started/configuration/#hugotoml-vs-configtoml
Changing this may make it easier for code editors and build tools to identify this as a Hugo configuration file and project.
2023-05-17 07:18:01 +03:00
Julien Déramond
b4befee506
change-version.js: handle rubygems specific version number (#38452)
* Handle Ruby specific version in `change-version.js`

* Guard against the same version

---------

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2023-04-12 22:56:22 +03:00
XhmikosR
3d84e60d69
generate-sri.js: use destructuring (#38413) 2023-04-09 20:13:08 +03:00
XhmikosR
ae43f0c48b
Tweak and re-organize ESLint config (#38369)
* Tweak and re-organize ESLint config

* merge individual configs to the root config
* enable more eslint-plugin-import rules
* lint markdown files

* Lint
2023-03-29 13:49:30 -04:00
XhmikosR
1fe9067604
zip scripts: remove previous zip files and add quiet flag (#38358) 2023-03-28 19:56:17 +03:00
XhmikosR
e8730484b8
vnu-jar.js: add more logging (#38314) 2023-03-24 11:32:43 +02:00
Patrick H. Lauke
2cc580e2d1
Docs: remove remnants of Twitter / bump dates (#37779) 2023-01-01 16:30:53 -08:00
Mark Otto
cf3c1535e6 Update docs and package information to clarify license 2022-12-20 14:24:43 -08:00
XhmikosR
5208dd10c4
ESLint: enable prefer-template rule (#37484) 2022-11-12 10:09:36 +02:00
George Sotiropoulos
634e449b9a explicitly use banner function, avoiding passing arguments 2022-11-11 08:11:32 +02:00
GeoSot
aa9d32dd15
Use explicit imports in our javascript source files (#36854) 2022-10-26 08:26:51 +03:00
XhmikosR
d0117a17d8
Update devDependencies (#37177) 2022-09-20 08:09:14 +03:00
XhmikosR
42da2b9556
Update devDependencies (#35841)
* Update devDependencies

* @babel/core             ^7.17.0  →  ^7.17.2
* @rollup/plugin-replace   ^3.0.1  →   ^3.1.0
* eslint                   ^8.8.0  →   ^8.9.0
* eslint-config-xo        ^0.39.0  →  ^0.40.0
* hugo-bin                ^0.80.1  →  ^0.80.2
* karma                   ^6.3.15  →  ^6.3.16
* rollup                  ^2.67.1  →  ^2.67.2

* Fix new ESLint errors
2022-02-15 08:50:37 +02:00
XhmikosR
62d86c07f8 Rename variables 2022-01-29 13:25:30 +02:00
XhmikosR
c99fa6ca26
build-plugins.js: use globby package (#35586)
We already use it in the change-version.js file
2022-01-13 13:12:10 +02:00
XhmikosR
9680e17456
Bump copyright year to 2022 (#35639) 2022-01-03 15:03:42 +02:00
XhmikosR
a22694da13
build/postcss.config.js: minor tweaks (#35506) 2021-12-15 10:52:49 +02:00
XhmikosR
01b08d958c
Remove the now outdated build/svgo.yml (#35447) 2021-12-01 15:16:24 +02:00
XhmikosR
fa33e83f25
build/change-version.js: fix wrong map usage (#35395) 2021-11-24 10:49:35 +02:00
GeoSot
58ffe2334a
build: read & dynamically resolve imports on plugins build (#34509)
Our individual js/dist files are now deduplicated properly thus resulting in a size reduction, which varies from ~25% to ~60% depending on the components used. The average savings are 20% uncompressed and ~15% with gzip.

This will mostly benefit cases that more than one component is imported from js/dist. In all other cases it doesn't have any effect.

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2021-11-23 17:37:14 +02:00
XhmikosR
666fe596bf Enable unicorn/no-array-for-each rule 2021-10-05 19:52:11 +03:00
XhmikosR
c81c645394
rollup: specify generatedCode: 'es2015' (#35070)
This will make use of `const` and modern features (which we are already using in our code) in the generated rollup code.
2021-10-04 19:46:07 +03:00
dependabot[bot]
b6855ae138
Bump vnu-jar from 21.6.11 to 21.9.2 (#34874)
* Bump vnu-jar from 21.6.11 to 21.9.2

Bumps [vnu-jar](https://github.com/validator/validator) from 21.6.11 to 21.9.2.
- [Release notes](https://github.com/validator/validator/releases)
- [Changelog](https://github.com/validator/validator/blob/main/CHANGELOG.md)
- [Commits](https://github.com/validator/validator/compare/21.6.11...21.9.2)

---
updated-dependencies:
- dependency-name: vnu-jar
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Ignore the `aria-disabled` warnings

* Add comment to aria-disabled ignore

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Patrick H. Lauke <redux@splintered.co.uk>
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2021-09-07 10:55:08 +03:00
Rohit Sharma
5967ebd906 Use the switch statement instead of if 2021-06-22 19:50:37 -07:00
XhmikosR
0fa84e8c8e
build/vnu-jar.js: clean up ignores (#34279) 2021-06-22 12:42:49 +03:00
XhmikosR
232a40a5f1
Improve vnu-jar.js (#34075)
* switch to `execFile` for the java version command
* simplify our ignores and removed no longer needed ones
* remove `--no-langdetect` since it doesn't seem to trigger any issues any more
2021-06-08 08:44:51 +03:00
GeoSot
80085a12f6
Decouple BackDrop from modal (#32439)
* Create backdrop.js util

* revert breaking changes

remove PromiseTimout usage

revert class name

* one more test | change bundlewatch.config

* add config obj to backdrop helper | tests for rootElement | use transitionend helper

* Minor tweaks — Renaming

Co-authored-by: Rohit Sharma <rohit2sharma95@gmail.com>
2021-04-14 13:28:50 -07:00
Rohit Sharma
6ecd1c626e
Change the name of the Offcanvas constructor (#33261) 2021-03-16 07:21:04 +02:00
XhmikosR
e153e5f5b2
Improve change-version.js (#33148)
* switch to async/await
* remove shelljs
* switch to globby; supports .gitignore out of the box
* don't write any files to the disk if they are indentical
* add two more cmd switches: --dry and --verbose
* strip leading "v" from version arguments so that we don't end up with duplicate `v`s
2021-03-11 11:37:52 +02:00
XhmikosR
2732a60ecd
@rollup/plugin-replace: specify preventAssignment: true (#33329)
This is to fix a warning since the option will be set to true in the next major version of the plugin
2021-03-10 18:47:42 +02:00
XhmikosR
26c999152b
Delete the unused build/ship.sh (#33326) 2021-03-10 18:47:20 +02:00
GeoSot
548be2ed66
Offcanvas as component (#29017)
* Add a new offcanvas component

* offcanvas.js: switch to string constants and `event.key`

* Remove unneeded code

* Sass optimizations

* Fixes

Make sure the element is hidden and not offscreen when inactive
fix close icon negative margins
Add content in right & bottom examples
Re-fix bottom offcanvas height not to cover all viewport

* Wording tweaks

* update tests and offcanvas class

* separate scrollbar functionality and use it in offcanvas

* Update .bundlewatch.config.json

* fix focus

* update btn-close / fix focus on close

* add aria-modal and role
return focus on trigger when offcanvas is closed
change body scrolling timings

* move common code to reusable functions

* add aria-labelledby

* Replace lorem ipsum text

* fix focus when offcanvas is closed

* updates

* revert modal, add tests for scrollbar

* show backdrop by default

* Update offcanvas.md

* Update offcanvas CSS to better match modals

- Add background-clip for borders
- Move from outline to border (less clever, more consistent)
- Add scss-docs in vars

* Revamp offcanvas docs

- Add static example to show and explain the components
- Split live examples and rename them
- Simplify example content
- Expand docs notes elsewhere
- Add sass docs

* Add .offcanvas-title instead of .modal-title

* Rename offcanvas example to offcanvas-navbar to reflect it's purpose

* labelledby references title and not header

* Add default shadow to offcanvas

* enable offcanvas-body to fill all the remaining wrapper area

* Be more descriptive, on Accessibility area

* remove redundant classes

* ensure in case of an already open offcanvas, not to open another one

* bring back backdrop|scroll combinations

* bring back toggling class

* refactor scrollbar method, plus tests

* add check if element is not full-width, according to #30621

* revert all in modal

* use documentElement innerWidth

* Rename classes to -start and -end

Also copyedit some docs wording

* omit some things on scrollbar

* PASS BrowserStack tests

-- IOS devices, Android devices and Browsers on Mac, hide scrollbar by default and appear it, only while scrolling.

* Rename '_handleClosing' to '_addEventListeners'

* change pipe usage to comma

* change Data.getData to Data.get

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
Co-authored-by: Martijn Cuppens <martijn.cuppens@gmail.com>
Co-authored-by: Mark Otto <markdotto@gmail.com>
2021-03-02 19:10:10 +02:00
XhmikosR
977c366cbe
Rename _gh_pages to _site. (#33129) 2021-03-02 17:05:26 +02:00
XhmikosR
28aba43ae0
vnu-jar.js: quote vnu path (#33016)
Should work now with folders with spaces
2021-02-09 08:01:44 +02:00
XhmikosR
a838571c50
change-version: remove vendor, add resources (#32917) 2021-01-28 23:30:10 +02:00
XhmikosR
1d8bc95c92
Update zip-examples.js (#32799)
Remove previously created zip files before creating a new one
2021-01-14 13:28:39 +02:00
XhmikosR
157a27d43d
build-plugins: build Base component too (#32313) 2021-01-14 00:35:57 +02:00
XhmikosR
1cdbf532af
Improve zip-examples.js (#32469)
Only include the needed dist files: ~1.27 MB -> ~410 KB
2021-01-13 19:21:31 +02:00
XhmikosR
7e6d7b8f81
package.json: move version_short variable under the config object (#32737)
This is so that it works on npm 7.x too.
2021-01-10 08:03:49 +02:00
XhmikosR
f2c504397e
Bump copyright year to 2021 (#32713) 2021-01-07 12:12:53 +02:00
XhmikosR
5538ffb292
build-plugins: switch to "bundled" for babel helpers (#32312) 2020-12-07 19:06:17 +02:00
Johann-S
adfdf7160b Update to popper.js v2.x 2020-12-06 18:42:40 +02:00
XhmikosR
eb618393e3 Move rtlcss to postcss.config.js 2020-12-04 07:52:03 +02:00
Gaël Poupard
71ecc3323f chore(RTL): add RTLCSS 2020-12-04 07:52:03 +02:00
XhmikosR
cfd00b5eeb
Remove Polyfill leftovers (#32310)
Leftovers from #32057
2020-12-02 08:30:35 +02:00