Skip to content

Commit

Permalink
moved to vite
Browse files Browse the repository at this point in the history
  • Loading branch information
le0pard committed Aug 6, 2023
1 parent a02bb93 commit e82f21b
Show file tree
Hide file tree
Showing 114 changed files with 3,992 additions and 7,873 deletions.
164 changes: 0 additions & 164 deletions .eslintrc

This file was deleted.

22 changes: 22 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
module.exports = {
root: true,
env: { browser: true, es2020: true, node: true },
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:react-hooks/recommended',
"plugin:prettier/recommended"
],
ignorePatterns: ['dist', '.eslintrc.cjs', 'vite.config.js'],
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
settings: { react: { version: '18.2' } },
plugins: ['react', 'react-refresh'],
rules: {
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
'react/jsx-uses-react': 'error'
},
}
18 changes: 2 additions & 16 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ jobs:
with:
persist-credentials: false

- name: Install Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true

- name: Install Node.JS
uses: actions/setup-node@v3
with:
Expand All @@ -36,28 +31,19 @@ jobs:
- name: Install Javascript dependencies
run: yarn install --immutable

- name: FE build cache cache
uses: actions/cache@v3
with:
path: |
tmp/cache
key: ${{ runner.os }}-builder-cache-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-builder-cache-
- name: Check lints
run: yarn run lint

- name: Check tests
run: yarn run test

- name: Build website
run: bundle exec middleman build
run: yarn run build

- name: Upload Pages Artifact
uses: actions/upload-pages-artifact@v1
with:
path: "build/"
path: "dist/"

deploy:
needs: build
Expand Down
31 changes: 23 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,27 @@
.bundle
.cache
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
/.sass-cache
/build
/.assets-build
/tmp
/node_modules
yarn-error.log
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

.yarn/*
!.yarn/patches
Expand Down
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"semi": false,
"singleQuote": true,
"bracketSpacing": true,
"arrowParens": "always",
"printWidth": 100,
"trailingComma": "none"
}
1 change: 0 additions & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
ruby 3.2.2
nodejs 20.3.1
312 changes: 156 additions & 156 deletions .yarn/releases/yarn-3.6.0.cjs → .yarn/releases/yarn-3.6.1.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"

yarnPath: .yarn/releases/yarn-3.6.0.cjs
yarnPath: .yarn/releases/yarn-3.6.1.cjs
6 changes: 0 additions & 6 deletions Dockerfile

This file was deleted.

13 changes: 0 additions & 13 deletions Gemfile

This file was deleted.

Loading

0 comments on commit e82f21b

Please sign in to comment.