Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 4 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ jobs:
name: Stylelint
command: pnpm stylelint

- run:
name: Vitest
command: pnpm vitest run --coverage

- run:
name: Verify Stylelint Autogen
command: bundle exec exe/stylelint_autogen
Expand Down
9 changes: 0 additions & 9 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,4 @@
get "/starred", to: "stories#starred"
put "/stories/:id", to: "stories#update"
post "/stories/mark_all_as_read", to: "stories#mark_all_as_read"

unless Rails.env.production?
require_relative "../spec/javascript/test_controller"

get "/test", to: "test#index"
get "/spec/*splat", to: "test#spec"
get "/vendor/js/*splat", to: "test#vendor"
get "/vendor/css/*splat", to: "test#vendor"
end
end
10 changes: 1 addition & 9 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,8 @@ export default [
{
files: ["spec/javascript/spec/**"],
languageOptions: {
sourceType: "module",
globals: {
describe: "readonly",
it: "readonly",
before: "readonly",
beforeEach: "readonly",
afterEach: "readonly",
sinon: "readonly",
chai: "readonly",
mocha: "readonly",
initMochaPhantomJS: "readonly",
Story: "readonly",
StoryView: "readonly",
StoryList: "readonly",
Expand Down
14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"private": true,
"scripts": {
"eslint": "eslint app/assets/javascripts/ spec/javascript/spec/",
"stylelint": "stylelint 'app/assets/stylesheets/**/*.css'"
"stylelint": "stylelint 'app/assets/stylesheets/**/*.css'",
"test": "vitest run --coverage"
},
"dependencies": {
"@fontsource/lato": "^5.2.7",
Expand All @@ -17,18 +18,15 @@
},
"devDependencies": {
"@eslint/js": "^9.21.0",
"chai": "1.6.0",
"chai-backbone": "0.9.4",
"chai-changes": "1.3.6",
"@vitest/coverage-v8": "4.0.18",
"eslint": "^9.21.0",
"globals": "^16.0.0",
"mocha": "3.5.0",
"sinon": "1.7.1",
"sinon-chai": "2.14.0",
"jsdom": "^28.0.0",
"stylelint": "^17.3.0",
"stylelint-config-recess-order": "^7.6.1",
"stylelint-config-standard": "^40.0.0",
"stylelint-selector-bem-pattern": "^4.0.1"
"stylelint-selector-bem-pattern": "^4.0.1",
"vitest": "^4.0.18"
},
"packageManager": "pnpm@10.4.1"
}
Loading