Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fresco #196

Open
wants to merge 26 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
3b26ce4
use sass and remove node-sass
jthrilly Nov 24, 2022
6565796
import changes needed by vite
jthrilly Nov 24, 2022
8f9db32
implement bundling with rollup
jthrilly Nov 25, 2022
57886ca
mass reorganization of exports and folder structure
jthrilly Nov 29, 2022
c6417ce
fix circular dependency and incorrect exports
jthrilly Nov 29, 2022
5b1673b
upgrade storybook to webpack 5, fix Icon not defined issue
jthrilly Nov 30, 2022
ddfc6e2
linting
jthrilly Nov 30, 2022
9c3a0b6
update react, framer-motion, and material icons
jthrilly Dec 1, 2022
b8c2333
remove recompose, and replace window with usePortal hook
jthrilly Dec 1, 2022
bcbc0c5
linting and fix Number story
jthrilly Dec 1, 2022
f130486
upgrade uuid
jthrilly Dec 1, 2022
46792c0
add missing field exports
jthrilly Dec 1, 2022
feafdbb
Remove cjs build, and attempt to correctly export fields
jthrilly Dec 2, 2022
3715313
add .npmignore including /src and removing /lib
jthrilly Dec 2, 2022
d3feba7
alpha.8
jthrilly Dec 2, 2022
0eab41b
attempt at automatic npm publishing
jthrilly Dec 2, 2022
69e9ae3
update reference to workflow
jthrilly Dec 2, 2022
fa874ca
update publish workflow to run whenever preflight completes
jthrilly Dec 2, 2022
8d5cd64
merge workflows
jthrilly Dec 2, 2022
c175b0c
correctly identify dependent workflow
jthrilly Dec 2, 2022
db00ce7
try to use existing workflow
jthrilly Dec 2, 2022
6e1da3e
attempt at storybook github workflow
jthrilly Dec 2, 2022
ce4a0f2
alpha.9
jthrilly Dec 2, 2022
8e56a44
re-add /src directory for npm package so that sass can be imported di…
jthrilly Dec 2, 2022
8bd28bc
alpha.10
jthrilly Dec 2, 2022
9a1bb79
WIP integration of chromatic for automated UI testing
jthrilly Dec 15, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"presets": [
"@babel/preset-env",
"@babel/preset-react"
],
"plugins": [
"@babel/plugin-proposal-optional-chaining"
]
}
84 changes: 58 additions & 26 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,31 +1,63 @@
{
"extends": "airbnb",
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
"extends": "airbnb",
"env": {
"browser": true,
"commonjs": false,
"es6": true,
"node": false
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 7,
"ecmaFeatures": {
"jsx": true,
"spread": true,
"experimentalObjectRestSpread": true,
"object-shorthand": [
"error",
"always"
]
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 7,
"ecmaFeatures": {
"jsx": true,
"spread": true,
"experimentalObjectRestSpread": true,
"object-shorthand": ["error", "always"]
},
"sourceType": "module"
"sourceType": "module"
},
"plugins": [
"import",
"react"
],
"rules": {
"react/jsx-filename-extension": [
1,
{
"extensions": [
".js",
".jsx"
]
}
],
"react/forbid-prop-types": "off",
"react/no-array-index-key": "off",
"jsx-a11y/no-static-element-interactions": "off",
"import/no-extraneous-dependencies": "off",
"import/no-named-as-default": "off",
"jsx-a11y/click-events-have-key-events": "off",
"no-mixed-operators": [
1,
{
"allowSamePrecedence": true
}
]
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [
".ts",
".tsx"
]
},
"plugins": ["react"],
"rules": {
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/forbid-prop-types": "off",
"react/no-array-index-key": "off",
"jsx-a11y/no-static-element-interactions": "off",
"import/no-extraneous-dependencies": "off",
"import/no-named-as-default": "off",
"jsx-a11y/click-events-have-key-events": "off",
"no-mixed-operators": [1, {"allowSamePrecedence": true}]
"import/resolver": {
"typescript": {
"alwaysTryTypes": true // always try to resolve types under `<root>@types` directory even it doesn't contain any source code, like `@types/unist`
}
}
}
}
50 changes: 50 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: CI
on:
push:
branches: [ master ]
pull_request:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
preflight:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Set node version
- uses: actions/setup-node@v3
with:
node-version: '18.12.1'

# Cache node_modules
- uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}

- name: Install node modules
run: npm ci

- name: Preflight
run: npm run preflight
publish:
needs: [preflight]
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
# Setup .npmrc file to publish to GitHub Packages
- uses: actions/setup-node@v3
with:
node-version: '18.12.1'
- run: npm ci
- run: npm run build
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_AUTH_TOKEN }}

32 changes: 0 additions & 32 deletions .github/workflows/main.yml

This file was deleted.

22 changes: 22 additions & 0 deletions .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Storybook
on:
push:
branches:
- main # if any push happens on branch `main`, run this workflow. You could also add `paths` to detect changes in specific folder

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install and Build
run: |
npm ci
npm run build-storybook

- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: docs-build # output folder from `npm run build-storybook`
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
/node_modules
npm-debug.log*
/lib
.vscode
/docs-build
.vscode
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18.12.1
6 changes: 6 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.DS_STORE
/node_modules
/stories
/docs-build
npm-debug.log*
.vscode
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18.12.1
2 changes: 1 addition & 1 deletion .sass-lint.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
options:
formatter: stylish
files:
include: 'styles/**/*.s+(a|c)ss'
include: 'src/styles/**/*.s+(a|c)ss'
rules:
# Extends
extends-before-mixins: 1
Expand Down
27 changes: 12 additions & 15 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,20 @@ const path = require('path');

module.exports = {
stories: ['../stories/**/*.stories.js'],
framework: "@storybook/react",
core: {
builder: 'webpack5',
},
addons: [
'@storybook/addon-essentials',
'@storybook/addon-links',
{
name: 'storybook-addon-sass-postcss',
options: {
rule: {
test: /\.(scss|sass)$/i,
},
},
}
],
webpackFinal: async (config, { configType }) => {
// `configType` has a value of 'DEVELOPMENT' or 'PRODUCTION'
// You can change the configuration based on that.
// 'PRODUCTION' is used when building the static version of storybook.

// Make whatever fine-grained changes you need
config.module.rules.push({
test: /\.scss$/,
use: ['style-loader', 'css-loader', 'sass-loader'],
include: path.resolve(__dirname, '../'),
});

// Return the altered config
return config;
},
};
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

13 changes: 0 additions & 13 deletions babel.config.js

This file was deleted.

Loading