Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New hello world #1014

Merged
merged 59 commits into from
Apr 18, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
e10ef0b
Applying new design to 'Hello World' template
rafaelcamaram Apr 13, 2021
d178190
Adding Skeleton template
rafaelcamaram Apr 13, 2021
186749e
Adding changeset
rafaelcamaram Apr 13, 2021
97bbd28
add svelte-preprocess to dev config
Rich-Harris Apr 14, 2021
545b7e9
add svelte-preprocess
Rich-Harris Apr 14, 2021
e1f10c8
add templates to workspace, to make dev possible
Rich-Harris Apr 14, 2021
89cd6c5
improve accessibility of welcome image
Rich-Harris Apr 14, 2021
ce3e6ef
tweak layout
Rich-Harris Apr 14, 2021
b719226
simplify counter component a bit
Rich-Harris Apr 14, 2021
1ff610f
merge master -> new-hello-world
Rich-Harris Apr 14, 2021
c8bb743
rename HeaderNavigation to Header
Rich-Harris Apr 14, 2021
73fcbc8
simplify
Rich-Harris Apr 14, 2021
078cd05
move Header into directory
Rich-Harris Apr 14, 2021
7565e40
make header nav fluid width
Rich-Harris Apr 14, 2021
b91c735
remove unused images
Rich-Harris Apr 14, 2021
3bd4b55
inline svgs
Rich-Harris Apr 14, 2021
608a96b
dark mode style tweak
Rich-Harris Apr 14, 2021
a803774
move svelte logo to header, make it a link
Rich-Harris Apr 14, 2021
ac12e3b
tweak dark mode toggle position
Rich-Harris Apr 14, 2021
ae4113d
reuse ThemeToggler component from HN example - includes localStorage …
Rich-Harris Apr 14, 2021
724c62d
make README universal, add cfw adapter
Rich-Harris Apr 14, 2021
c7f4fe5
newlines
Rich-Harris Apr 14, 2021
ef10df0
Update packages/create-svelte/cli/index.js
Apr 14, 2021
45438ca
Update packages/create-svelte/templates/default/src/lib/Header/ThemeT…
Apr 14, 2021
5774133
use new image file
Rich-Harris Apr 14, 2021
c891d1d
Merge branch 'new-hello-world' of github.com:sveltejs/kit into new-he…
Rich-Harris Apr 14, 2021
9dca99b
remove dark/light toggle
Rich-Harris Apr 14, 2021
960a99a
ignore generated files when linting
Rich-Harris Apr 14, 2021
81475a8
more linting
Rich-Harris Apr 14, 2021
08de077
Merge branch 'master' into new-hello-world
Rich-Harris Apr 15, 2021
8835aaf
tweak some styles and wording
Rich-Harris Apr 15, 2021
20e9e68
add sveltekit:prefetch to nav links
Rich-Harris Apr 15, 2021
0688f8d
start fleshing out about page
Rich-Harris Apr 15, 2021
bacda90
merge master -> new-hello-world
Rich-Harris Apr 15, 2021
0ce375f
oops
Rich-Harris Apr 15, 2021
4258d0a
minor tweaks
Rich-Harris Apr 15, 2021
1bc4203
flesh out about page, add a skeleton todos page
Rich-Harris Apr 15, 2021
9ea4beb
non-greedy regex
Rich-Harris Apr 15, 2021
b62473d
Merge branch 'master' into new-hello-world
Rich-Harris Apr 15, 2021
2cb6790
implement TODOs page
Rich-Harris Apr 16, 2021
ff74434
make index/about prerenderable, delete unused blog page
Rich-Harris Apr 16, 2021
a0c4448
remove adapter stuff, point to docs instead
Rich-Harris Apr 16, 2021
0ccb7d2
merge master -> new-hello-world
Rich-Harris Apr 16, 2021
6b72ae9
make h1s consistent, prevent layout popping
Rich-Harris Apr 16, 2021
5fe8688
tweak pre styles
Rich-Harris Apr 16, 2021
a149e7b
tweak TODOs page
Rich-Harris Apr 16, 2021
6c75fc7
increase line-height on <p> elements
Rich-Harris Apr 16, 2021
cfa90a1
add some docs
Rich-Harris Apr 17, 2021
89e07b2
make create-svelte a bit neater
Rich-Harris Apr 17, 2021
86bf2ae
remove rollup
Rich-Harris Apr 17, 2021
4519429
fix lint script
Rich-Harris Apr 17, 2021
ed27ce5
oops
Rich-Harris Apr 17, 2021
a63ac29
goddammit, every time
Rich-Harris Apr 17, 2021
1e5fde8
use local API
Rich-Harris Apr 17, 2021
62b2fe3
typo
Rich-Harris Apr 17, 2021
f939bc5
Merge branch 'master' into api
Rich-Harris Apr 17, 2021
bf33079
various
Rich-Harris Apr 17, 2021
5d563b7
use API
Rich-Harris Apr 18, 2021
9dade4d
make skeleton app more skeletal
Rich-Harris Apr 18, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion packages/create-svelte/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/bin.js
/dist

# re-enable this once we're out of prerelease
Expand Down
11 changes: 6 additions & 5 deletions packages/create-svelte/cli/index.js → packages/create-svelte/bin.js
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
//eslint-disable-next-line import/no-unresolved
#!/usr/bin/env node
import fs from 'fs';
import path from 'path';
import { bold, cyan, gray, green, red } from 'kleur/colors';
import prompts from 'prompts/lib/index';
import { fileURLToPath } from 'url';
import { mkdirp, copy } from '../utils.js';
import { version } from '../package.json';
import { bold, cyan, gray, green, red } from 'kleur/colors';
import prompts from 'prompts';
import { mkdirp, copy } from './utils.js';

const disclaimer = `
Welcome to the SvelteKit setup wizard!
Expand All @@ -14,6 +13,8 @@ SvelteKit is in public beta now. There are definitely bugs and some feature migh
If you encounter an issue, have a look at https://github.com/sveltejs/kit/issues and open a new one, if it is not already tracked.
`;

const { version } = JSON.parse(fs.readFileSync(new URL('package.json', import.meta.url)));

async function main() {
console.log(gray(`\ncreate-svelte version ${version}`));
console.log(red(disclaimer));
Expand Down
3 changes: 0 additions & 3 deletions packages/create-svelte/cli/global.d.ts

This file was deleted.

11 changes: 5 additions & 6 deletions packages/create-svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,23 @@
"name": "create-svelte",
"version": "2.0.0-next.51",
"bin": "./bin.js",
"dependencies": {
"kleur": "^4.1.4",
"prompts": "^2.4.0"
},
"devDependencies": {
"@rollup/plugin-json": "^4.1.0",
"@sveltejs/kit": "workspace:*",
"@types/gitignore-parser": "^0.0.0",
"@types/prettier": "^2.2.3",
"gitignore-parser": "^0.0.2",
"kleur": "^4.1.4",
"prettier": "^2.2.1",
"prettier-plugin-svelte": "^2.2.0",
"prompts": "^2.4.0",
"rollup": "^2.41.1",
"sucrase": "^3.18.1",
"svelte-preprocess": "^4.7.0",
"tiny-glob": "^0.2.8"
},
"scripts": {
"dev": "rollup -cw",
"build": "node scripts/build-templates && rollup -c",
"build": "node scripts/build-templates",
dummdidumm marked this conversation as resolved.
Show resolved Hide resolved
"lint": "eslint --ignore-path .gitignore \"cli/*.js\" && npm run check-format",
"format": "prettier --write . --config ../../.prettierrc --ignore-path .gitignore",
"check-format": "prettier --check . --config ../../.prettierrc --ignore-path .gitignore",
Expand Down
29 changes: 0 additions & 29 deletions packages/create-svelte/rollup.config.js

This file was deleted.

2 changes: 1 addition & 1 deletion packages/create-svelte/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"moduleResolution": "node",
"allowSyntheticDefaultImports": true
},
"include": ["cli/**/*", "scripts/**/*", "utils.js"]
"include": ["scripts/**/*", "bin.js", "utils.js"]
}