Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

refactor: Move package.json and other front-end collateral into 'site'#128

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
bryphe-coder merged 5 commits intomainfrombryphe/refactor/package-to-site
Feb 1, 2022

Conversation

bryphe-coder
Copy link
Contributor

This refactors the front-end collateral to all live withinsite - so nopackage.json at the root.

The reason we had this initially is that the jest test run and NextJS actually require havingtwo differenttsconfigs - Next needsjsx:"preserve", while jest needsjsx:"react" - we were usingtsconfigs at different levels at the hierarchy to manage this.

I changed this behavior to still use two differenttsconfig.jsons, which is mandatory - but just side-by-side insite.

Once that's fixed, it was easy to move everything intosite

Follow up from:#118 (comment)

kylecarbs reacted with heart emoji
@bryphe-coderbryphe-coder changed the titlerefactor: Move package.json and other front-end collateral into site/refactor: Move package.json and other front-end collateral into 'site'Feb 1, 2022
@bryphe-coderbryphe-coder self-assigned thisFeb 1, 2022
<Header
title={firstOrItem(project)}
description={firstOrItem(organization)}
title={firstOrItem(project,"")}
Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

There were a couple places where the type-checks became stricter! I figured it was easier to leave them on in the stricter mode, and fix them, then to figure out how to turn them off

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Yup, agreed!

bryphe-coder reacted with hooray emoji
@codecov
Copy link

codecovbot commentedFeb 1, 2022
edited
Loading

Codecov Report

Merging#128 (e62914c) intomain (3ba8242) willdecrease coverage by1.11%.
The diff coverage is28.57%.

Impacted file tree graph

@@            Coverage Diff             @@##             main     #128      +/-   ##==========================================- Coverage   71.66%   70.54%   -1.12%==========================================  Files          92       96       +4       Lines        4168     4254      +86       Branches       59       68       +9     ==========================================+ Hits         2987     3001      +14- Misses        935     1010      +75+ Partials      246      243       -3
FlagCoverage Δ
unittest-go-macos-latest68.22% <ø> (+0.60%)⬆️
unittest-go-ubuntu-latest70.01% <ø> (-0.25%)⬇️
unittest-go-windows-latest68.22% <ø> (+0.72%)⬆️
unittest-js64.62% <28.57%> (-10.11%)⬇️
Impacted FilesCoverage Δ
site/components/ErrorSummary/index.tsx60.00% <0.00%> (-40.00%)⬇️
site/jest-runner.eslint.config.js0.00% <ø> (ø)
site/jest.config.js0.00% <0.00%> (ø)
.../pages/projects/[organization]/[project]/index.tsx0.00% <ø> (ø)
site/util/array.ts66.66% <50.00%> (-33.34%)⬇️
provisionerd/provisionerd.go75.67% <0.00%> (-1.09%)⬇️
site/pages/projects/index.tsx0.00% <0.00%> (ø)
peerbroker/listen.go84.80% <0.00%> (+2.39%)⬆️
... and2 more

Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last update3ba8242...e62914c. Read thecomment docs.

@bryphe-coderbryphe-coder merged commit78e652a intomainFeb 1, 2022
@bryphe-coderbryphe-coder deleted the bryphe/refactor/package-to-site branchFebruary 1, 2022 21:34
bryphe-coder added a commit that referenced this pull requestFeb 1, 2022
…json (#133)Missed in#128 - need to update the `dependabot.yml` to point to the correct package.json, which was moved from `/package.json` -> `/site/package.json`
bryphe-coder added a commit that referenced this pull requestFeb 1, 2022
…139)Unfortunately along with#133 I missed one other item in moving files to `/site` in#128 - ignoring new configuration files (and other folders) in our `jest.config.js`.This caused our coverage numbers in front-end code to dip, because files that shouldn't be included (and previously weren't included) were now being tracked for coverage.
bryphe-coder added a commit that referenced this pull requestFeb 2, 2022
Hopefully the last thing I missed in#128 ... this fixes the `./develop.sh` script and `site/dev.ts` to account for the new pathing of `package.json`.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@kylecarbskylecarbskylecarbs approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@bryphe-coder@kylecarbs

[8]ページ先頭

©2009-2025 Movatter.jp