
A boilerplate for building a multi-page app with Svelte, Storybook, Webpack, Bulma and Nunjucks
Exploring new frameworks can often feel overwhelming, but this boilerplate for Svelte and Storybook simplifies the journey significantly. Svelte, known for its build-time efficiencies, manages to convert JavaScript components into a streamlined imperative code that updates the DOM precisely when needed. Coupled with Storybook, it allows for seamless visualization of UI component states, promoting development in isolation from your main application. This innovative setup is designed to cater to both static page generation and dynamic application needs, making it a versatile choice for developers.
The boilerplate not only introduces Svelte and Storybook but also integrates useful tools like Webpack, SCSS, and Nunjucks. With the framework’s capabilities, you can efficiently manage a blend of static pages and apps, customizing the templates to fit your project's unique demands, while also ensuring your environment is optimized for performance.
Built with Webpack 4: Providing a robust and flexible module bundler to optimize your builds and manage your assets effectively.
ES6 Support via Babel 7: Ensures that you can utilize modern JavaScript features while maintaining compatibility across different browsers.
Nunjucks Templates: Facilitates rendering of multiple static pages with customizable templates, thanks to a custom nunjucks-html-loader.
SCSS Support via Sass-loader: Allows for the use of SASS features, enhancing the styling capabilities of your components.
Styling with Bulma: Integrates the popular CSS framework Bulma, enabling responsive design and industry-standard UI elements.
Linting via ESLint-loader: Ensures your code meets specified style guides and standards, minimizing bugs and optimizing readability.
Map Component with Leaflet and Svelte: Streamlines the integration of interactive maps into your application, leveraging the powerful Leaflet library seamlessly.
Easy Setup: Just download or clone the repository, install dependencies, and you’re ready to run, develop, and build your application with ease.

Svelte is a modern front-end framework that compiles your code at build time, resulting in smaller and faster applications. It uses a reactive approach to update the DOM, allowing for high performance and a smoother user experience.
Bulma is a free, open source CSS framework based on Flexbox and built with Sass. It's 100% responsive, fully modular, and available for free.
SCSS is a preprocessor scripting language that extends the capabilities of CSS by adding features such as variables, nesting, and mixins. It allows developers to write more efficient and maintainable CSS code, and helps to streamline the development process by reducing repetition and increasing reusability.
ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.
Storybook is a tool for developing and testing UI components in isolation. It provides a sandbox environment where you can experiment with different props and states to see how your component responds.
Webpack is a popular open-source module bundler for JavaScript applications that bundles and optimizes the code and its dependencies for production-ready deployment. It can also be used to transform other types of assets such as CSS, images, and fonts.