Skip to content

Commit 3e95a9c

Browse files
authored
Merge pull request #868 from ember-learn/website-redesign
2 parents 9dd8209 + c350701 commit 3e95a9c

File tree

202 files changed

+8493
-10963
lines changed

Some content is hidden

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

202 files changed

+8493
-10963
lines changed

.ember-cli

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,11 @@
55

66
Setting `disableAnalytics` to true will prevent any data from being sent.
77
*/
8-
"disableAnalytics": false
8+
"disableAnalytics": false,
9+
10+
/**
11+
Setting `isTypeScriptProject` to true will force the blueprint generators to generate TypeScript
12+
rather than JavaScript by default, when a TypeScript version of a given blueprint is available.
13+
*/
14+
"isTypeScriptProject": false
915
}

.eslintignore

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,13 @@
1616
.*/
1717
.eslintcache
1818

19+
# data git checkout
20+
/ember-api-docs-data/
21+
1922
# ember-try
2023
/.node_modules.ember-try/
2124
/bower.json.ember-try
25+
/npm-shrinkwrap.json.ember-try
2226
/package.json.ember-try
23-
24-
# data git checkout
25-
/ember-api-docs-data/
27+
/package-lock.json.ember-try
28+
/yarn.lock.ember-try

.eslintrc.js

Lines changed: 37 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,31 @@
22

33
module.exports = {
44
root: true,
5-
parser: 'babel-eslint',
5+
parser: '@babel/eslint-parser',
66
parserOptions: {
7-
ecmaVersion: 2018,
7+
ecmaVersion: 'latest',
88
sourceType: 'module',
9-
ecmaFeatures: {
10-
legacyDecorators: true,
9+
requireConfigFile: false,
10+
babelOptions: {
11+
plugins: [
12+
['@babel/plugin-proposal-decorators', { decoratorsBeforeExport: true }],
13+
],
1114
},
1215
},
13-
plugins: ['ember'],
14-
extends: [
15-
'eslint:recommended',
16-
'plugin:ember/recommended',
17-
'plugin:prettier/recommended',
18-
],
16+
extends: ['eslint:recommended'],
1917
env: {
2018
browser: true,
2119
},
2220
rules: {
2321
'no-console': 'off',
24-
'ember/no-new-mixins': 'off',
25-
'ember/no-mixins': 'off',
26-
'ember/require-tagless-components': 'off',
27-
'ember/no-classic-classes': 'off',
28-
'ember/no-get': 'off',
29-
'ember/no-classic-components': 'off',
30-
'ember/no-private-routing-service': 'off',
3122
},
3223
overrides: [
3324
// node files
3425
{
3526
files: [
3627
'./.eslintrc.js',
3728
'./.prettierrc.js',
29+
'./.stylelintrc.js',
3830
'./.template-lintrc.js',
3931
'./ember-cli-build.js',
4032
'./testem.js',
@@ -55,17 +47,38 @@ module.exports = {
5547
browser: false,
5648
node: true,
5749
},
58-
plugins: ['node'],
59-
extends: ['plugin:node/recommended'],
50+
extends: ['plugin:n/recommended'],
51+
},
52+
{
53+
files: ['**/*.{js,ts}'],
54+
plugins: ['ember'],
55+
parser: '@typescript-eslint/parser',
56+
extends: [
57+
'eslint:recommended',
58+
'plugin:ember/recommended', // or other configuration
59+
],
6060
rules: {
61-
// this can be removed once the following is fixed
62-
// https://github.com/mysticatea/eslint-plugin-node/issues/77
63-
'node/no-unpublished-require': 'off',
61+
'ember/no-new-mixins': 'off',
62+
'ember/no-mixins': 'off',
63+
'ember/require-tagless-components': 'off',
64+
'ember/no-classic-classes': 'off',
65+
'ember/no-get': 'off',
66+
'ember/no-classic-components': 'off',
67+
'ember/no-private-routing-service': 'off',
6468
},
6569
},
6670
{
67-
// Test files:
68-
files: ['tests/**/*-test.{js,ts}'],
71+
files: ['**/*.gjs'],
72+
parser: 'ember-eslint-parser',
73+
plugins: ['ember'],
74+
extends: [
75+
'eslint:recommended',
76+
'plugin:ember/recommended',
77+
'plugin:ember/recommended-gjs',
78+
],
79+
},
80+
{
81+
files: ['tests/**/*.{js,ts,gjs,gts}'],
6982
extends: ['plugin:qunit/recommended'],
7083
},
7184
],

.github/workflows/ci.yml

Lines changed: 20 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -12,51 +12,43 @@ env:
1212
PERCY_PARALLEL_NONCE: ${{ github.run_id }}-${{ github.run_number }}
1313
PERCY_PARALLEL_TOTAL: 1
1414

15+
concurrency:
16+
group: ci-${{ github.head_ref || github.ref }}
17+
cancel-in-progress: true
18+
1519
jobs:
1620
lint:
17-
name: Lint files
21+
name: "Lint"
1822
runs-on: ubuntu-latest
19-
timeout-minutes: 5
20-
steps:
21-
- name: Check out a copy of the repo
22-
uses: actions/checkout@v4
23+
timeout-minutes: 10
2324

25+
steps:
26+
- uses: actions/checkout@v4
2427
- uses: pnpm/action-setup@v4
25-
26-
- name: Use Node.js ${{ env.NODE_VERSION }}
27-
uses: actions/setup-node@v4
28+
- uses: actions/setup-node@v4
2829
with:
29-
cache: 'pnpm'
30+
cache: pnpm
3031
node-version: ${{ env.NODE_VERSION }}
31-
32-
- name: Install dependencies
33-
run: pnpm i --frozen-lockfile
34-
32+
- name: Install Dependencies
33+
run: pnpm install
3534
- name: Lint
3635
run: pnpm run lint
3736

38-
39-
test-app:
40-
name: Test app
37+
test:
38+
name: "Test"
4139
runs-on: ubuntu-latest
4240
timeout-minutes: 10
43-
steps:
44-
- name: Check out a copy of the repo
45-
uses: actions/checkout@v4
4641

42+
steps:
43+
- uses: actions/checkout@v4
4744
- uses: pnpm/action-setup@v4
48-
49-
- name: Use Node.js ${{ env.NODE_VERSION }}
50-
uses: actions/setup-node@v4
45+
- uses: actions/setup-node@v4
5146
with:
52-
cache: 'pnpm'
47+
cache: pnpm
5348
node-version: ${{ env.NODE_VERSION }}
54-
55-
- run: pnpm install --frozen-lockfile
56-
49+
- run: pnpm install
5750
- run: pnpm run clone
58-
59-
- name: Test
51+
- name: Run Tests
6052
env:
6153
PERCY_PARALLEL_NONCE: ${{ env.PERCY_PARALLEL_NONCE }}
6254
PERCY_PARALLEL_TOTAL: ${{ env.PERCY_PARALLEL_TOTAL }}

.github/workflows/gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- uses: pnpm/action-setup@v4
1616
- uses: actions/setup-node@v4
1717
with:
18-
cache: 'pnpm'
18+
cache: "pnpm"
1919
node-version: 20
2020
- run: pnpm i --frozen-lockfile
2121
- run: npx lint-to-the-future output -o lttfOutput --rootUrl ember-api-docs --previous-results https://ember-learn.github.io/ember-api-docs/data.json

.gitignore

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,17 @@ browserstack-local.pid
3636
local.log
3737
.vscode/
3838

39+
# ember-api-docs-data checkout
40+
/ember-api-docs-data/
41+
/ember-api-docs-data
42+
3943
# ember-try
4044
/.node_modules.ember-try/
4145
/bower.json.ember-try
46+
/npm-shrinkwrap.json.ember-try
4247
/package.json.ember-try
48+
/package-lock.json.ember-try
49+
/yarn.lock.ember-try
4350

44-
/ember-api-docs-data/
45-
/ember-api-docs-data
51+
# broccoli-debug
52+
/DEBUG/

.prettierignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,24 @@
1414
/coverage/
1515
!.*
1616
.eslintcache
17+
.lint-todo/
1718

1819
# ember-try
1920
/.node_modules.ember-try/
2021
/bower.json.ember-try
22+
/npm-shrinkwrap.json.ember-try
2123
/package.json.ember-try
24+
/package-lock.json.ember-try
25+
/yarn.lock.ember-try
26+
27+
# Misc files
28+
*.md
29+
pnpm-lock.yaml
30+
jsconfig.json
31+
32+
# api docs data
33+
/ember-api-docs-data/
34+
35+
36+
# hbs -- no point to prettier before moving to <template>
37+
*.hbs

.prettierrc.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
'use strict';
22

33
module.exports = {
4-
singleQuote: true,
4+
plugins: ['prettier-plugin-ember-template-tag'],
5+
overrides: [
6+
{
7+
files: '*.{js,ts,gjs,gts}',
8+
options: {
9+
singleQuote: true,
10+
},
11+
},
12+
],
513
};

.stylelintignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# unconventional files
2+
/blueprints/*/files/
3+
4+
# compiled output
5+
/dist/
6+
7+
# addons
8+
/.node_modules.ember-try/

.stylelintrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
'use strict';
2+
3+
module.exports = {
4+
extends: ['stylelint-config-standard'],
5+
};

0 commit comments

Comments
 (0)