Skip to content

linting/typecheck logs, HMR, upgrade dependencies [week-2+3] - #197

Merged
meganindya merged 5 commits into
sugarlabs:sadn1ck/gsoc-2022from
sadn1ck:sadn1ck/week-3
Sep 8, 2022
Merged

linting/typecheck logs, HMR, upgrade dependencies [week-2+3]#197
meganindya merged 5 commits into
sugarlabs:sadn1ck/gsoc-2022from
sadn1ck:sadn1ck/week-3

Conversation

@sadn1ck

@sadn1ck sadn1ck commented Jul 4, 2022

Copy link
Copy Markdown
Contributor
  • webpack: [build] provide BASE_PATH for build time (Building for subdirectory deployment by default)
  • webpack: [feat] enable HotModuleReplacementPlugin
  • webpack: [feat] enable full typechecking + logs
  • eslint: [feat] add linting logs in development

There is an issue with HMR which leads to full reload happening everytime. I believe that is due to the components manually inserted not being in the main component tree. Still having a look at this.

image

cc @meganindya @ksraj123

* flexibility for default subdirectory deployment (domain.com/dir)

* another build command allows for root deployment (subd.domain.com)

Signed-off-by: Anik Das <anikdas0811@gmail.com>
* used eslint-webpack-plugin

* logs error to terminal and an overlay during development
* sketch.clear() takes 4 args -> r, g, b, a -> added them

* svg imports needed to be declared for typescript to identify their
  types, added declaration to react-app-env.d.ts
Signed-off-by: Anik Das <anikdas0811@gmail.com>
@meganindya
meganindya merged commit a85a320 into sugarlabs:sadn1ck/gsoc-2022 Sep 8, 2022
meganindya added a commit that referenced this pull request Sep 8, 2022
linting/typecheck logs, HMR, upgrade dependencies [week-2+3]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants