diff --git a/.github/workflows/deploy-site.yml b/.github/workflows/deploy-site.yml index 06f43512..44c5b214 100644 --- a/.github/workflows/deploy-site.yml +++ b/.github/workflows/deploy-site.yml @@ -39,14 +39,14 @@ jobs: uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - cache: 'pnpm' + cache: "pnpm" cache-dependency-path: | pnpm-lock.yaml docs/pnpm-lock.yaml - uses: ruby/setup-ruby@v1 with: - ruby-version: '3.0' + ruby-version: "3.0" rubygems: latest bundler-cache: true @@ -62,7 +62,6 @@ jobs: - name: Set base_url run: echo "BASE_URL=$URL/$BASE_PATH" >> $GITHUB_ENV - - name: Build website run: | pnpm run setup diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2d3f752b..b76339f7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,19 +13,17 @@ jobs: node-version: [18] steps: - uses: actions/checkout@v3 -# - uses: pnpm/action-setup@v2 -# with: -# version: 8 -# - name: Use Node.js ${{ matrix.node-version }} -# uses: actions/setup-node@v3 -# with: -# node-version: ${{ matrix.node-version }} -# cache: 'pnpm' -# - name: Install dependencies -# run: pnpm install -# - name: Install dependencies -# run: pnpm install -# - name: Install Playwright Browsers -# run: pnpm exec playwright install --with-deps -# - name: Run Playwright tests -# run: pnpm run verify + - uses: pnpm/action-setup@v2 + with: + version: 8 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: "pnpm" + - name: Install dependencies + run: pnpm install + - name: Install Playwright Browsers + run: pnpm exec playwright install --with-deps + - name: Run Playwright tests + run: pnpm run verify diff --git a/.gitignore b/.gitignore index 79bb5bfe..2306f675 100644 --- a/.gitignore +++ b/.gitignore @@ -131,10 +131,6 @@ dist exports/**/*.d.ts internal/**/*.d.ts -!exports/**/*-types.d.ts -!exports/**/*-globals.d.ts -!internal/**/*-types.d.ts -!internal/**/*-globals.d.ts /custom-elements.json /_site diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 00000000..100914ce --- /dev/null +++ b/.prettierignore @@ -0,0 +1,8 @@ +scripts/ +docs/output/ +docs/bridgetown/ +docs/src/bridgetown/static +docs/.bridgetown-cache +*.hbs +tests/fixtures/ +*.yaml diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d18e233..b766ee79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## Next + +- BREAKING_CHANGE: All components are now scoped under `exports/components//.js` + ## v3.1.2 - 07/18/2024 - Bug Fix(light-code): `wrap="none"` properly renamed to `wrap="hard"` [#22](https://github.com/KonnorRogers/light-pen/pull/22) @@ -5,7 +9,6 @@ - Bug Fix(light-code) Line highlights now work properly when using `wrap="hard"` [#22](https://github.com/KonnorRogers/light-pen/pull/22) - Bug Fix(light-code): Added cursor syncing due to line numbers obstructing view of text [#22](https://github.com/KonnorRogers/light-pen/pull/22) - ## v3.1.1 - 06/01/2024 - Bug Fix(light-code): Fixed a bug that caused LineNumberPlugin to run before the Prism `afterTokenize` hooks. @@ -69,7 +72,6 @@ Bug Fix: `` now correctly passes the `wrap` property down to `
  • `, ``, and `` all use `` internally now. - Improvement: Use declarative shadow DOM and fallback to polyfill in `` - ## v2.3.1 - 02/13/2024 - Update form associated package @@ -107,7 +109,7 @@ Bug Fix: `` now correctly passes the `wrap` property down to `
  • ` // Register under another name -import LightPen "light-pen/exports/light-pen.js" +import LightPen "light-pen/exports/components/light-pen/light-pen.js" LightPen.define("other-name") ``` @@ -40,7 +40,6 @@ LightPen.define("other-name") That's it! - ### Slotting in HTML / CSS / JS ```html @@ -93,4 +92,4 @@ More to come for more docs coming on how to change things! - [ ] - Add vertical resizing of `