- ×Show All
What is Svelte?
Pull requests are encouraged and always welcome. Pick an issue and help us out!
To install and work on Svelte locally:
git clone https://github.com/sveltejs/svelte.git cd svelte npm install
Do not use Yarn to install the dependencies, as the specific package versions in
package-lock.jsonare used to build and test Svelte.
Many tests depend on newlines being preserved as
<LF>. On Windows, you can ensure this by cloning with:
git -c core.autocrlf=false clone https://github.com/sveltejs/svelte.git
To build the compiler, and all the other modules included in the package:
npm run build
To watch for changes and continually rebuild the package (this is useful if you're using npm link to test out changes in a project locally):
npm run dev
npm run test
To filter tests, use
--grep). For example, to only run tests involving transitions:
npm run test -- -g transition
cd site npm install && npm run update npm run dev