Skip to content

Commit 6e6f80c

Browse files
authored
default .js config (#1027)
1 parent 7866be1 commit 6e6f80c

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

docs/routing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ A typical project looks like this:
1717
│ └─ index.md
1818
├─ .gitignore
1919
├─ README.md
20-
├─ observablehq.config.ts
20+
├─ observablehq.config.js
2121
├─ yarn.lock
2222
└─ package.json
2323
```
@@ -46,7 +46,7 @@ You can put [data loaders](./loaders) or static files anywhere in your source ro
4646

4747
This is the home page for your site. You can have as many additional pages as you’d like, but you should always have a home page, too.
4848

49-
#### `observablehq.config.ts`
49+
#### `observablehq.config.js`
5050

5151
This is the [project configuration](./config) file, such as the pages and sections in the sidebar navigation, and the project’s title. The config file can be written in either TypeScript (`.ts`) or JavaScript (`.js`).
5252

src/deploy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ export async function promptDeployTarget(
473473
throw new CliError("User canceled deploy.", {print: false, exitCode: 0});
474474
}
475475
title = titleChoice;
476-
clack.log.info("You should add this title to your observablehq.config.ts file.");
476+
clack.log.info("You should add this title to your observablehq.config.js file.");
477477
}
478478

479479
// TODO This should refer to the URL of the project, not the slug.

templates/default/README.md.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ A typical Framework project looks like this:
2626
│ ├─ example-report.md # another page
2727
│ └─ index.md # the home page
2828
├─ .gitignore
29-
├─ observablehq.config.ts # the project config file
29+
├─ observablehq.config.js # the project config file
3030
├─ package.json
3131
└─ README.md
3232
```
@@ -39,7 +39,7 @@ A typical Framework project looks like this:
3939

4040
**`docs/components`** - You can put shared [JavaScript modules](https://observablehq.com/framework/javascript/imports) anywhere in your source root, but we recommend putting them here. This helps you pull code out of Markdown files and into JavaScript modules, making it easier to reuse code across pages, write tests and run linters, and even share code with vanilla web applications.
4141

42-
**`observablehq.config.ts`** - This is the [project configuration](https://observablehq.com/framework/config) file, such as the pages and sections in the sidebar navigation, and the project’s title.
42+
**`observablehq.config.js`** - This is the [project configuration](https://observablehq.com/framework/config) file, such as the pages and sections in the sidebar navigation, and the project’s title.
4343

4444
## Command reference
4545

templates/empty/README.md.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ A typical Framework project looks like this:
2626
│ ├─ example-report.md # another page
2727
│ └─ index.md # the home page
2828
├─ .gitignore
29-
├─ observablehq.config.ts # the project config file
29+
├─ observablehq.config.js # the project config file
3030
├─ package.json
3131
└─ README.md
3232
```
@@ -39,7 +39,7 @@ A typical Framework project looks like this:
3939

4040
**`docs/components`** - You can put shared [JavaScript modules](https://observablehq.com/framework/javascript/imports) anywhere in your source root, but we recommend putting them here. This helps you pull code out of Markdown files and into JavaScript modules, making it easier to reuse code across pages, write tests and run linters, and even share code with vanilla web applications.
4141

42-
**`observablehq.config.ts`** - This is the [project configuration](https://observablehq.com/framework/config) file, such as the pages and sections in the sidebar navigation, and the project’s title.
42+
**`observablehq.config.js`** - This is the [project configuration](https://observablehq.com/framework/config) file, such as the pages and sections in the sidebar navigation, and the project’s title.
4343

4444
## Command reference
4545

test/create-test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe("create", async () => {
2727
"template-test/docs/example-report.md",
2828
"template-test/docs/index.md",
2929
"template-test/docs/penguins.csv",
30-
"template-test/observablehq.config.ts",
30+
"template-test/observablehq.config.js",
3131
"template-test/package.json",
3232
"template-test/README.md"
3333
])
@@ -50,7 +50,7 @@ describe("create", async () => {
5050
"template-test/docs/aapl.csv",
5151
"template-test/docs/index.md",
5252
"template-test/docs/penguins.csv",
53-
"template-test/observablehq.config.ts",
53+
"template-test/observablehq.config.js",
5454
"template-test/package.json",
5555
"template-test/README.md"
5656
])

0 commit comments

Comments
 (0)