Skip to content

Commit c246d60

Browse files
committed
convert to vite
1 parent 341b683 commit c246d60

Some content is hidden

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

50 files changed

+19837
-50331
lines changed

.ember-cli

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
{
22
/**
3-
Ember CLI sends analytics information by default. The data is completely
4-
anonymous, but there are times when you might want to disable this behavior.
3+
Setting `isTypeScriptProject` to true will force the blueprint generators to generate TypeScript
4+
rather than JavaScript by default, when a TypeScript version of a given blueprint is available.
5+
*/
6+
"isTypeScriptProject": false,
57

6-
Setting `disableAnalytics` to true will prevent any data from being sent.
8+
/**
9+
Setting `componentAuthoringFormat` to "strict" will force the blueprint generators to generate GJS
10+
or GTS files for the component and the component rendering test. "loose" is the default.
11+
*/
12+
"componentAuthoringFormat": "strict",
13+
14+
/**
15+
Setting `routeAuthoringFormat` to "strict" will force the blueprint generators to generate GJS
16+
or GTS templates for routes. "loose" is the default
717
*/
8-
"disableAnalytics": false
18+
"routeAuthoringFormat": "strict"
919
}

.github/workflows/ci.yml

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,39 +8,42 @@ on:
88
pull_request: {}
99

1010
concurrency:
11-
group: ci-${{ github.head_ref || github.ref }}
12-
cancel-in-progress: true
11+
group: ci-${{ github.head_ref || github.ref }}
12+
cancel-in-progress: true
1313

1414
jobs:
1515
lint:
1616
name: "Lint"
1717
runs-on: ubuntu-latest
18+
timeout-minutes: 10
1819

1920
steps:
20-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v4
22+
- uses: pnpm/action-setup@v4
2123
- name: Install Node
22-
uses: actions/setup-node@v2
24+
uses: actions/setup-node@v4
2325
with:
24-
node-version: 16.x
25-
cache: npm
26+
node-version: 20
27+
cache: pnpm
2628
- name: Install Dependencies
27-
run: npm ci
29+
run: pnpm install --frozen-lockfile
2830
- name: Lint
29-
run: npm run lint
31+
run: pnpm lint
3032

3133
test:
3234
name: "Test"
3335
runs-on: ubuntu-latest
36+
timeout-minutes: 10
3437

3538
steps:
36-
- uses: actions/checkout@v2
39+
- uses: actions/checkout@v4
40+
- uses: pnpm/action-setup@v4
3741
- name: Install Node
38-
uses: actions/setup-node@v2
42+
uses: actions/setup-node@v4
3943
with:
40-
node-version: 16.x
41-
cache: npm
44+
node-version: 20
45+
cache: pnpm
4246
- name: Install Dependencies
43-
run: npm ci
44-
- run: npm run clone
47+
run: pnpm install --frozen-lockfile
4548
- name: Run Tests
46-
run: npm test
49+
run: pnpm test

.gitignore

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,22 @@
1-
# See https://help.github.com/ignore-files/ for more about ignoring files.
2-
31
# compiled output
42
/dist/
3+
/declarations/
54
/tmp/
65

76
# dependencies
8-
/bower_components/
97
/node_modules/
108

119
# misc
1210
/.env*
1311
/.pnp*
14-
/.sass-cache
1512
/.eslintcache
16-
/connect.lock
1713
/coverage/
18-
/libpeerconnection.log
1914
/npm-debug.log*
2015
/testem.log
2116
/yarn-error.log
2217

2318
# ember-try
2419
/.node_modules.ember-try/
25-
/bower.json.ember-try
2620
/npm-shrinkwrap.json.ember-try
2721
/package.json.ember-try
2822
/package-lock.json.ember-try
@@ -31,3 +25,6 @@
3125
# rfcs text
3226
/rfcs/
3327
/processed-rfcs/
28+
29+
# broccoli-debug
30+
/DEBUG/

.prettierignore

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,13 @@
11
# unconventional js
22
/blueprints/*/files/
3-
/vendor/
43

54
# compiled output
65
/dist/
7-
/tmp/
8-
9-
# dependencies
10-
/bower_components/
11-
/node_modules/
126

137
# misc
148
/coverage/
159
!.*
16-
.eslintcache
17-
.lint-todo/
18-
19-
# ember-try
20-
/.node_modules.ember-try/
21-
/bower.json.ember-try
22-
/npm-shrinkwrap.json.ember-try
23-
/package.json.ember-try
24-
/package-lock.json.ember-try
25-
/yarn.lock.ember-try
10+
.*/
11+
/pnpm-lock.yaml
12+
ember-cli-update.json
13+
*.html

.prettierrc.js

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,39 @@
11
'use strict';
22

33
module.exports = {
4+
plugins: ['prettier-plugin-ember-template-tag'],
45
singleQuote: true,
6+
overrides: [
7+
{
8+
files: ['*.js', '*.ts', '*.cjs', '.mjs', '.cts', '.mts', '.cts'],
9+
options: {
10+
trailingComma: 'es5',
11+
},
12+
},
13+
{
14+
files: ['*.html'],
15+
options: {
16+
singleQuote: false,
17+
},
18+
},
19+
{
20+
files: ['*.json'],
21+
options: {
22+
singleQuote: false,
23+
},
24+
},
25+
{
26+
files: ['*.hbs'],
27+
options: {
28+
singleQuote: false,
29+
},
30+
},
31+
{
32+
files: ['*.gjs', '*.gts'],
33+
options: {
34+
templateSingleQuote: false,
35+
trailingComma: 'es5',
36+
},
37+
},
38+
],
539
};

.stylelintignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# unconventional files
2+
/blueprints/*/files/
3+
4+
# compiled output
5+
/dist/

.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+
};

.watchmanconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"ignore_dirs": ["tmp", "dist"]
2+
"ignore_dirs": ["dist"]
33
}

README.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,51 +7,51 @@ A short introduction of this app could easily go here.
77

88
You will need the following things properly installed on your computer.
99

10-
* [Git](https://git-scm.com/)
11-
* [Node.js](https://nodejs.org/) (with npm)
12-
* [Ember CLI](https://ember-cli.com/)
13-
* [Google Chrome](https://google.com/chrome/)
10+
- [Git](https://git-scm.com/)
11+
- [Node.js](https://nodejs.org/)
12+
- [pnpm](https://pnpm.io/)
13+
- [Ember CLI](https://cli.emberjs.com/release/)
14+
- [Google Chrome](https://google.com/chrome/)
1415

1516
## Installation
1617

17-
* `git clone <repository-url>` this repository
18-
* `cd rfcs-app`
19-
* `npm install`
18+
- `git clone <repository-url>` this repository
19+
- `cd rfcs-app`
20+
- `pnpm install`
2021

2122
## Running / Development
2223

23-
* `npm run clone` # to get the latest version of the RFCs repository
24-
* `ember serve`
25-
* Visit your app at [http://localhost:4200](http://localhost:4200).
26-
* Visit your tests at [http://localhost:4200/tests](http://localhost:4200/tests).
24+
- `pnpm start`
25+
- Visit your app at [http://localhost:4200](http://localhost:4200).
26+
- Visit your tests at [http://localhost:4200/tests](http://localhost:4200/tests).
2727

2828
### Code Generators
2929

3030
Make use of the many generators for code, try `ember help generate` for more details
3131

3232
### Running Tests
3333

34-
* `ember test`
35-
* `ember test --server`
34+
- `pnpm test`
35+
- `pnpm test:ember --server`
3636

3737
### Linting
3838

39-
* `npm run lint`
40-
* `npm run lint:fix`
39+
- `pnpm lint`
40+
- `pnpm lint:fix`
4141

4242
### Building
4343

44-
* `ember build` (development)
45-
* `ember build --environment production` (production)
44+
- `pnpm ember build` (development)
45+
- `pnpm build` (production)
4646

4747
### Deploying
4848

4949
Specify what it takes to deploy your app.
5050

5151
## Further Reading / Useful Links
5252

53-
* [ember.js](https://emberjs.com/)
54-
* [ember-cli](https://ember-cli.com/)
55-
* Development Browser Extensions
56-
* [ember inspector for chrome](https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi)
57-
* [ember inspector for firefox](https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/)
53+
- [ember.js](https://emberjs.com/)
54+
- [ember-cli](https://cli.emberjs.com/release/)
55+
- Development Browser Extensions
56+
- [ember inspector for chrome](https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi)
57+
- [ember inspector for firefox](https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/)

app/app-styles/app.css

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
@import "mdbook.css";
2+
@import "fonts.css";
3+
@import "variables.css";
4+
@import "chrome.css";
5+
6+
button.reset {
7+
border: none;
8+
margin: 0;
9+
padding: 0;
10+
width: auto;
11+
overflow: visible;
12+
background: transparent;
13+
color: inherit;
14+
font: inherit;
15+
line-height: normal;
16+
-webkit-font-smoothing: inherit;
17+
-moz-osx-font-smoothing: inherit;
18+
-webkit-appearance: none;
19+
}
20+
21+
.margin-auto {
22+
margin: auto;
23+
}
24+
25+
.p1 {
26+
padding: .5em;
27+
}
28+
29+
.p2 {
30+
padding: 1em;
31+
}
32+
33+
.stage-title {
34+
margin-top: .5rem;
35+
margin-bottom: 0;
36+
}
37+
38+
ul.chapter {
39+
margin-top: 0;
40+
}
41+
42+
.rfc-data-table ul {
43+
padding-left: 1em;
44+
}
45+
46+
.svg-inline--fa {
47+
display: inline-block;
48+
height: 1em;
49+
vertical-align: -0.125em;
50+
}

0 commit comments

Comments
 (0)