GithubHelp home page GithubHelp logo

saucer / saucer-cli Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 2.0 137 KB

๐Ÿ›ธ A command-line utility for saucer

Home Page: https://www.npmjs.com/package/saucer-app

JavaScript 21.44% TypeScript 78.56%
react-ink saucer saucer-cli

saucer-cli's Introduction


Build cross-platform desktop apps with C++ & Web Technologies


Documentation

Our documentation can be found here.

Examples

Examples can be found here.

Getting started

Learn how to create your first saucer app here.

Projects using Saucer

Soundux

Solar2D-Viewer

saucer-cli's People

Contributors

curve avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

classic130

saucer-cli's Issues

Embedding react component on windows results in compiler error

Hi,

I've tried to embed a simple react project with shadcn/tailwind css into an executable.

When I run the embed command it results in the below header which will not compile:

#pragma once
#include <map>
#include <string>
#include <saucer/webview.hpp>

#include "assets\index-39437b50.css.hpp"
#include "assets\index-99cf2deb.js.hpp"
#include "assets\react-35ef61ed.svg.hpp"
#include "index.html.hpp"
#include "vite.svg.hpp"

namespace saucer::embedded
{
    inline auto all()
    {
        std::map<std::string, embedded_file> rtn;

        rtn.emplace("assets\index-39437b50.css", embedded_file{"text/css", assets_index______b___css});
        rtn.emplace("assets\index-99cf2deb.js", embedded_file{"application/javascript", assets_index___cf_deb_js});
        rtn.emplace("assets\react-35ef61ed.svg", embedded_file{"image/svg+xml", assets_react___ef__ed_svg});
        rtn.emplace("index.html", embedded_file{"text/html", index_html});
        rtn.emplace("vite.svg", embedded_file{"image/svg+xml", vite_svg});

        return rtn;
    }
} // namespace saucer::embedded

I'm using visual studio 2022 on windows 10 within vscode.

Windows Path-Seperator

Hi,

I've tried to embed a simple react project with shadcn/tailwind css into an executable.

When I run the embed command it results in the below header which will not compile:

#pragma once
#include <map>
#include <string>
#include <saucer/webview.hpp>

#include "assets\index-39437b50.css.hpp"
#include "assets\index-99cf2deb.js.hpp"
#include "assets\react-35ef61ed.svg.hpp"
#include "index.html.hpp"
#include "vite.svg.hpp"

namespace saucer::embedded
{
    inline auto all()
    {
        std::map<std::string, embedded_file> rtn;

        rtn.emplace("assets\index-39437b50.css", embedded_file{"text/css", assets_index______b___css});
        rtn.emplace("assets\index-99cf2deb.js", embedded_file{"application/javascript", assets_index___cf_deb_js});
        rtn.emplace("assets\react-35ef61ed.svg", embedded_file{"image/svg+xml", assets_react___ef__ed_svg});
        rtn.emplace("index.html", embedded_file{"text/html", index_html});
        rtn.emplace("vite.svg", embedded_file{"image/svg+xml", vite_svg});

        return rtn;
    }
} // namespace saucer::embedded

I'm using visual studio 2022 on windows 10 within vscode.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.