usebedrock / bedrock

Bedrock is a static site generator to create large-scale HTML prototypes and document design systems
https://bedrockapp.org
Other
206 stars 28 forks source link

Deprecate jQuery #392

Open Wolfr opened 3 years ago

Wolfr commented 3 years ago

All JS in Bedrock's core should be written as vanilla JS, not using jQuery. This was mentioned before but this is the “official” issue to track progress.

import $ from 'jquery';

import './prototype-nav';
import './styleguide-code-samples';
import './styleguide-typography';
import './styleguide-search';
import rememberScroll from './styleguide-remember-scroll';

window.$ = $;

rememberScroll('#__prototype-nav');
rememberScroll('.br-styleguide-content');
rememberScroll('.br-styleguide-navigation-holder');
Wolfr commented 2 years ago

Prototype nav is the one that's left, there is a PR but it doesn't work yet. https://github.com/usebedrock/bedrock/pull/370