Skip to content

Commit

Permalink
Merge pull request #745 from oddbird/localias
Browse files Browse the repository at this point in the history
Adjust ports to use localias
  • Loading branch information
jgerigmeyer authored Nov 12, 2024
2 parents 3618bd1 + 7dd26e7 commit 3b55d42
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"containerEnv": {
"SHELL": "/bin/bash"
},
"forwardPorts": [8080],
"appPort": [7050],
"customizations": {
"vscode": {
"extensions": [
Expand Down
28 changes: 19 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ if necessary, then run `nvm install` (once per active shell) to use the correct
version of Node for OddSite development.

The correct [Yarn](https://yarnpkg.com/) version is included with Node, and will
be used automatically for any `yarn` command. To activate it, run
`corepack enable` (once per local Node installation).
be used automatically for any `yarn` command. To activate it, run `corepack
enable` (once per local Node installation).

To upgrade the Node version used by OddSite, update the version number in these
places and then run `nvm install` to upgrade:
Expand All @@ -42,14 +42,24 @@ yarn

### Development tasks

Compile and run [Eleventy](https://www.11ty.dev/) server, with a watcher for file
changes:
Compile and run [Eleventy](https://www.11ty.dev/) server, with a watcher for
file changes:

```
yarn serve
```

The site will be compiled into `_site/` and available at http://localhost:8080.
The site will be compiled into `_site/` and available at http://localhost:7050.

If
[localias](https://github.com/peterldowns/localias?tab=readme-ov-file#-localias)
is configured and running, add an alias for this project:

```
localias set oddsite.local 7050
```

This will allow you to visit the project at <https://oddsite.local>.

You can also run individual commands:

Expand Down Expand Up @@ -85,13 +95,13 @@ yarn lint:js
yarn sassdoc
```

Sass Docs are compiled into the `_site/styleguide/` folder, which is then available
at the URL: `/styleguide/`.
Sass Docs are compiled into the `_site/styleguide/` folder, which is then
available at the URL: `/styleguide/`.

## Deployment

The site is auto-deployed on [Netlify](https://www.netlify.com/) from the
`main` branch on GitHub. Deploys are automated on push to `main`.
The site is auto-deployed on [Netlify](https://www.netlify.com/) from the `main`
branch on GitHub. Deploys are automated on push to `main`.

Use branches and PRs for changes, and Netlify will create staging previews for
functional review before merge.
2 changes: 1 addition & 1 deletion content/blog/2024/css-layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ We started phasing out Susy
on OddBird projects in 2015.
By 2017,
we were
[recommending others do the same](http://localhost:8080/talks/no-grid-system/),
[recommending others do the same](/talks/no-grid-system/),
and we
[officially deprecated](https://github.com/oddbird/susy/commit/018b5c638ec0726d172af96828e6f1712682283b)
the project
Expand Down
1 change: 1 addition & 0 deletions eleventy.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import * as type from '#filters/type.js';
import * as utils from '#filters/utils.js';

export default (eleventyConfig) => {
eleventyConfig.setServerOptions({ port: 7050 });
eleventyConfig.setUseGitIgnore(false);
eleventyConfig.setWatchThrottleWaitTime(100);
eleventyConfig.addPlugin(rss);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"webmentions": "node scripts/fetch-webmentions.js",
"prod": "yarn build",
"checklinks:internal": "npx --yes --package=hyperlink --package=tap-spot -- 'hyperlink --canonicalroot https://www.oddbird.net/ --root _site/ -r -p -i --skip \".css.map\" --skip \".js.map\" --skip \"feed.atom\" --skip \"/docs/\" _site/index.html | tap-spot'",
"checklinks:external": "npx --yes --package=broken-link-checker -- 'blc -ro --exclude=localhost:8080 --exclude=stackoverflow.com --exclude=codepen.io --exclude=linkedin.com --exclude=projects.invisionapp.com --exclude=docs.github.com --exclude=www.sass.hk --exclude=www.drupal.org --exclude=www.canva.com --exclude=www.fastcompany.com --exclude=duabuset-tandem.com --exclude=puta-elementa.com --exclude=campaignzero.org --exclude=twitter.com --exclude=vimeo.com --exclude=slideshare.net --exclude=coachhub.resilienceboost.com https://www.oddbird.net'",
"checklinks:external": "npx --yes --package=broken-link-checker -- 'blc -ro --exclude=stackoverflow.com --exclude=codepen.io --exclude=linkedin.com --exclude=projects.invisionapp.com --exclude=docs.github.com --exclude=www.sass.hk --exclude=www.drupal.org --exclude=www.canva.com --exclude=www.fastcompany.com --exclude=duabuset-tandem.com --exclude=puta-elementa.com --exclude=campaignzero.org --exclude=twitter.com --exclude=vimeo.com --exclude=slideshare.net --exclude=coachhub.resilienceboost.com https://www.oddbird.net'",
"checklinks": "run-s checklinks:internal checklinks:external"
},
"imports": {
Expand Down

0 comments on commit 3b55d42

Please sign in to comment.