@newhighsco/press-start 2.4.5 → 2.6.0

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/package.json CHANGED
@@ -1,14 +1,15 @@
1
1
  {
2
2
  "name": "@newhighsco/press-start",
3
3
  "description": "Chipset + Next.js site starter by New High Score",
4
- "version": "2.4.5",
4
+ "version": "2.6.0",
5
5
  "author": "New High Score",
6
6
  "license": "ISC",
7
+ "private": false,
7
8
  "repository": {
8
9
  "type": "git",
9
10
  "url": "https://github.com/newhighsco/press-start.git"
10
11
  },
11
- "homepage": "https://github.com/newhighsco/press-start#readme",
12
+ "homepage": "https://github.com/newhighsco/press-start/tree/main/packages/press-start/#readme",
12
13
  "bugs": {
13
14
  "url": "https://github.com/newhighsco/press-start/issues"
14
15
  },
@@ -16,85 +17,11 @@
16
17
  "files": [
17
18
  "src"
18
19
  ],
19
- "scripts": {
20
- "prepare": "husky && yarn --cwd template install --ignore-scripts",
21
- "start": "yarn --cwd template start",
22
- "build": "yarn --cwd template build",
23
- "serve": "yarn --cwd template serve",
24
- "test": "yarn lint",
25
- "analyze": "omlet analyze",
26
- "lint": "concurrently yarn:lint:*",
27
- "lint:js": "eslint --cache --ignore-path .gitignore .",
28
- "lint:css": "stylelint --cache --ignore-path .gitignore '**/*.?(s)css'",
29
- "format": "concurrently yarn:format:*",
30
- "format:js": "yarn lint:js --fix",
31
- "format:css": "yarn lint:css --fix"
32
- },
33
20
  "dependencies": {
21
+ "@newhighsco/chipset": "6.22.0",
34
22
  "next-seo": "6.8.0"
35
23
  },
36
- "devDependencies": {
37
- "@commitlint/cli": "19.8.1",
38
- "@newhighsco/commitlint-config": "1.1.46",
39
- "@newhighsco/editor-config": "1.2.0",
40
- "@newhighsco/eslint-config": "4.1.44",
41
- "@newhighsco/prettier-config": "2.1.32",
42
- "@newhighsco/release-config": "1.4.7",
43
- "@newhighsco/stylelint-config": "4.0.17",
44
- "@omlet/cli": "2.0.0",
45
- "concurrently": "9.2.1",
46
- "eslint": "8.57.1",
47
- "husky": "9.1.7",
48
- "prettier": "3.6.2",
49
- "semantic-release": "24.2.7",
50
- "stylelint": "16.23.1"
51
- },
52
24
  "peerDependencies": {
53
25
  "next": "15.5.2"
54
- },
55
- "commitlint": {
56
- "extends": [
57
- "@newhighsco"
58
- ]
59
- },
60
- "eslintConfig": {
61
- "extends": [
62
- "@newhighsco/eslint-config"
63
- ]
64
- },
65
- "omlet": {
66
- "exports": {
67
- ".": "src/index.js"
68
- },
69
- "ignore": [
70
- "template/**"
71
- ]
72
- },
73
- "prettier": "@newhighsco/prettier-config",
74
- "release": {
75
- "extends": "@newhighsco/release-config",
76
- "branches": [
77
- "main"
78
- ]
79
- },
80
- "renovate": {
81
- "extends": [
82
- "local>newhighsco/.github:renovate-config"
83
- ],
84
- "packageRules": [
85
- {
86
- "matchFileNames": [
87
- "template/package.json"
88
- ],
89
- "extends": [
90
- "local>newhighsco/.github:renovate-config"
91
- ]
92
- }
93
- ]
94
- },
95
- "stylelint": {
96
- "extends": [
97
- "@newhighsco/stylelint-config"
98
- ]
99
26
  }
100
27
  }
@@ -0,0 +1,17 @@
1
+ import { render, screen } from '@testing-library/react'
2
+ import React from 'react'
3
+
4
+ import config from '../../../../../template/site.config'
5
+ import AppPage from '.'
6
+
7
+ describe('Components/AppPage', () => {
8
+ const Component = () => {
9
+ return <div>Content</div>
10
+ }
11
+
12
+ it('should', () => {
13
+ render(<AppPage Component={Component} config={config} />)
14
+
15
+ expect(screen.getByText('Content')).toBeInTheDocument()
16
+ })
17
+ })
@@ -1,10 +1,17 @@
1
- import { LinkProvider, SiteContainer, ThemeProvider } from '@newhighsco/chipset'
1
+ import {
2
+ ImageProvider,
3
+ LinkProvider,
4
+ SiteContainer,
5
+ ThemeProvider
6
+ } from '@newhighsco/chipset'
7
+ import Image from 'next/image'
2
8
  import Link from 'next/link'
3
9
  import { DefaultSeo } from 'next-seo'
4
10
  import { func, object } from 'prop-types'
5
11
  import React from 'react'
6
12
  import urlJoin from 'url-join'
7
13
 
14
+ const renderImage = props => <Image {...props} />
8
15
  const renderLink = props => <Link {...props} />
9
16
 
10
17
  const AppPage = ({ Component, pageProps, theme, config, meta }) => {
@@ -55,10 +62,12 @@ const AppPage = ({ Component, pageProps, theme, config, meta }) => {
55
62
  return (
56
63
  <ThemeProvider themes={theme}>
57
64
  <LinkProvider renderLink={renderLink}>
58
- <SiteContainer>
59
- <DefaultSeo {...meta} />
60
- <Component {...pageProps} />
61
- </SiteContainer>
65
+ <ImageProvider renderImage={renderImage}>
66
+ <SiteContainer>
67
+ <DefaultSeo {...meta} />
68
+ <Component {...pageProps} />
69
+ </SiteContainer>
70
+ </ImageProvider>
62
71
  </LinkProvider>
63
72
  </ThemeProvider>
64
73
  )
package/README.md DELETED
@@ -1,14 +0,0 @@
1
- # ⚡️ Press Start [![NPM version](https://img.shields.io/npm/v/@newhighsco/press-start.svg)](https://npmjs.com/@newhighsco/press-start)
2
-
3
- [Chipset](https://github.com/newhighsco/chipset) + Next.js site starter
4
-
5
- ## Usage
6
-
7
- Get a theme-able Next.js site up and running quickly
8
-
9
- ```
10
- npx create-next-app -e https://github.com/newhighsco/press-start --example-path template
11
- ```
12
-
13
-
14
- ## [CHANGELOG](CHANGELOG.md)