Skip to content

Commit

Permalink
Templates: Adding descriptions to package.json, making config files c…
Browse files Browse the repository at this point in the history
…onsistant (#1346)

* adding descriptions, making config files consistant

* reordering keys in templates, adding comment about 11ty
  • Loading branch information
Melissa McEwen authored Oct 18, 2020
1 parent 5b0866b commit 7d6e9fd
Show file tree
Hide file tree
Showing 32 changed files with 286 additions and 48 deletions.
1 change: 1 addition & 0 deletions create-snowpack-app/app-template-11ty/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "@snowpack/app-template-11ty",
"description": "A preconfigured template for Snowpack with Eleventy",
"version": "1.9.3",
"license": "MIT",
"homepage": "https://github.com/pikapkg/snowpack/tree/master/create-snowpack-app/app-template-11ty#readme",
Expand Down
28 changes: 28 additions & 0 deletions create-snowpack-app/app-template-11ty/snowpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
module.exports = {
mount: {
_output: '/',
src: '/_dist_',
},
plugins: [
['@snowpack/plugin-run-script', { cmd: 'eleventy', watch: '$1 --watch' }],
],
install: [
/* ... */
],
installOptions: {
/* ... */
},
devOptions: {
// Eleventy updates multiple files at once, so add a 300ms delay before we trigger a browser update
hmrDelay: 300,
},
buildOptions: {
/* ... */
},
proxy: {
/* ... */
},
alias: {
/* ... */
},
};
15 changes: 0 additions & 15 deletions create-snowpack-app/app-template-11ty/snowpack.config.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "@snowpack/app-template-blank-typescript",
"description": "A preconfigured template for Snowpack with Typescript",
"version": "1.9.7",
"license": "MIT",
"homepage": "https://github.com/pikapkg/snowpack/tree/master/create-snowpack-app/app-template-blank-typescript#readme",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
module.exports = {
mount: {
public: '/',
src: '/_dist_',
},
plugins: ['@snowpack/plugin-typescript'],
install: [
/* ... */
],
installOptions: {
installTypes: true,
},
devOptions: {
/* ... */
},
buildOptions: {
/* ... */
},
proxy: {
/* ... */
},
alias: {
/* ... */
},
};

This file was deleted.

1 change: 1 addition & 0 deletions create-snowpack-app/app-template-blank/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "@snowpack/app-template-blank",
"description": "A preconfigured template for Snowpack with Prettier",
"version": "1.6.19",
"license": "MIT",
"homepage": "https://github.com/pikapkg/snowpack/tree/master/create-snowpack-app/app-template-blank#readme",
Expand Down
27 changes: 27 additions & 0 deletions create-snowpack-app/app-template-blank/snowpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
module.exports = {
mount: {
public: '/',
src: '/_dist_',
},
plugins: [
/* ... */
],
install: [
/* ... */
],
installOptions: {
/* ... */
},
devOptions: {
/* ... */
},
buildOptions: {
/* ... */
},
proxy: {
/* ... */
},
alias: {
/* ... */
},
};
7 changes: 0 additions & 7 deletions create-snowpack-app/app-template-blank/snowpack.config.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "@snowpack/app-template-lit-element-typescript",
"description": "A preconfigured template for Snowpack with TypeScript and LitElement",
"version": "1.10.6",
"license": "MIT",
"homepage": "https://github.com/pikapkg/snowpack/tree/master/create-snowpack-app/app-template-lit-element-typescript#readme",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,24 @@ module.exports = {
plugins: [
'@snowpack/plugin-babel',
'@snowpack/plugin-dotenv',
"@snowpack/plugin-typescript"
'@snowpack/plugin-typescript',
],
install: [
/* ... */
],
installOptions: {
/* ... */
},
devOptions: {
/* ... */
},
buildOptions: {
/* ... */
},
proxy: {
/* ... */
},
alias: {
/* ... */
},
};
1 change: 1 addition & 0 deletions create-snowpack-app/app-template-lit-element/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "@snowpack/app-template-lit-element",
"description": "A preconfigured template for Snowpack with LitElement",
"version": "1.9.6",
"license": "MIT",
"homepage": "https://github.com/pikapkg/snowpack/tree/master/create-snowpack-app/app-template-lit-element#readme",
Expand Down
18 changes: 18 additions & 0 deletions create-snowpack-app/app-template-lit-element/snowpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,22 @@ module.exports = {
src: '/_dist_',
},
plugins: ['@snowpack/plugin-babel', '@snowpack/plugin-dotenv'],
install: [
/* ... */
],
installOptions: {
/* ... */
},
devOptions: {
/* ... */
},
buildOptions: {
/* ... */
},
proxy: {
/* ... */
},
alias: {
/* ... */
},
};
1 change: 1 addition & 0 deletions create-snowpack-app/app-template-minimal/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "@snowpack/app-template-minimal",
"description": "A preconfigured minimal template for Snowpack",
"private": true,
"version": "1.6.12",
"license": "MIT",
Expand Down
10 changes: 5 additions & 5 deletions create-snowpack-app/app-template-minimal/snowpack.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
module.exports = {
install: [
mount: {
/* ... */
],
},
plugins: [
/* ... */
],
install: [
/* ... */
],
installOptions: {
/* ... */
},
Expand All @@ -17,9 +20,6 @@ module.exports = {
proxy: {
/* ... */
},
mount: {
/* ... */
},
alias: {
/* ... */
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "@snowpack/app-template-preact-typescript",
"description": "A preconfigured template for Snowpack with Preact and Typescript",
"version": "1.1.3",
"license": "MIT",
"homepage": "https://github.com/pikapkg/snowpack/tree/master/create-snowpack-app/app-template-preact-typescript#readme",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,24 @@ module.exports = {
'@snowpack/plugin-dotenv',
'@snowpack/plugin-babel',
'@snowpack/plugin-typescript',
'@prefresh/snowpack'
'@prefresh/snowpack',
],
install: [
/* ... */
],
installOptions: {
installTypes: true,
},
devOptions: {
/* ... */
},
buildOptions: {
/* ... */
},
proxy: {
/* ... */
},
alias: {
/* ... */
},
};
1 change: 1 addition & 0 deletions create-snowpack-app/app-template-preact/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "@snowpack/app-template-preact",
"description": "A preconfigured template for Snowpack with Preact",
"version": "1.11.3",
"license": "MIT",
"homepage": "https://github.com/pikapkg/snowpack/tree/master/create-snowpack-app/app-template-preact#readme",
Expand Down
22 changes: 19 additions & 3 deletions create-snowpack-app/app-template-preact/snowpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,24 @@ module.exports = {
public: '/',
src: '/_dist_',
},
plugins: [
'@snowpack/plugin-dotenv',
'@prefresh/snowpack',
plugins: ['@snowpack/plugin-dotenv', '@prefresh/snowpack'],
install: [
/* ... */
],
installOptions: {
/* ... */
},
devOptions: {
/* ... */
},
buildOptions: {
/* ... */
},
proxy: {
/* ... */
},

alias: {
/* ... */
},
};
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "@snowpack/app-template-react-typescript",
"description": "A preconfigured template for Snowpack with React and TypeScript",
"version": "1.14.2",
"license": "MIT",
"homepage": "https://github.com/pikapkg/snowpack/tree/master/create-snowpack-app/app-template-react-typescript#readme",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,24 @@ module.exports = {
plugins: [
'@snowpack/plugin-react-refresh',
'@snowpack/plugin-dotenv',
"@snowpack/plugin-typescript"
'@snowpack/plugin-typescript',
],
install: [
/* ... */
],
installOptions: {
/* ... */
},
devOptions: {
/* ... */
},
buildOptions: {
/* ... */
},
proxy: {
/* ... */
},
alias: {
/* ... */
},
};
1 change: 1 addition & 0 deletions create-snowpack-app/app-template-react/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "@snowpack/app-template-react",
"description": "A preconfigured template for Snowpack with React",
"version": "1.12.2",
"license": "MIT",
"homepage": "https://github.com/pikapkg/snowpack/tree/master/create-snowpack-app/app-template-react#readme",
Expand Down
18 changes: 18 additions & 0 deletions create-snowpack-app/app-template-react/snowpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,22 @@ module.exports = {
src: '/_dist_',
},
plugins: ['@snowpack/plugin-react-refresh', '@snowpack/plugin-dotenv'],
install: [
/* ... */
],
installOptions: {
/* ... */
},
devOptions: {
/* ... */
},
buildOptions: {
/* ... */
},
proxy: {
/* ... */
},
alias: {
/* ... */
},
};
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "@snowpack/app-template-svelte-typescript",
"description": "A preconfigured template for Snowpack with Svelte and TypeScript",
"version": "1.11.3",
"license": "MIT",
"homepage": "https://github.com/pikapkg/snowpack/tree/master/create-snowpack-app/app-template-svelte-typescript#readme",
Expand Down
Loading

1 comment on commit 7d6e9fd

@vercel
Copy link

@vercel vercel bot commented on 7d6e9fd Oct 18, 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.