Skip to content

Commit 1d19a83

Browse files
authored
Merge pull request #21154 from emberjs/smoke-tests/update-v2-app-template
2 parents 2dea726 + c8f1881 commit 1d19a83

23 files changed

Lines changed: 1113 additions & 14118 deletions

pnpm-lock.yaml

Lines changed: 1004 additions & 495 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

smoke-tests/v2-app-template/.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# EditorConfig helps developers define and maintain consistent
22
# coding styles between different editors and IDEs
3-
# editorconfig.org
3+
# https://editorconfig.org/
44

55
root = true
66

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# This file is committed to git and should not contain any secrets.
2+
#
3+
# Vite recommends using .env.local or .env.[mode].local if you need to manage secrets
4+
# SEE: https://vite.dev/guide/env-and-mode.html#env-files for more information.
5+
6+
7+
# Default NODE_ENV with vite build --mode=test is production
8+
NODE_ENV=development

smoke-tests/v2-app-template/.github/workflows/ci.yml

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,36 +18,30 @@ jobs:
1818
timeout-minutes: 10
1919

2020
steps:
21-
- uses: actions/checkout@v3
22-
- uses: pnpm/action-setup@v4
23-
with:
24-
version: 9
21+
- uses: actions/checkout@v6
2522
- name: Install Node
26-
uses: actions/setup-node@v3
23+
uses: actions/setup-node@v6
2724
with:
28-
node-version: 18
29-
cache: pnpm
25+
node-version: 22
26+
cache: npm
3027
- name: Install Dependencies
31-
run: pnpm install --frozen-lockfile
28+
run: npm ci
3229
- name: Lint
33-
run: pnpm lint
30+
run: npm run lint
3431

3532
test:
3633
name: "Test"
3734
runs-on: ubuntu-latest
3835
timeout-minutes: 10
3936

4037
steps:
41-
- uses: actions/checkout@v3
42-
- uses: pnpm/action-setup@v4
43-
with:
44-
version: 9
38+
- uses: actions/checkout@v6
4539
- name: Install Node
46-
uses: actions/setup-node@v3
40+
uses: actions/setup-node@v6
4741
with:
48-
node-version: 18
49-
cache: pnpm
42+
node-version: 22
43+
cache: npm
5044
- name: Install Dependencies
51-
run: pnpm install --frozen-lockfile
45+
run: npm ci
5246
- name: Run Tests
53-
run: pnpm test
47+
run: npm test

smoke-tests/v2-app-template/.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
# compiled output
22
/dist/
3-
/declarations/
43
/tmp/
54

65
# dependencies
76
/node_modules/
87

98
# misc
10-
/.env*
9+
*.local
1110
/.pnp*
1211
/.eslintcache
1312
/coverage/

smoke-tests/v2-app-template/.prettierrc.js renamed to smoke-tests/v2-app-template/.prettierrc.mjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
'use strict';
2-
3-
module.exports = {
1+
export default {
42
plugins: ['prettier-plugin-ember-template-tag'],
53
singleQuote: true,
64
overrides: [
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict';
2-
3-
module.exports = {
1+
export default {
42
extends: ['stylelint-config-standard'],
53
};

smoke-tests/v2-app-template/.template-lintrc.js

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export default {
2+
extends: 'recommended',
3+
};

smoke-tests/v2-app-template/README.md

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,41 +8,38 @@ A short introduction of this app could easily go here.
88
You will need the following things properly installed on your computer.
99

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

1614
## Installation
1715

1816
- `git clone <repository-url>` this repository
1917
- `cd v2-app-template`
20-
- `pnpm install`
18+
- `npm install`
2119

2220
## Running / Development
2321

24-
- `pnpm start`
22+
- `npm run start`
2523
- Visit your app at [http://localhost:4200](http://localhost:4200).
2624
- Visit your tests at [http://localhost:4200/tests](http://localhost:4200/tests).
2725

2826
### Code Generators
2927

30-
Make use of the many generators for code, try `ember help generate` for more details
28+
Make use of the many generators for code, try `npm exec ember help generate` for more details
3129

3230
### Running Tests
3331

34-
- `pnpm test`
35-
- `pnpm test:ember --server`
32+
- `npm run test`
3633

3734
### Linting
3835

39-
- `pnpm lint`
40-
- `pnpm lint:fix`
36+
- `npm run lint`
37+
- `npm run lint:fix`
4138

4239
### Building
4340

44-
- `pnpm ember build` (development)
45-
- `pnpm build` (production)
41+
- `npm exec vite build --mode development` (development)
42+
- `npm run build` (production)
4643

4744
### Deploying
4845

@@ -51,7 +48,7 @@ Specify what it takes to deploy your app.
5148
## Further Reading / Useful Links
5249

5350
- [ember.js](https://emberjs.com/)
54-
- [ember-cli](https://cli.emberjs.com/release/)
51+
- [Vite](https://vite.dev)
5552
- Development Browser Extensions
5653
- [ember inspector for chrome](https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi)
5754
- [ember inspector for firefox](https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/)

0 commit comments

Comments
 (0)