codechips / svelte-starter-template Goto Github PK
View Code? Open in Web Editor NEWSimple and small Svelte starter template (only Rollup + Prettier). Optional: Typescript, Tailwind CSS
Simple and small Svelte starter template (only Rollup + Prettier). Optional: Typescript, Tailwind CSS
i'm fairly new to js development, so anything's possible but could you confirm that this doesn't seem right:
koom@dev ~/test> npx degit codechips/svelte-starter-template cross-component-communication
npx: installed 1 in 1.942s
> cloned codechips/svelte-starter-template#master to cross-component-communication
koom@dev ~/test [127]> cd cross-component-communication && yarn install
yarn install v1.22.4
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > [email protected]" has unmet peer dependency "@types/html-minifier@^3.5.3".
[4/4] Building fresh packages...
success Saved lockfile.
Done in 14.47s.
koom@dev ~/test/cross-component-communication> node -v
v13.14.0
koom@dev ~/test/cross-component-communication> yarn start
yarn run v1.22.4
$ del-cli dist && NODE_ENV=development rollup --config --watch
Done in 0.91s.
now the interesting part:
koom@dev ~/test/cross-component-communication> env NODE_ENV=development node_modules/rollup/dist/bin/rollup --config --watch
koom@dev ~/test/cross-component-communication>
^ it just quits immediately.
env NODE_ENV=something_else node_modules/rollup/dist/bin/rollup --config --watch
[!] Error: Unexpected token
rollup.config.js (45:4)
43: name: 'bundle',
44: file: 'dist/bundle.js',
45: ,
^
46: format: 'iife',
47: },
Error: Unexpected token
at error (/home/koom/test/cross-component-communication/node_modules/rollup/dist/shared/rollup.js:5195:30)
at Module.error (/home/koom/test/cross-component-communication/node_modules/rollup/dist/shared/rollup.js:9657:16)
at tryParse (/home/koom/test/cross-component-communication/node_modules/rollup/dist/shared/rollup.js:9571:23)
at Module.setSource (/home/koom/test/cross-component-communication/node_modules/rollup/dist/shared/rollup.js:9963:30)
at ModuleLoader.addModuleSource (/home/koom/test/cross-component-communication/node_modules/rollup/dist/shared/rollup.js:18063:20)
at ModuleLoader.fetchModule (/home/koom/test/cross-component-communication/node_modules/rollup/dist/shared/rollup.js:18117:9)
at async Promise.all (index 0)
^C⏎ koom@dev ~/test/cross-component-communication [SIGINT]>
koom@dev ~/test/cross-component-communication [SIGINT]> sed -e s/"sourcemap: isDev"//g -i rollup.config.js
koom@dev ~/test/cross-component-communication> sed -e s/"sourcemap: isDev\,"//g -i rollup.config.js
koom@dev ~/test/cross-component-communication>
env NODE_ENV=something_else node_modules/rollup/dist/bin/rollup --config --watch
rollup v2.24.0
bundles src/main.js → dist/bundle.js...
created dist/bundle.js in 816ms
[2020-08-14 00:13:52] waiting for changes...
i also found: https://stackoverflow.com/questions/62840706/svelte-demo-template-does-not-start
Hi Ilia, I tried running the starter with tailwind integration:
$ npx degit codechips/svelte-starter-template#with-tailwindcss my-app
And got a standard template without tailwind. Is it broken?
Thanks for the template!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.