Skip to content

Commit c991e02

Browse files
authored
Nuka v8 (#1047)
2 parents 51616cb + e816afd commit c991e02

File tree

146 files changed

+7447
-9927
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

146 files changed

+7447
-9927
lines changed

.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"presets": ["@babel/preset-env", "@babel/preset-typescript", "@babel/preset-react"],
33
"plugins": [
44
"@babel/plugin-transform-object-assign",
5-
"@babel/plugin-proposal-object-rest-spread"
5+
"@babel/plugin-transform-object-rest-spread"
66
],
77
"env": {
88
"esm": {

.changeset/config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@
77
}
88
],
99
"access": "public",
10-
"baseBranch": "main"
10+
"baseBranch": "main",
11+
"ignore": ["website"]
1112
}

.changeset/empty-cows-accept.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'nuka-carousel': major
3+
---
4+
5+
Nuka v8 Release

.eslintrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"prettier",
55
"plugin:@typescript-eslint/recommended",
66
"plugin:prettier/recommended",
7-
"plugin:cypress/recommended",
87
"plugin:react/recommended"
98
],
109
"env": {
@@ -45,6 +44,7 @@
4544
"react-hooks/rules-of-hooks": "error",
4645
"react-hooks/exhaustive-deps": "error",
4746
"@typescript-eslint/no-unused-vars": ["error"],
48-
"@typescript-eslint/no-var-requires": 0
47+
"@typescript-eslint/no-var-requires": 0,
48+
"react/react-in-jsx-scope": "off"
4949
}
5050
}

.github/actions/setup/action.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Setup
2+
description: Setup Build Step
3+
inputs:
4+
node-version:
5+
required: true
6+
default: '18.x'
7+
8+
runs:
9+
using: "composite"
10+
steps:
11+
- uses: pnpm/action-setup@v3
12+
with:
13+
version: 7
14+
15+
- name: Use Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: ${{ inputs.node-version }}
19+
cache: 'pnpm'
20+
21+
- name: Install dependencies
22+
shell: bash
23+
run: pnpm install

.github/workflows/chromatic.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Chromatic
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
paths:
11+
- 'packages/**'
12+
13+
jobs:
14+
chromatic:
15+
name: Storybook Publish
16+
runs-on: ubuntu-latest
17+
steps:
18+
# requires all branches and tags to be fetched for chromatic
19+
- uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
23+
- uses: ./.github/actions/setup
24+
25+
- name: Build
26+
run: pnpm build
27+
28+
- name: Publish to Chromatic
29+
uses: chromaui/action@v1
30+
with:
31+
token: ${{ secrets.GITHUB_TOKEN }}
32+
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}

.github/workflows/ci.yml

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -12,36 +12,12 @@ jobs:
1212
build:
1313
name: Check and build codebase
1414
runs-on: ubuntu-latest
15-
strategy:
16-
matrix:
17-
node-version: [ 16.x, 18.x ]
1815
steps:
19-
- uses: actions/checkout@v2
20-
- uses: actions/setup-node@v2
21-
with:
22-
node-version: ${{ matrix.node-version }}
16+
- uses: actions/checkout@v4
17+
- uses: ./.github/actions/setup
2318

24-
- uses: pnpm/action-setup@v2.2.2
25-
with:
26-
version: 7
27-
28-
- name: Get pnpm store directory
29-
id: pnpm-cache
30-
run: echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
31-
32-
- name: Setup pnpm cache
33-
uses: actions/cache@v3
34-
with:
35-
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
36-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('./pnpm-lock.yaml') }}
37-
restore-keys: |
38-
${{ runner.os }}-pnpm-store-
39-
40-
- name: Install dependencies
41-
run: pnpm install
42-
43-
- name: Check Code ${{ matrix.node-version }}
19+
- name: Check Code
4420
run: pnpm check:ci
4521

46-
- name: Build ${{ matrix.node-version }}
22+
- name: Build
4723
run: pnpm build

.github/workflows/cypress.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -18,33 +18,8 @@ jobs:
1818
pull-requests: write
1919

2020
steps:
21-
- uses: actions/checkout@v2
22-
with:
23-
fetch-depth: 0
24-
25-
- name: Use Node.js
26-
uses: actions/setup-node@v1
27-
with:
28-
node-version: 18.x
29-
30-
- uses: pnpm/action-setup@v2.2.2
31-
with:
32-
version: 7
33-
34-
- name: Get pnpm store directory
35-
id: pnpm-cache
36-
run: echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
37-
38-
- name: Setup pnpm cache
39-
uses: actions/cache@v3
40-
with:
41-
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
42-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
43-
restore-keys: |
44-
${{ runner.os }}-pnpm-store-
45-
46-
- name: Install dependencies
47-
run: pnpm install
21+
- uses: actions/checkout@v4
22+
- uses: ./.github/actions/setup
4823

4924
- name: Build packages
5025
run: pnpm run build
@@ -53,9 +28,6 @@ jobs:
5328
id: changesets
5429
uses: changesets/action@v1
5530
with:
56-
# Note: Our `package.json:scripts.version` currently doesn't have `--fix-lockfile` for
57-
# `pnpm install` because of a PNPM bug of some kind.
58-
# https://github.com/FormidableLabs/spectacle/issues/1156
5931
version: pnpm run version
6032
publish: pnpm changeset publish
6133
env:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,4 @@ cypress/screenshots
4242
cypress/videos
4343
/packages/nuka/cypress/screenshots
4444
/packages/nuka/cypress/videos
45+
/packages/nuka/storybook-static

0 commit comments

Comments
 (0)