Skip to content

Commit 4725acd

Browse files
authored
Merge pull request #260 from ember-learn/other
2 parents 43f1a8e + 73cd44a commit 4725acd

File tree

9 files changed

+8315
-7153
lines changed

9 files changed

+8315
-7153
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,41 +27,42 @@ jobs:
2727
git config --global user.email "[email protected]"
2828
- name: Checkout
2929
uses: actions/checkout@v4
30+
- uses: pnpm/action-setup@v4
3031
- name: Set up Node
3132
uses: actions/setup-node@v4
3233
with:
3334
node-version: '18'
34-
cache: 'yarn'
35+
cache: 'pnpm'
3536
- name: Install dependencies (apt-get)
3637
run: |
3738
sudo apt-get update -y
3839
sudo apt-get install -y tree
39-
- name: Install dependencies (yarn)
40+
- name: Install dependencies (pnpm)
4041
run: |
4142
if [[ "$EMBER_RELEASE_CHANNEL" == "beta" ]]; then
42-
yarn upgrade ember-cli@beta
43+
pnpm upgrade ember-cli@beta
4344
else
44-
yarn upgrade ember-cli
45+
pnpm upgrade ember-cli
4546
fi
4647
47-
yarn install
48+
pnpm install
4849
env:
4950
EMBER_RELEASE_CHANNEL: ${{ matrix.channel }}
5051
- name: Lint (markdown source)
51-
run: yarn lint:md:src
52+
run: pnpm lint:md:src
5253
- name: Lint (typescript)
53-
run: yarn lint:ts
54+
run: pnpm lint:ts
5455
- name: Compile (typescript)
55-
run: yarn tsc
56+
run: pnpm tsc
5657
- name: Generate
57-
run: yarn generate
58+
run: pnpm generate
5859
env:
5960
# This is needed for external PRs to build, since secrets are not
6061
# available there. Get your own Mapbox token for local development
6162
# at: https://account.mapbox.com/access-tokens
6263
MAPBOX_ACCESS_TOKEN: 'pk.eyJ1IjoiZW1iZXJqcyIsImEiOiJjazBydnZjb2wwYXA5M2Rwc3IydGF2eXM0In0.EQiBFsRi9Jm70XFPiXnoHg'
6364
- name: Lint (markdown output)
64-
run: yarn lint:md:dist
65+
run: pnpm lint:md:dist
6566
- name: Prune artifacts
6667
if: always()
6768
working-directory: dist/code/super-rentals

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ The workflow for updating the Super Rentals Tutorial involves working within two
3636
3737
Once you have made your changes in the tutorial prose or code, you can run a few different commands to verify that your changes render as expected.
3838
39-
* To regenerate all of the chapters (and rebuild the app), run `yarn build`. This will `rm -rf` anything previously generated in the `/dist` directory.
40-
* To generate a single chapter without removing all the previously generated content, run `yarn generate src/markdown/07-your-chapter-to-edit-here.md`. This will rebuild _just_ the chapter that is specified without deleting everything else in the `/dist` directory. Please note that, before running this command, the _current state_ of the `/dist/code` directory has to match the precise state of what it would be after running the generate command on the previous chapter. In other words, in order for the generate command to work correctly, the state of the code in `/dist/code` should match exactly the code that would be generated by `yarn generate src/markdown/06-the-previous-chapter.md` before it is run for `src/markdown/07-your-chapter-to-edit-here.md` .
39+
* To regenerate all of the chapters (and rebuild the app), run `pnpm build`. This will `rm -rf` anything previously generated in the `/dist` directory.
40+
* To generate a single chapter without removing all the previously generated content, run `pnpm generate src/markdown/07-your-chapter-to-edit-here.md`. This will rebuild _just_ the chapter that is specified without deleting everything else in the `/dist` directory. Please note that, before running this command, the _current state_ of the `/dist/code` directory has to match the precise state of what it would be after running the generate command on the previous chapter. In other words, in order for the generate command to work correctly, the state of the code in `/dist/code` should match exactly the code that would be generated by `pnpm generate src/markdown/06-the-previous-chapter.md` before it is run for `src/markdown/07-your-chapter-to-edit-here.md` .
4141
4242
### Code changes
4343
@@ -82,7 +82,7 @@ When running commands, generating new files, or making changes to preexisting on
8282
For example:
8383
8484
```run:pause
85-
Note to self: check that `application.hbs` has the correct markup and remember to git add it!
85+
Note to self: check that \`application.hbs\` has the correct markup and remember to git add it!
8686
```
8787
8888
Any content inside of the code blocks will be printed in your command line.
@@ -133,7 +133,7 @@ In both cases, be sure your editor is not set to trim trailing whitespace on lin
133133
Once you have added the diff to the prose using the `run:file:patch` command, you can remove the `run:pause` command. In order to test that your patch was successfully applied, be sure to:
134134
135135
1. Run `git checkout` any changes in the working directory of `/dist/code/super-rentals/code`.
136-
2. Regenerate your modified chapter (`yarn generate src/markdown/00-your-chapter-to-edit-here.md`).
136+
2. Regenerate your modified chapter (`pnpm generate src/markdown/00-your-chapter-to-edit-here.md`).
137137
138138
Finally, you can look at your modified chapter in `/dist/markdown` and make sure that your patch renders as you expect in the markdown!
139139

package.json

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"chalk": "^2.4.2",
2020
"ember-cli": "*",
2121
"ember-dictionary": "^0.2.3",
22+
"glob": "^8.0.3",
2223
"image-size": "^1.0.2",
2324
"mkdirp": "^1.0.4",
2425
"ncp": "^2.0.0",
@@ -48,21 +49,22 @@
4849
"tslint": "^6.1.3",
4950
"tslint-config-prettier": "^1.18.0",
5051
"typescript": "^4.9.4",
51-
"unified": "^8.4.0"
52+
"unified": "^8.4.0",
53+
"vfile": "^4.0.3"
5254
},
5355
"scripts": {
5456
"clean": "shx rm -rf dist",
55-
"lint": "yarn lint:ts && yarn lint:md",
57+
"lint": "pnpm lint:ts && pnpm lint:md",
5658
"lint:ts": "tslint --project .",
5759
"lint:md": "remark . --frail",
58-
"lint:md:src": "yarn lint:md --ignore-pattern dist",
59-
"lint:md:dist": "yarn lint:md --ignore-pattern src",
60-
"precompile": "yarn lint:ts",
60+
"lint:md:src": "pnpm lint:md --ignore-pattern dist",
61+
"lint:md:dist": "pnpm lint:md --ignore-pattern src",
62+
"precompile": "pnpm lint:ts",
6163
"compile": "tsc",
6264
"generate": "node ./dist/bin/generate.js",
63-
"prebuild": "yarn clean && yarn compile && yarn lint:md:src",
64-
"build": "yarn generate",
65-
"postbuild": "yarn lint:md:dist"
65+
"prebuild": "pnpm clean && pnpm compile && pnpm lint:md:src",
66+
"build": "pnpm generate",
67+
"postbuild": "pnpm lint:md:dist"
6668
},
67-
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
69+
"packageManager": "[email protected]+sha512.5ea8b0deed94ed68691c9bad4c955492705c5eeb8a87ef86bc62c74a26b037b08ff9570f108b2e4dbd1dd1a9186fea925e527f141c648e85af45631074680184"
6870
}

0 commit comments

Comments
 (0)