@articles-media/articles-dev-box
v1.0.15
Published
Shared code, functions, and components for different Articles Media projects.
Readme
Articles Dev Box

Shared code, functions, and components that are commonly used across Articles Media projects.
Warning
None of this is meant to work outside the Articles Media frontend React ecosystem. Breaking changes are being made in between patch releases until 1.1.0, when we switch to major release for breaking.
Getting Started
For production use add the organization scooped package to your package.json.
npm i @articles-media/articles-dev-boxFor local development, navigate to this project and run this command.
npm linkThen go to the consuming project directory and run this command.
npm link @articles-media/articles-dev-boxYou will need to have a dev script running to watch for changes and build the dist to see local changes
npm run devPackage Exports
- ReturnToLauncherButton
- For bringing users back to their state in the games showcase/launcher
- GameScoreboard
- Scoreboard for registered games that links with a user's Articles Media account.
- Ad
- Articles Ad component that connects with user data.
- GlobalHead
- Not used at this time, allows for just related tags to be added to site without other logic.
- GlobalBody
- Easy way to add future logic and components to all projects with ease. For now handling the font awesome script. Also shows connection status to required servers in development. Will ping the main and auth server as they are needed for some dev-box features.
- ViewUserModal
- View user profile data and recent activity.
- useUserToken
- Hook for getting the subdomain auth token.
- useUserDetails
- Hook for getting the details of the current user if a valid user token is found.
Roadmap
⏹️ Remove Bootstrap reliance
⏹️ Look into npm package yalc
⏹️ Automatic GitHub Action for NPM are done but need to figure out how to show verified build badge on NPM.
⏹️ Figure out why this package does not work outside webpack, on Turbopack for example it fails.
TODO
- Bundle SCSS on a component level instead of a project level.
- Verify I am exporting components the most efficient way.
