Skip to content

Commit 132249e

Browse files
committed
chore: Updated project configurations
1 parent 1a4dba6 commit 132249e

7 files changed

Lines changed: 36 additions & 75 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ jobs:
3232

3333
- run: pnpm build
3434

35-
- run: pnpm test:all
35+
- run: pnpm test

.gitignore

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,12 @@
1-
.env
1+
# compiled output
2+
dist/
3+
dist-for-testing/
4+
tmp/
25

3-
# Logs
4-
logs
5-
*.log
6-
npm-debug.log*
7-
yarn-debug.log*
8-
yarn-error.log*
9-
pnpm-debug.log*
10-
lerna-debug.log*
6+
# dependencies
7+
node_modules/
118

12-
node_modules
13-
dist
14-
dist-ssr
15-
*.local
16-
.eslintcache
17-
.npmrc
18-
19-
# Editor directories and files
20-
.idea
9+
# misc
2110
.DS_Store
22-
*.suo
23-
*.ntvs*
24-
*.njsproj
25-
*.sln
26-
*.sw?
11+
.env*
12+
.eslintcache

.npmignore

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,25 @@
1+
# compiled output
2+
/dist-for-testing/
3+
/tmp/
4+
5+
# dependencies
6+
/node_modules/
7+
8+
# misc
9+
/.DS_Store
10+
/.env*
11+
/.eslintcache
12+
/.git/
113
/.github/
2-
/.vscode/
3-
/examples/
4-
/src/
5-
/tests/
614
/.gitignore
15+
/.pnpm-debug.log
716
/.prettierignore
817
/.release-it.json
918
/.release-plan.json
19+
/.vscode/
20+
/examples/
21+
/src/
22+
/tests/
1023
/CODE_OF_CONDUCT.md
1124
/CONTRIBUTING.md
1225
/RELEASE.md
@@ -17,6 +30,5 @@
1730
/pnpm-lock.yaml
1831
/pnpm-workspace.yaml
1932
/prettier.config.mjs
33+
/tsconfig.build.json
2034
/tsconfig.json
21-
/tsconfig.lint.json
22-
/vite.config.ts

.release-it.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"tokenRef": "GITHUB_AUTH"
1515
},
1616
"hooks": {
17-
"before:init": ["npm run lint", "npm run test:run"],
17+
"before:init": ["npm run lint", "npm run test"],
1818
"after:bump": "npm run build",
1919
"after:release": "echo Successfully released ${name} v${version} to ${repo.repository}."
2020
}

CONTRIBUTING.md

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -22,29 +22,15 @@ Find me on the [Ember Discord](https://discord.com/invite/emberjs) at `hm_krysta
2222
1. Install dependencies:
2323

2424
```bash
25-
pnpm install --recursive
25+
pnpm install
2626
```
2727

2828
1. Run the tests to ensure your development environment is working properly:
2929

30-
Watch mode:
31-
3230
```bash
3331
pnpm test
3432
```
3533

36-
Single run:
37-
38-
```bash
39-
pnpm test:run
40-
```
41-
42-
Watch mode with a cute UI in the browser:
43-
44-
```bash
45-
pnpm test:ui
46-
```
47-
4834
## Pull Requests
4935

5036
We love pull requests. Here's a quick guide:
@@ -79,25 +65,15 @@ We love pull requests. Here's a quick guide:
7965

8066
NOTE: Partially copied from https://github.com/emberjs/ember.js/blob/master/CONTRIBUTING.md
8167

82-
## Examples
83-
84-
1. Follow the [Development](#development) guide above to set up your environment.
85-
86-
1. Edit `example.gjs` or `example.gts` to make the ugliest component file you can think of.
87-
88-
1. Run `pnpm run example` or `pnpm run example-ts` to prettify your ugly file. 😍 (Note that `run example` will also build the project, so it may take a second.)
89-
90-
1. Don't commit your changes to the example files.
91-
9268
## Tests
9369

94-
Most of the tests are generated by formatting example files from the `cases` directory and comparing the output to [Vitest snapshots](https://vitest.dev/guide/snapshot.html).
70+
Most of the tests are generated by formatting example files from the `tests-vitest/cases` directory and comparing the output to [Vitest snapshots](https://vitest.dev/guide/snapshot.html).
9571

9672
To add a new case, add your case file(s) in the appropriate place(s) here: https://github.com/gitKrystan/prettier-plugin-ember-template-tag/tree/main/tests/cases
9773

9874
New cases will be tested against a variety of configs. If you also want to test against for "ambiguous expressions" issues as described [here](https://github.com/gitKrystan/prettier-plugin-ember-template-tag/issues/1), you can include the comment `/*AMBIGUOUS*/` anywhere in your test cases and it will be replaced by the ambiguous cases listed [here](https://github.com/gitKrystan/prettier-plugin-ember-template-tag/tree/main/tests/helpers/ambiguous.ts) in a variety of generated tests. If you find a new ambiguous case, add it to that list.
9975

100-
Once you make your changes and/or add new cases `pnpm test:run -u` to update the snapshots then carefully inspect the results to ensure the output matches your expectations.
76+
Once you make your changes and/or add new cases `pnpm test:vitest -u` to update the snapshots then carefully inspect the results to ensure the output matches your expectations.
10177

10278
## Prior Art and Useful Resources
10379

eslint.config.mjs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,12 @@ export default tseslint.config(
5454
{
5555
ignores: [
5656
'dist/',
57+
'dist-for-testing/',
5758
'node_modules/',
59+
'tests-vitest/__snapshots__/',
60+
'tests-vitest/cases/',
61+
'tmp/',
5862
'.*/',
59-
'tests/__snapshots__/',
60-
'tests/cases/',
61-
'vite.config.ts',
6263
],
6364
},
6465
{

vite.config.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)