diff --git a/lib/potassium/assets/.circleci/config.yml.erb b/lib/potassium/assets/.circleci/config.yml.erb index 11cccfdc..1f515a69 100644 --- a/lib/potassium/assets/.circleci/config.yml.erb +++ b/lib/potassium/assets/.circleci/config.yml.erb @@ -164,6 +164,20 @@ jobs: cat tmp/files_to_lint | grep -E '.+\.(js|jsx|vue)$' | xargs yarn run eslint \ | ./bin/reviewdog -reporter=github-pr-review -f=eslint + - run: + name: Run tsc + shell: /bin/bash + command: | + cat tmp/files_to_lint | grep -E '.+\.(ts)$' | xargs yarn run tsc --noEmit ./app/javascript/types/*.d.ts \ + | ./bin/reviewdog -reporter=github-pr-review -f=tsc + + - run: + name: Run vue-tsc + shell: /bin/bash + command: | + cat tmp/files_to_lint | grep -E '.+\.(vue)$' | xargs yarn run vue-tsc --noEmit \ + | ./bin/reviewdog -reporter=github-pr-review -f=tsc + - run: name: Run stylelint shell: /bin/bash diff --git a/lib/potassium/recipes/front_end.rb b/lib/potassium/recipes/front_end.rb index 7f283daa..4a513a24 100644 --- a/lib/potassium/recipes/front_end.rb +++ b/lib/potassium/recipes/front_end.rb @@ -122,6 +122,7 @@ def setup_jest def setup_vue run "bin/yarn add vue@#{VUE_VERSION} vue-loader@#{VUE_LOADER_VERSION} "\ "babel-preset-typescript-vue3" + run "bin/yarn add vue-tsc --dev" gsub_file( 'config/webpack/webpack.config.js', ' merge(typescriptConfig, cssConfig, jQueryConfig, webpackConfig);',