Giter Site home page Giter Site logo

useflyyer / create-flyyer-app Goto Github PK

View Code? Open in Web Editor NEW
26.0 26.0 2.0 4.64 MB

Scaffold everything you need to create a https://flyyer.io template | Generate social media images and og:image

Home Page: https://flyyer.io

JavaScript 28.93% Batchfile 0.11% TypeScript 47.28% CSS 4.84% Vue 18.84%
build-tools flyyer image-generator npx open-graph react social-preview twitter-cards typescript vue zero-configuration

create-flyyer-app's People

Contributors

dependabot[bot] avatar fnmendez avatar lopezjurip 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  avatar  avatar  avatar

Watchers

 avatar  avatar

create-flyyer-app's Issues

Error: Failed to load config "xo-typescript" to extend from.

There is an error with xo when running yarn format.

Error: Failed to load config "xo-typescript" to extend from.
Referenced from: BaseConfig
    at configInvalidError ...

A workaround is manually installing the missing dependency ๐Ÿ‘‡

yarn add --dev eslint-config-xo-typescript

postcss - npm ERR! ERESOLVE unable to resolve dependency tree

If you have this error with Tailwind csss:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/postcss
npm ERR!   dev postcss@"^7" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer postcss@"^8.0.0" from @fullhuman/[email protected]
npm ERR! node_modules/@fullhuman/postcss-purgecss
npm ERR!   dev @fullhuman/postcss-purgecss@"^4.0.3" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /Users/lopezjurip/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/redacted/.npm/_logs/2021-07-16T17_20_25_893Z-debug.log

A possible solution is removing the explicit postcss dependency in your package.json

-  "postcss": "^7",

Then run npm install

react-typescript-tailwind "purge" does not work

Purging is not working. We should try to use https://www.npmjs.com/package/@fullhuman/postcss-purgecss to see if that works.

Here is the output when building a deck with created with the react-typescript-tailwind template.

โœจ  Built in 3.28s.

.flayyer-dist/flayyer-main.ce7127e9.css      โš ๏ธ  3 MB     22ms
.flayyer-dist/flayyer-main.a5590a07.js     290.53 KB    456ms
.flayyer-dist/background.bad75c3f.jpg       63.68 KB     17ms
.flayyer-dist/logo.c1e61a7b.svg              1.91 KB     17ms
.flayyer-dist/main.html                        271 B    2.73s
๐ŸŒ    flayyer project successfully built!

Note the 3MB for css.

tailwind.config.js extend config doesn't work

I have extended my tailwind.config.js like this:

module.exports = {
  purge: {
    enabled: process.env.NODE_ENV === "production",
    content: [
      "./templates/**/*.ts",
      "./templates/**/*.tsx",
      "./templates/**/*.js",
      "./templates/**/*.jsx",
      "./components/**/*.ts",
      "./components/**/*.tsx",
      "./components/**/*.js",
      "./components/**/*.jsx",
      "./styles/**/*.css",
      "./styles/**/*.scss",
      "./styles/**/*.sass",
      "./styles/**/*.less",
    ],
  },
  darkMode: false, // or 'media' or 'class'
  theme: {
    extend: {
      colors: {
        secondary: "#071d49",
      },
    },
  },
  variants: {
    extend: {},
  },
  plugins: [],
};

And if i hover in the class, is detected by Tailwind CSS Intellisense in a correct way

image

The problem is that is not being rendered in the browser

image

All the rest of the default classes works, but if i add a custom class it's like doesn't compile

Hot-Module-Replacement not working

Something changes are not immediately reflected, this may be caused by Parcel V1 (which is being deprecated). If you have this issue please:

  1. Stop your current dev server (started by $ flyyer start)
  2. Remove .flyyer-* directories: rm -rf .flyyer-*
  3. Start dev server again $ flyyer start

We are planing to move to Vite or Parcel V2 in the next major release

EDIT:

PR in process: Use the next version: useflyyer/flyyer-cli#17

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.