Skip to content

Commit

Permalink
Add a shape to the TS config files (#1466)
Browse files Browse the repository at this point in the history
* Add a shape to the TS config files

* Use the jsdoc comment for typing the snowpack config everywhere

* Fix tests
  • Loading branch information
orta committed Nov 2, 2020
1 parent c438b29 commit d647138
Show file tree
Hide file tree
Showing 15 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions create-snowpack-app/app-template-11ty/snowpack.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @type {import("snowpack").SnowpackUserConfig } */
module.exports = {
mount: {
_output: '/',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @type {import("snowpack").SnowpackUserConfig } */
module.exports = {
mount: {
public: '/',
Expand Down
1 change: 1 addition & 0 deletions create-snowpack-app/app-template-blank/snowpack.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @type {import("snowpack").SnowpackUserConfig } */
module.exports = {
mount: {
public: '/',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @type {import("snowpack").SnowpackUserConfig } */
module.exports = {
mount: {
public: '/',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @type {import("snowpack").SnowpackUserConfig } */
module.exports = {
mount: {
public: '/',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @type {import("snowpack").SnowpackUserConfig } */
module.exports = {
mount: {
/* ... */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @type {import("snowpack").SnowpackUserConfig } */
module.exports = {
mount: {
public: '/',
Expand Down
1 change: 1 addition & 0 deletions create-snowpack-app/app-template-preact/snowpack.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @type {import("snowpack").SnowpackUserConfig } */
module.exports = {
mount: {
public: '/',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @type {import("snowpack").SnowpackUserConfig } */
module.exports = {
mount: {
public: '/',
Expand Down
1 change: 1 addition & 0 deletions create-snowpack-app/app-template-react/snowpack.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @type {import("snowpack").SnowpackUserConfig } */
module.exports = {
mount: {
public: '/',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @type {import("snowpack").SnowpackUserConfig } */
module.exports = {
mount: {
public: '/',
Expand Down
1 change: 1 addition & 0 deletions create-snowpack-app/app-template-svelte/snowpack.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @type {import("snowpack").SnowpackUserConfig } */
module.exports = {
mount: {
public: '/',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @type {import("snowpack").SnowpackUserConfig } */
module.exports = {
mount: {
public: '/',
Expand Down
1 change: 1 addition & 0 deletions create-snowpack-app/app-template-vue/snowpack.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @type {import("snowpack").SnowpackUserConfig } */
module.exports = {
mount: {
public: '/',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7384,7 +7384,8 @@ exports[`create-snowpack-app app-template-minimal > build: package.json 1`] = `
`;

exports[`create-snowpack-app app-template-minimal > build: snowpack.config.js 1`] = `
"module.exports = {
"/** @type {import(\\"snowpack\\").SnowpackUserConfig } */
module.exports = {
mount: {
},
plugins: [
Expand Down

1 comment on commit d647138

@vercel
Copy link

@vercel vercel bot commented on d647138 Nov 2, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.