Skip to content

Commit 912ae77

Browse files
committed
Upgrade to Simplecast v2
1 parent fd487aa commit 912ae77

File tree

266 files changed

+6676
-15677
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

266 files changed

+6676
-15677
lines changed

Diff for: .babelrc

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"presets": [
3+
"next/babel"
4+
],
5+
"plugins": [
6+
[
7+
"styled-components",
8+
{
9+
"ssr": true
10+
}
11+
]
12+
]
13+
}

Diff for: .babelrc.js

-7
This file was deleted.

Diff for: .eslintignore

-1
This file was deleted.

Diff for: .eslintrc.json

+8-4
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@
1212
"prettier"
1313
],
1414
"env": {
15+
"node": true,
1516
"browser": true,
1617
"jasmine": true,
17-
"jest": true
18+
"jest": true,
19+
"es6": true
1820
},
1921
"rules": {
2022
"prettier/prettier": [
@@ -26,15 +28,17 @@
2628
"react/display-name": "off",
2729
"react/react-in-jsx-scope": "off",
2830
"@typescript-eslint/explicit-function-return-type": "off",
31+
"@typescript-eslint/explicit-module-boundary-types": "off",
2932
"@typescript-eslint/camelcase": "off",
3033
"@typescript-eslint/ban-ts-ignore": "off",
31-
"@typescript-eslint/no-explicit-any": "off"
34+
"@typescript-eslint/no-explicit-any": "off",
35+
"@typescript-eslint/ban-ts-comment": "off"
3236
},
37+
"parser": "@typescript-eslint/parser",
3338
"settings": {
3439
"react": {
3540
"pragma": "React",
3641
"version": "detect"
3742
}
38-
},
39-
"parser": "@typescript-eslint/parser"
43+
}
4044
}

Diff for: .flowconfig

-23
This file was deleted.

Diff for: .github/workflows/main.yml

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ jobs:
1111
runs-on: ubuntu-latest
1212
# let's make sure our tests pass on Chrome browser
1313
name: E2E on Chrome
14+
env:
15+
SPECFM_FATHOM_SITE_ID: ${{ secrets.SPECFM_FATHOM_SITE_ID }}
16+
SPECFM_FATHOM_CUSTOM_URL: ${{ secrets.SPECFM_FATHOM_CUSTOM_URL }}
17+
SIMPLECAST_V2_API_KEY: ${{ secrets.SIMPLECAST_V2_API_KEY }}
1418
steps:
1519
- name: Checkout
1620
uses: actions/checkout@v1

Diff for: .github/workflows/search.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ jobs:
1010
- name: curl
1111
uses: wei/curl@master
1212
with:
13-
args: https://search.spec.fm/api/search.ts
13+
args: https://spec.fm/api/search?token={{secrets.SEARCH_INDEXING_TOKEN}}

Diff for: .gitignore

+6-64
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,9 @@
1-
# Logs
2-
logs
3-
*.log
4-
npm-debug.log*
5-
yarn-debug.log*
6-
yarn-error.log*
1+
node_modules
2+
.next
73
.DS_Store
8-
.vscode
9-
10-
# Runtime data
11-
pids
12-
*.pid
13-
*.seed
14-
*.pid.lock
15-
16-
# Directory for instrumented libs generated by jscoverage/JSCover
17-
lib-cov
18-
19-
# Coverage directory used by tools like istanbul
20-
coverage
21-
22-
# nyc test coverage
23-
.nyc_output
24-
25-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
26-
.grunt
27-
28-
# Bower dependency directory (https://bower.io/)
29-
bower_components
30-
31-
# node-waf configuration
32-
.lock-wscript
33-
34-
# Compiled binary addons (https://nodejs.org/api/addons.html)
35-
build/Release
36-
37-
# Dependency directories
38-
node_modules/
39-
jspm_packages/
40-
41-
# TypeScript v1 declaration files
42-
typings/
43-
44-
# Optional npm cache directory
45-
.npm
46-
47-
# Optional eslint cache
48-
.eslintcache
49-
50-
# Optional REPL history
51-
.node_repl_history
52-
53-
# Output of 'npm pack'
54-
*.tgz
55-
56-
# Yarn Integrity file
57-
.yarn-integrity
58-
59-
# dotenv environment variables file
604
.env
615
.env.build
62-
63-
# next.js build output
64-
.next
65-
now-secrets.json
66-
servers/search/build-search
67-
.now
6+
.vscode
7+
yarn-error.log
8+
.now
9+
.vercel

Diff for: .prettierrc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"trailingComma": "es5",
3+
"tabWidth": 2,
4+
"semi": false,
5+
"singleQuote": true
6+
}

Diff for: .vscode/settings.json

-17
This file was deleted.

Diff for: cypress/.eslintrc.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"plugins": [
3+
"cypress"
4+
],
5+
"extends": [
6+
"plugin:cypress/recommended"
7+
],
8+
"env": {
9+
"cypress/globals": true
10+
}
11+
}

Diff for: cypress/integration/About/about_spec.js

-10
This file was deleted.

Diff for: cypress/integration/About/about_spec.ts

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/// <reference types="cypress" />
2+
3+
describe('About', () => {
4+
beforeEach(() => {
5+
cy.visit(`/about`)
6+
})
7+
8+
it('should render', () => {
9+
// page renders
10+
cy.get('[data-cy="about-view"]').should('be.visible')
11+
})
12+
})

Diff for: cypress/integration/Episode/episode_spec.js

-41
This file was deleted.

Diff for: cypress/integration/Episode/episode_spec.ts

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/// <reference types="cypress" />
2+
3+
describe('Episode', () => {
4+
beforeEach(() => {
5+
cy.visit(`/podcasts/developer-tea/317916`)
6+
})
7+
8+
it('should render', () => {
9+
// page renders
10+
cy.get('[data-cy="episode-view"]').should('be.visible')
11+
})
12+
})

Diff for: cypress/integration/Home/home_spec.js

-18
This file was deleted.

Diff for: cypress/integration/Home/home_spec.ts

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/// <reference types="cypress" />
2+
3+
import resources from '../../../src/config/resources'
4+
import podcasts from '../../../src/config/podcasts'
5+
const slugs = podcasts.map((podcast) => podcast.slug)
6+
7+
describe('Home', () => {
8+
beforeEach(() => {
9+
cy.visit(`/`)
10+
})
11+
12+
it('should render', () => {
13+
// page renders
14+
cy.get('[data-cy="home-view"]').should('be.visible')
15+
// podcast should be visible
16+
slugs.map((slug) =>
17+
cy.get(`[data-cy="${slug}-podcast"]`).should('be.visible')
18+
)
19+
//resources should be visible
20+
resources.map((resource) =>
21+
cy.get(`[data-cy="resource-${resource}"]`).should('be.visible')
22+
)
23+
})
24+
})

Diff for: cypress/integration/Podcast/podcast_spec.js

-32
This file was deleted.

0 commit comments

Comments
 (0)