@articles-media/articles-dev-box 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Articles Dev Box
2
2
 
3
- Shared code, functions, and components for different Articles Media projects.
3
+ Shared code, functions, and components that are commonly used across Articles Media projects. None of this is meant to work outside the Articles Media frontend React ecosystem.
4
4
 
5
5
  ## Getting Started
6
6
 
@@ -16,6 +16,22 @@ Then go to the consuming project directory and run this command.
16
16
  npm link articles-dev-box
17
17
  ```
18
18
 
19
+ For production use add the organization scooped package to your package.json.
20
+
21
+ ```bash
22
+ npm i @articles-media/articles-dev-box
23
+ ```
24
+
25
+ ## Package Exports
26
+
27
+ - ReturnToLauncherButton
28
+ - For bringing users back to their state in the games showcase/launcher
29
+ - GameScoreboard
30
+ - Scoreboard for registered games that links with a user's Articles Media account.
31
+ - Ad
32
+ - Articles Ad component that connects with user data.
33
+
19
34
  # Roadmap
20
35
  ⏹️ Remove Bootstrap reliance
21
- ⏹️ Look into npm package yalc
36
+ ⏹️ Look into npm package yalc
37
+ ⏹️ Automatic GitHub Action for NPM
package/index.js CHANGED
@@ -1,6 +1,7 @@
1
- import ReturnToLauncherButton from './src/ReturnToLauncherButton.jsx';
2
- import ArticlesAd from './src/ArticlesAd.jsx';
3
- import GameScoreboard from './src/GameScoreboard.jsx';
1
+ import ReturnToLauncherButton from '#root/src/components/Games/ReturnToLauncherButton.jsx';
2
+ import ArticlesAd from '#root/src/components/Ads/ArticlesAd.jsx';
3
+ import Ad from '#root/src/components/Ads/Ad.jsx';
4
+ import GameScoreboard from '#root/src/components/Games/GameScoreboard.jsx';
4
5
 
5
6
  function helloWorld() {
6
7
  return "Hello, world!";
@@ -10,5 +11,6 @@ export {
10
11
  helloWorld,
11
12
  ReturnToLauncherButton,
12
13
  ArticlesAd,
14
+ Ad,
13
15
  GameScoreboard,
14
16
  };
package/package.json CHANGED
@@ -1,18 +1,27 @@
1
1
  {
2
2
  "name": "@articles-media/articles-dev-box",
3
3
  "description": "Shared code, functions, and components for different Articles Media projects.",
4
- "version": "1.0.0",
4
+ "version": "1.0.2",
5
5
  "type": "module",
6
+ "imports": {
7
+ "#root/src/*": "./src/*"
8
+ },
6
9
  "main": "index.js",
7
10
  "files": [
8
11
  "index.js",
9
- "src",
10
- "styles"
12
+ "src"
11
13
  ],
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "https://github.com/Articles-Joey/articles-dev-box"
17
+ },
12
18
  "exports": {
13
19
  ".": "./index.js"
14
20
  },
15
21
  "scripts": {
22
+ "dev": "vite",
23
+ "build": "vite build",
24
+ "preview": "vite preview",
16
25
  "test": "echo \"Error: no test specified\" && exit 1"
17
26
  },
18
27
  "keywords": [],
@@ -23,7 +32,15 @@
23
32
  "react-dom": ">=19.2.3"
24
33
  },
25
34
  "devDependencies": {
35
+ "@vitejs/plugin-react": "^5.1.2",
26
36
  "classnames": "^2.5.1",
27
- "sass": "^1.97.2"
37
+ "sass": "^1.97.2",
38
+ "vite": "^7.3.1"
39
+ },
40
+ "dependencies": {
41
+ "axios": "^1.13.2",
42
+ "date-fns": "^4.1.0",
43
+ "react-intersection-observer": "^10.0.0",
44
+ "swr": "^2.3.8"
28
45
  }
29
46
  }