Giter Club home page Giter Club logo

generator-svelte's Introduction

generator-svelte

NPM version NPM downloads Build

generator-svelte is a Yeoman generator generating a boilerplate Svelte.js app

Installation

Install Yeoman and generator-svelte using npm (we assume you have pre-installed node.js).

npm install -g yo generator-svelte

Usage

Move to your project directory and generate your new Svelte project using:

yo svelte

demo.gif

Supported languages

generator-svelte supports multiple languages listed below:

Supported package managers

generator-svelte supports NPM and Yarn.

Authors

License

This project is licensed under the Apache license 2.0 - see the LICENSE file for details

Apache-2.0 © Samuel-Martineau & Doudou8

generator-svelte's People

Contributors

dependabot[bot] avatar dkchiem avatar samuel-martineau 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  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

generator-svelte's Issues

Issue with bublé

There seem to be a bug with bublé. Could you please upgrade to babel?

Support Svelte-kit

Is your feature request related to a problem? Please describe.
Svelte-kit is becoming the defacto way to create Svelte apps

Snowpack Support

Is your feature request related to a problem? Please describe.
Someone on Reddit requested Snowpack support.

Describe the solution you'd like
It would be nice to add an option to select the bundler (e.g. Rollup or Snowpack).

Issue running npm run build or dev

When I run npm run build or npm run dev, have this error:

[!] Error: ENOENT: no such file or directory, open '/Users/myuser/Desktop/notes/public/bundle2.css'

However, when I create a public folder first before running one of the two commands, the error doesn't occur. I think this means there is is something wrong with the folder creation.

Error: Package subpath './compiler.js' is not defined by "exports" in node_modules/svelte/package.json

Describe the bug
Fresh deploy of the generator on MacOS Catalina and Node v14.3.0. Trying to run the build or dev scripts, rollup fails with this error:

[!] Error: Package subpath './compiler.js' is not defined by "exports" in node_modules/svelte/package.json

Logs

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './compiler.js' is not defined by "exports" in node_modules/svelte/package.json
    at applyExports (internal/modules/cjs/loader.js:497:9)
    at resolveExports (internal/modules/cjs/loader.js:513:23)
    at Function.Module._findPath (internal/modules/cjs/loader.js:641:31)
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1016:27)
    at Function.Module._load (internal/modules/cjs/loader.js:898:27)
    at Module.require (internal/modules/cjs/loader.js:1089:19)
    at require (internal/modules/cjs/helpers.js:73:18)
    at Object.<anonymous> (node_modules/rollup-plugin-svelte/index.js:11:4)
    at Module._compile (internal/modules/cjs/loader.js:1200:30)
    at Module._extensions..js (internal/modules/cjs/loader.js:1220:10)

Platform:

  • OS: OSX Catalina
  • Generator version: 2.2.8
  • Node version: 14.3.0
  • NPM version: 5.3.0

404 Not Found: index.html

Describe the bug
i just created a project with command "yo svelte" with all first default options just hitting enter,
after installation done, i tried to run it on browser with command "npm run dev" but something is wrong,

Logs

404 Not Found

D:\NodeJS\todo\public\index.html

(rollup-plugin-serve)

Issue on build
and even i tried to build that project with command "npm run build"
i'm getting some kinda errors ,

Logs

[!] (plugin at position 7) Error: ENOENT: no such file or directory, open 'D:\NodeJS\todo\public\index.html'
Error: ENOENT: no such file or directory, open 'D:\NodeJS\todo\public\index.html'
    at Object.fs.openSync (fs.js:579:3)
    at Object.fs.writeFileSync (fs.js:1309:33)
    at Object.generateBundle (D:\NodeJS\todo\rollup.config.js:30:8)
    at Promise.resolve.then (D:\NodeJS\todo\node_modules\rollup\dist\shared\rollup.js:18269:25)

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.