Skip to content

Commit

Permalink
Merge pull request #417 from platanus/skip-tests-on-deploy
Browse files Browse the repository at this point in the history
typescript fixes
  • Loading branch information
gmq authored Oct 5, 2022
2 parents 925b026 + ff085e2 commit 6d31a18
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lib/potassium/assets/app/javascript/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ const api = axios.create({
],
});

export default api;

/*
// Example to use the api object in the path ´app/javascript/api/users.ts´
Expand Down
3 changes: 2 additions & 1 deletion lib/potassium/assets/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"app/javascript/**/*.vue"
],
"exclude": [
"node_modules"
"node_modules",
"**/*.spec.ts"
]
}
2 changes: 1 addition & 1 deletion lib/potassium/recipes/front_end.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def setup_jest

def setup_vue
run "bin/yarn add vue@#{VUE_VERSION} vue-loader@#{VUE_LOADER_VERSION} "\
"babel-preset-typescript-vue3"
"babel-preset-typescript-vue3 @types/humps"
run "bin/yarn add vue-tsc --dev"
gsub_file(
'config/webpack/webpack.config.js',
Expand Down

0 comments on commit 6d31a18

Please sign in to comment.