Gathering detailed insights and metrics for @lrnwebcomponents/lrndesign-diff2html
Gathering detailed insights and metrics for @lrnwebcomponents/lrndesign-diff2html
Gathering detailed insights and metrics for @lrnwebcomponents/lrndesign-diff2html
Gathering detailed insights and metrics for @lrnwebcomponents/lrndesign-diff2html
Monorepo of webcomponents and associated microservice apis
npm install @lrnwebcomponents/lrndesign-diff2html
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
246 Stars
7,452 Commits
84 Forks
26 Watching
21 Branches
25 Contributors
Updated on 26 Nov 2024
JavaScript (89.24%)
HTML (9.5%)
CSS (1.09%)
Shell (0.14%)
PHP (0.03%)
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
-45.5%
6
Compared to previous week
Last month
-26%
37
Compared to previous month
Last year
-51.5%
555
Compared to previous year
2
Monorepo of all web components built as part of the HAX ecosystem, many working stand-alone.
The authoring experience of HAX and the ability to make fast, static file backed websites rapidly. Get all the details you want on HAX docs! HAX seeks to be the smallest possible back-end CMS to make HAX work and be able to build websites with it. Leveraging JSON Outline Schema, HAX is able to author multiple pages, which it then writes onto the file system. This way a slim server layer is just for basic authentication, knowing how to save files, and placing them in version control.
Watch and Learn more about HAX here:
Web components that can work in just about anything, are very small (Vanila or Lit based) and have full on authoring solutions if you dig deeper; Enjoy!
Notice: You will need to use Node version 6.0 or higher. Verify that you have yarn enabled — if not install yarn globally. These web components are written in ES6 and build routines compile to es5 to encompass legacy browsers.
1curl -fsSL https://raw.githubusercontent.com/haxtheweb/webcomponents/master/scripts/haxthewebme.sh -o haxthewebme.sh && sh haxthewebme.sh
1git clone https://github.com/haxtheweb/webcomponents.git 2cd webcomponents 3npm install --global @haxtheweb/create 4yarn global add polymer-cli 5yarn global add @web/test-runner 6yarn global add @web/test-runner-commands 7yarn global add @web/test-runner-puppeteer 8yarn global add @web/test-runner-playwright 9yarn global add lerna 10yarn global add web-component-analyzer 11yarn install
git remote add upstream https://github.com/haxtheweb/webcomponents.git
git fetch upstream
git pull
Git bash should already be installed on your Windows machine and can be found by searching through your computer's applications or by right-clicking anywhere inside of the File Explorer. Cygwin command line is lightly tested, but slower than a true Bash environment.
To properly configure git endlines for Windows, run this configuration
1git config --global core.autocrlf true
1git clone https://github.com/haxtheweb/webcomponents.git 2cd webcomponents 3npm install --global @haxtheweb/create 4yarn global add polymer-cli 5yarn global add @web/test-runner 6yarn global add @web/test-runner-commands 7yarn global add @web/test-runner-puppeteer 8yarn global add @web/test-runner-playwright 9yarn global add lerna 10yarn global add web-component-analyzer 11yarn install
1cd elements/ELEMENTNAME 2yarn start
Edit files in lib/
, src/
, locales/
and demo/
in order to modify the element to contribute back to us via PR.
hax create
yarn test
yarn run build
yarn run storybook
yarn run build-storybook
lerna publish
lerna run build --no-bail
build
command in all projects in the repo, don't bail if there's an issueBecause this is a monorepo, each web component will need to be independently built in order to actively work on and preview the changes. Every web component has its own Gulp file and Yarn/NPM script.
While still running yarn start
in one terminal window (which runs the local server), you will need to open another terminal window, drill into the directory of the web component you'd like to work on, and execute the yarn run dev
command. This command will use gulp tasks to watch the files within that web component directory and will automatically re-run the build command and refresh the browser when you make changes to the web component.
Run wcf element
to make a new element. Go to the new element following the directions generated at the end of the element's creation. To work on the new-element run yarn start
from it's directory. If you are pulling in another element to use, run yarn add projectname --save
.
1cd /Sites/webcomponents 2yarn start 3 4# SHIFT + CTRL + T to open a new tab in Terminal 5 6cd elements your-card # or any other web component 7yarn run dev
Make a change to the web component and save. The gulpfile will handle transpiling the element down to ES5 and will bring in the HTML and Sass into the template in the web component.
To test all webcomponents, run yarn test
from the root of the repo. If you only want to test the web component you're working on:
1cd elements/your-card 2yarn test
Also, if your tests are failing and you want access to a live browser to investigate why, the following flag will keep the browser open.
1yarn test -- -p
Then open the URL that will be printed in the terminal. It looks something like this: http://localhost:8081/components/@@haxtheweb/haxtheweb/generated-index.html?cli_browser_id=0
.
We've added Storybook to webcomponents as a way to preview our web components as they are being developed. We'll also use Storybook to export a static site that will be the demo site for webcomponents.
To run storybook
1yarn run storybook
This will start a web server on port 9001. Navigate in your browser to http://localhost:9001
to see Storybook in action. Storybook will watch for file changes and reload the browser automatically for you. This is a little slow at the moment, but we'll look into speeding this up.
To export the storybook static site
1yarn run build-storybook
This places a build of the storybook site in the .storybook_out directory.
For any web component that has a third-party dependency you will need to update the /.storybook/webpack.config.js
file. You will need to create an alias for your depedency.
For example:
1"../../whatwg-fetch/fetch.js": path.join( // this is the third-party dependency in the webcomponents 2 __dirname, 3 "../node_modules/whatwg-fetch/fetch.js" // this is where it lives in node_modules 4)
Client: JavaScript, LitElement, Lit(https://lit.dev/)
Server: Node.js
Contributions are always welcome!
Past contributors, student and larger community, can be found here: https://github.com/haxtheweb/webcomponents/graphs/contributors
No vulnerabilities found.
No security vulnerabilities found.