Git Product home page Git Product logo

tailblazor-templates's People

Contributors

mcnerdius avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

tailblazor-templates's Issues

Regex for errors from tailwindcss

Regex test

The regex seems to work for every flavour except ECMAScript (which unfortunately VSCode uses), where in the example you can see that it no longer assigns groupings compared to the other flavours.

The regex is divided into two parts by the | character which means Alternate match. The part before | catches the Windows filepath and the latter part captures macOS/Linux. Using either of those parts on their own allows VSCode to correctly report the problem in the Problems pane with a link to the source code file, line and character - this can be tested by throwing some garbage characters into app.css

Short term solution could be to use the platform conditional in the template installation and insert the platform specific string, but it definitely isn't the right solution.

There is a second area to investigate which is how to reference the groups from the tasks.json file - but it seems to be a basic int reference.

tasks,json snippet so far:

{
      "label": "build & start tailwind jit/watch",
      "type": "shell",
      "command": "dotnet build -property TailwindBuild=false && npm run watch",
      "isBackground": true,
      "problemMatcher": {
        "owner": "external",
        "fileLocation": "absolute",
        "pattern": {
          "regexp": "([A-Z]:[^:]*):(\\d+):(\\d+):(.*)|(\\/[^:]*):(\\d+):(\\d+):(.*)",
          "file": 1,
          "line": 2,
          "column": 3,
          "message": 4
        },
        "background": {
          "activeOnStart": true,
          "beginsPattern": "Rebuilding\\.\\.\\.$",
          "endsPattern": "Done in \\d+ms\\.$"
        }
      },

This is work in progress, but just wanted to capture the actual regex in an issue in case others may have some ideas on how to make it work properly cross platform.

vNext

  • Give #26 and tailblazor.dev issue 129 a common, more descriptive name.
  • Update to TailwindCSS v 3.1
    • Other dependencies, too
  • ... ?

npm run build fails (cannot find scoped css)

Trying to follow along with the steps, and probably got something wrong along the way.

Running "npm run build" throws the following error:

> [email protected] build
> npx tailwindcss --config tailwind.config.js --postcss postcss.config.js -i site.css -o ./wwwroot/site.min.css

C:\Users\User\source\repos\CarpeDatumPortal\CarpeDatumPortal\Client\node_modules\postcss-import\lib\resolve-id.js:35
      throw new Error(
            ^

Error: Failed to find './obj/scopedcss/bundle/site.styles.css'
  in [
    C:\Users\User\source\repos\CarpeDatumPortal\CarpeDatumPortal\Client
  ]
    at C:\Users\User\source\repos\CarpeDatumPortal\CarpeDatumPortal\Client\node_modules\postcss-import\lib\resolve-id.js:35:13
    at async LazyResult.runAsync (C:\Users\User\source\repos\CarpeDatumPortal\CarpeDatumPortal\Client\node_modules\tailwindcss\peers\index.js:5153:15)

Node.js v17.3.0

Pointers appreciated :)

add launch configs back in for vscode

They "just worked" ... with a couple caveats so i didn't want to include them in the nuget package.

  • Add back to repo but exclude from templates until they've been ironed out.
  • Add back to templates with either an opt-in or opt-out for the .vscode folder. Reference
  • Add opt in/out of watch.ps1 scripts while i'm at it.

create the nuget package

  • Templates in sync
    • Correct page titles
    • gitignore
    • readme ?
    • ...
  • Better template names, descriptions
  • Better template icon. (Current one renders wonky in VS)
  • Ensure prerelease flags set where needed
  • ...

vNext

  • Give McNerdius/TailBlazor#16 and tailblazor.dev issue 129 a new more descriptive name.
  • Update to TailwindCSS v 3.1
    • Other dependencies, too
  • ... ?

VS inverts template icon for dark mode

ok so this repo is meant to be runnable dotnet templates, not visual studio templates, but if little noise is added to the "runnable" aspect to improve things, no problem. This won't happen.

  • This is the approach i'd initially taken, but VS inverts the PNG in dark mode making it ugly. There's nothing in that schema about disabling inversion or an entry inverted icon.
  • This is an old post about a hack to prevent color inversion when creating Visual Studio templates. No luck using the hack in a dotnet template.
  • VS 2022 handles dotnet templates a bit differently from VS 2019 but i still haven't pinned down how to A) Provide a specific icon as an "Inverted" option or B) specify "don't invert icon.png for dark mode pls."

Find a solution or switch from somewhat arbitrary awesomeface to something that isn't ugly when inverted.

Hot reload not working when running in ASP.NET Core hosted mode

I was integrating a TailBlazor WASM template into my application. Noticed hot reload wasnt working when I launch it from a .Net Core hosted project that also contains the REST API. Only when I run the individual TailBlazor project does hot reload work.

.NET 7

seems like the only functional difference will be taking advantage of the new progress properties.

don't merge until november !

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.