From 994355c1411d4e76b5f5ee3df49c125d01e5691c Mon Sep 17 00:00:00 2001 From: Jake Strawn Date: Fri, 8 Mar 2024 14:44:28 -0500 Subject: [PATCH] fix(build): Adjusting builds to have correct files. --- .github/workflows/build.yml | 11 +++-- .../components/outline-core-alert/LICENSE.md | 9 ++++ .../components/outline-core-alert/index.html | 24 +++++++++ .../outline-core-alert/package.json | 7 ++- .../outline-core-alert/src/component.d.ts | 22 +++++++++ .../outline-core-alert/vite.config.js | 49 +++++++++++++++++++ .../components/outline-core-link/package.json | 1 + .../adopted-stylesheets/package.json | 1 + 8 files changed, 119 insertions(+), 5 deletions(-) create mode 100644 packages/components/outline-core-alert/LICENSE.md create mode 100644 packages/components/outline-core-alert/index.html create mode 100644 packages/components/outline-core-alert/src/component.d.ts create mode 100644 packages/components/outline-core-alert/vite.config.js diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6af0273e..a6aa5169 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -155,14 +155,17 @@ jobs: - name: Build Storybook run: yarn storybook:build + # @see https://github.com/marketplace/actions/github-status - name: Check GitHub Pages status - uses: crazy-max/ghaction-github-status@v3 + uses: crazy-max/ghaction-github-status@v4 with: - pages_threshold: major_outage - + overall_threshold: minor + pages_threshold: partial_outage + + # @see https://github.com/marketplace/actions/github-pages - name: Deploy to GitHub Pages if: success() - uses: crazy-max/ghaction-github-pages@v3 + uses: crazy-max/ghaction-github-pages@v4 with: target_branch: gh-pages build_dir: storybook-static diff --git a/packages/components/outline-core-alert/LICENSE.md b/packages/components/outline-core-alert/LICENSE.md new file mode 100644 index 00000000..01c84587 --- /dev/null +++ b/packages/components/outline-core-alert/LICENSE.md @@ -0,0 +1,9 @@ +# MIT License + +Copyright © 2024 Phase2 Technology + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/packages/components/outline-core-alert/index.html b/packages/components/outline-core-alert/index.html new file mode 100644 index 00000000..6b2842ee --- /dev/null +++ b/packages/components/outline-core-alert/index.html @@ -0,0 +1,24 @@ + + + + + + + Component Test Page + + + + + Outline + + diff --git a/packages/components/outline-core-alert/package.json b/packages/components/outline-core-alert/package.json index e2d48637..60c2eb20 100644 --- a/packages/components/outline-core-alert/package.json +++ b/packages/components/outline-core-alert/package.json @@ -18,6 +18,11 @@ "files": [ "/dist/", "/src/", + "/index.ts", + "/README.md", + "/LICENSE", + "/CHANGELOG.md", + "/package.json", "!/dist/tsconfig.build.tsbuildinfo" ], "author": "Phase2 Technology", @@ -29,7 +34,7 @@ "homepage": "https://github.com/phase2/outline/tree/next/packages/components/outline-core-alert", "license": "BSD-3-Clause", "scripts": { - "build": "node ../../../scripts/build.js", + "build": "node ../../../scripts/bundle.js", "package": "yarn publish" }, "publishConfig": { diff --git a/packages/components/outline-core-alert/src/component.d.ts b/packages/components/outline-core-alert/src/component.d.ts new file mode 100644 index 00000000..58919466 --- /dev/null +++ b/packages/components/outline-core-alert/src/component.d.ts @@ -0,0 +1,22 @@ + +/** + * @file + * This is a TypeScript declaration file. It provides type checking and autocompletion + * for TypeScript files. It can be used as a reference for future components. + * + * @see {@link https://www.typescriptlang.org/docs/handbook/modules.html#ambient-modules | TypeScript Ambient Modules} + */ + +/** + * This declaration is for importing CSS files as a string. + * + * This is made possible by the `?inline` query parameter in Vite, which allows + * the CSS file to be imported as a string instead of being injected into a `