Skip to content

Commit

Permalink
Maintenance: Mobile - Use Histoire
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Oct 5, 2022
1 parent 68fd8ff commit 169e05b
Show file tree
Hide file tree
Showing 115 changed files with 4,301 additions and 15,686 deletions.
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# Skip auto generated files.
app/frontend/**/graphql/**/*.api.ts
app/frontend/shared/graphql/types.ts
.storybook/storybook-static/**

# Skip legacy files
public/assets/tests/**/*.js
Expand Down
20 changes: 12 additions & 8 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,17 @@ module.exports = {
'error',
{
devDependencies: [
'histoire.config.ts',
'tailwind.config.js',
'vite.config.*',
'app/frontend/build/**',
'app/frontend/**/*.spec.*',
'app/frontend/**/__tests__/**/*',
'app/frontend/tests/**/*',
'app/frontend/**/*.stories.ts',
'.storybook/**/*',
'app/frontend/**/*.story.vue',
'app/frontend/**/*.story.vue',
'app/frontend/stories/**/*.ts',
'app/frontend/cypress/**/*',
],
},
Expand Down Expand Up @@ -139,12 +142,6 @@ module.exports = {
'@typescript-eslint/no-var-requires': 'off',
},
},
{
files: ['.storybook/config/*'],
rules: {
'import/no-extraneous-dependencies': 'off',
},
},
{
files: [
'app/frontend/tests/**',
Expand All @@ -153,6 +150,7 @@ module.exports = {
'app/frontend/stories/**',
'app/frontend/cypress/**',
'app/frontend/**/*.stories.ts',
'app/frontend/**/*.story.vue',
'.eslint-plugin-zammad/**',
'.eslintrc.js',
],
Expand Down Expand Up @@ -199,12 +197,18 @@ module.exports = {
'node_modules/vue-easy-lightbox/dist/external-css/vue-easy-lightbox.css',
),
],
[
'histoire',
path.resolve(
__dirname,
'./node_modules/histoire/dist/node/index.js',
),
],
],
extensions: ['.js', '.jsx', '.ts', '.tsx', '.vue'],
},
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx', '.vue'],
paths: [path.resolve(__dirname, '.storybook/node_modules/')],
},
},
// Adding typescript file types, because airbnb doesn't allow this by default.
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/ci/pre.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ bundle config set --local frozen 'true'
bundle config set --local path 'vendor'
bundle install -j "$(nproc)"
yarn install
yarn storybook:install
yarn cypress:install
bundle exec ruby .gitlab/configure_environment.rb
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,6 @@
yarn-error.log
.yarn/cache

# Storybook
.storybook/storybook-static

# Cypress
.cypress/screenshots/*
.cypress/videos/*
Expand Down
1 change: 0 additions & 1 deletion .gitlab/ci/__includes__/scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
yarn_install_all:
# retry on errors
- yarn install || yarn install || yarn install
- yarn storybook:install || yarn storybook:install || yarn storybook:install
- yarn cypress:install || yarn cypress:install || yarn cypress:install
- yarn --cwd .eslint-plugin-zammad install || yarn --cwd .eslint-plugin-zammad install || yarn --cwd .eslint-plugin-zammad install
- yarn --cwd public/assets/chat install || yarn --cwd public/assets/chat install || yarn --cwd public/assets/chat install
Expand Down
5 changes: 2 additions & 3 deletions .gitlab/ci/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,9 @@
- !reference [.scripts, yarn_install]
- yarn lint:css
- echo "ESLint check..."
- yarn storybook:install
- yarn lint
- echo "Storybook test build..."
- yarn storybook:build
- echo "Histoire test build..."
- yarn story:build

# Must be a separate job because it may fail and is only executed manually.
'lint: orphaned ruby gems':
Expand Down
2 changes: 2 additions & 0 deletions .gitlab/ci/pre.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
before_script: []
script:
- !reference [.scripts, yarn_install_all]
- yarn cypress:install
- yarn --cwd ./.eslint-plugin-zammad install
after_script: []

# Executed on a dedicated runner.
Expand Down
55 changes: 0 additions & 55 deletions .storybook/config/main.js

This file was deleted.

13 changes: 0 additions & 13 deletions .storybook/config/preview-body.html

This file was deleted.

48 changes: 0 additions & 48 deletions .storybook/config/preview.ts

This file was deleted.

16 changes: 0 additions & 16 deletions .storybook/package.json

This file was deleted.

Loading

0 comments on commit 169e05b

Please sign in to comment.