sveltekit starter
v1.15.10
이 지점의 사본에는 @sveltejs/kit 의 v1.15.10 이상이 있어야합니다.
./src/routes/admin 을 제공하는 동적 방법, 우리는 start/route.js 내부에 조건을 추가하여 원하는 폴더를 사전 결정합니다.
# this demonstrates a fake logged in
$ > ./run admin dev
$ > ./run admin-in dev
# this demonstrates a fake logged out
$ > ./run admin-out dev
# this connects to your laravel sanctum
$ > ./run admin-laravel-sanctum dev위의 명령은 아래의 모습과 유사합니다.
$ > ROUTE_FOLDER=admin npm run dev Sveltekit의 원래 demo 및 내 이력서 blog 와 같은 더 많은 노선 프로젝트를 저장했습니다.
# this demonstrates my bio and resumé
$ > ./run blog dev
# this demonstrates the original sveltekit counter + todo
$ > ./run demo dev테스트 사례를 작성할 때는 "Demo :" 과 같은 특정 단어로 테스트를 이름으로 지정하는 것입니다.
// tests/demo.js
test ( 'demo: about page has expected h1' , async ( { page } ) => {
// ...
} ) ;그런 다음 이런 식으로 실행하여 특정 폴더를 실행할 수 있습니다.
./run demo test -- -g " demo: "