1.4.3 • Published 2 months ago

@epigraph/configurator-lite v1.4.3

Weekly downloads
-
License
-
Repository
-
Last release
2 months ago

epigraph-configurator-lite

An initiative to build a version of the configurator that utilises the findings from the epigraph-configurator solution and implements the solution that fulfills about roughly 90% of the projects we have delivered. We also do everything mentioned while ensuring that we build a better user experience at the end of the day.


Some philosophies that we will be adhering to:

  1. Library First - Create libraries instead of web component unless absolutely required (discuss with the team before proceeding)
  2. Engine Agnostic - Shouldn't be too complicated to migrate to a new engine in the future instead of threejs.
  3. Object Oriented Approach (Classes > Functions).
  4. Modularity within the components is important (both core and UI).
  5. Eventually code split.
  6. "Executable" would be a web-component ().
  7. API > QueryParameters > Web component attributes > Input Data/Experience Data.
  8. Event Up Prop Down approach.
  9. AR via model-viewer
  10. Define Analytics early.
  11. Test Driven Development.

Tech Stack:

  1. Bundler: Vite
  2. Primary Language: Typescript.
  3. Engine: Threejs
  4. Linter: ESLint
  5. Formatter: Prettier
  6. UI: React
  7. CI/CD: Github Actions
  8. Unit Tests: Jest

Developer Guildelines:

The entire project is internally called an "App", which is wrapped and deployed as a web-component. This is crucial to remember because anything within the App will be named and structured accordingly. For example:

The top level web-component's class is named "AppConfiguratorLite" within "AppIndex.ts" because it is the entry point for the ConfiguratorLite App. Diving futher into the structure, you will notice that this app has further components. Some of those components are:

  1. app-core
  2. app-ui

There could be more App level components in the future but there needs to be a very solid reason for why something was promoted/implemented at the App component level.

Once we enter the AppComponents level, each of these components manage their own sub-components and expose an API that allows interaction with their sub-components. No AppComponent should ever directly interact with another AppComponent's members/sub-components, instead the API exposed by that AppComponent should be used. You will very commonly see this being used for the communication between the AppCore and the AppUi.

Extending a base class We follow OOP patterns within this project and utilise inheritance as best as we can. This is the reason you will notice that the "app-core" component is broken down into


A generic directory structure:

  • bundle-identifier (app, app-core, app-ui)
    • components (Dedicated for all the bundle level reusable components)
    • enums (All enums relevant to this bundle)
    • interfaces (All interfaces relevant to this bundle)
1.4.3

2 months ago

1.4.2

3 months ago

1.4.1

3 months ago

1.4.0

4 months ago

1.3.4

6 months ago

1.3.3

6 months ago

1.3.2

6 months ago

1.3.1

6 months ago

1.3.0

6 months ago

1.2.2

7 months ago

1.2.1

7 months ago

1.2.0

8 months ago

1.1.1

8 months ago

1.1.0

8 months ago

1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

10 months ago

1.0.0

10 months ago

0.0.19-alpha

10 months ago

0.0.18-alpha

10 months ago

0.0.17-alpha

10 months ago

0.0.16-alpha

10 months ago

0.0.15-alpha

10 months ago

0.0.14-alpha

10 months ago

0.0.13-alpha

10 months ago

0.0.12-alpha

10 months ago

0.0.11-alpha

10 months ago

0.0.10-alpha

10 months ago

0.0.9-alpha

10 months ago

0.0.8-alpha

10 months ago

0.0.7-alpha

10 months ago

0.0.6-alpha

10 months ago

0.0.5-alpha

10 months ago

0.0.4-alpha

10 months ago

0.0.3-alpha

10 months ago

0.0.2-alpha

10 months ago

0.0.1-alpha

10 months ago

0.0.0-alpha

10 months ago