Skip to content
Cybernetically enhanced web apps
Branch: master
Clone or download
Latest commit 5263354 May 4, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github update references to svelte.technology - fixes #2450 Apr 21, 2019
site fix wacky layout on mobile - closes #2673 May 4, 2019
src lint May 4, 2019
test Merge pull request #2658 from MikeMatrix/each-block-rest-destructuring May 4, 2019
.editorconfig Fix prefixed animation name replacement Jun 22, 2018
.eslintignore implement Store Nov 24, 2017
.eslintrc.json change pkg.main to appease webpack Feb 1, 2019
.flowconfig add editorconfig and flowconfig files Dec 5, 2016
.gitattributes add .gitattributes for stopgap HTML syntax highlighting on .svelte files Apr 25, 2019
.gitignore Merge pull request #2247 from sveltejs/gh-2241 Apr 15, 2019
.prettierrc upgrade prettier; use .prettierrc Sep 23, 2017
.travis.yml Implement reactive assignments (#1839) Dec 16, 2018
CHANGELOG.md -> v3.2.0 May 4, 2019
LICENSE update license Apr 27, 2019
README.md update links to new Sapper site May 2, 2019
animate.mjs add crossfade and flip functions (#2241) Mar 17, 2019
appveyor.yml Implement reactive assignments (#1839) Dec 16, 2018
banner.png ditto Apr 21, 2019
easing.mjs svelte/motion Jan 1, 2019
index.mjs rename to tick, remove callback interface Jan 30, 2019
mocha.coverage.opts Reinstate code coverage Nov 23, 2017
mocha.opts fix unrelated bug that was causing tests to fail Dec 14, 2017
package-lock.json Move some stuff into @sveltejs/site-kit May 2, 2019
package.json -> v3.2.0 May 4, 2019
register.js error on invalid compiler options — closes #2094 Feb 17, 2019
rollup.config.js add crossfade and flip functions (#2241) Mar 17, 2019
store.mjs add initial_value argument to derived store Apr 11, 2019
transition.mjs fix another crossfade bug Apr 16, 2019
tsconfig.json baby steps towards #1316 Apr 22, 2018

README.md

Cybernetically enhanced web apps: Svelte

What is Svelte?

Svelte is a new way to build web applications. It's a compiler that takes your declarative components and converts them into efficient JavaScript that surgically updates the DOM.

Learn more at the Svelte website, or stop by the Discord chatroom.

Development

Pull requests are encouraged and always welcome. Pick an issue and help us out!

To install and work on Svelte locally:

git clone git@github.com:sveltejs/svelte.git
cd svelte
npm install

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

The compiler is written in TypeScript, but don't let that put you off — it's basically just JavaScript with type annotations. You'll pick it up in no time. If you're using an editor other than VSCode you may need to install a plugin in order to get syntax highlighting and code hints etc.

Running Tests

npm run test

To filter tests, use -g (aka --grep). For example, to only run tests involving transitions:

npm run test -- -g transition

svelte.dev

The source code for https://svelte.dev, including all the documentation, lives in the site directory. The site is built with Sapper. To develop locally:

cd site
npm install && npm run update
npm run dev

License

MIT

You can’t perform that action at this time.