Skip to content
This repository has been archived by the owner on Nov 12, 2023. It is now read-only.

A better example website similar to react stickyroll #1

Open
vaibhavhrt opened this issue Jul 17, 2019 · 11 comments
Open

A better example website similar to react stickyroll #1

vaibhavhrt opened this issue Jul 17, 2019 · 11 comments

Comments

@vaibhavhrt
Copy link

I am good in react but learning vue, so I will be happy to convert the example into something more fancy like the react stickyroll website.

@pixelass
Copy link
Member

Hi @vaibhavhrt. Thank you for the offer.
Feel free to open a PR and reuse the data from the react-version. It should be pretty easy to port it to vue.

@vaibhavhrt
Copy link
Author

thanks, I will put some time into it on weekend.

@vaibhavhrt
Copy link
Author

vaibhavhrt commented Jul 29, 2019

@pixelass I couldn't get the development environment setup, there are several package.json not sure which to install, and which scripts to run. Can you provide some info.

@pixelass
Copy link
Member

You should be able to use the following commands.

yarn # install dependencies
yarn dev # run all required dev tasks in one command

It's a monorepo so the main dev script will build/watch everything while you develop.

The demosite is located at vue-stickyroll/site/app/
The current demo app can be found here: https://github.com/stickyroll/vue-stickyroll/blob/master/site/app/src/App.vue

@vaibhavhrt
Copy link
Author

yarn # install dependencies
yarn dev # run all

in which directory?

@pixelass
Copy link
Member

pixelass commented Jul 29, 2019

ROOT
dev is the only script there

@vaibhavhrt
Copy link
Author

If I dev in site/app

ERROR Failed to compile with 2 errors 18:26:23
These dependencies were not found:

  • @stickyroll/vue in ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/App.vue?v
    ue&type=script&lang=js&
  • @stickyroll/vue/index.css?vue&type=style&index=0&lang=css& in ./src/App.vue
    To install them, you can run: npm install --save @stickyroll/vue @stickyroll/vue/index.css?vue&type=style&index=0&lang
    =css&

@vaibhavhrt
Copy link
Author

I was using npm, let me switch to yarn n check.

@pixelass
Copy link
Member

pixelass commented Jul 29, 2019

git clone git@github.com:stickyroll/vue-stickyroll.git # clone from remote
cd vue-sickyroll # change directory
yarn # install
yarn dev # develop

@pixelass
Copy link
Member

npm should work fine since it's a "lerna" project.

Just don't run the tasks in the nested directories since lerna needs to create the symlinks for you

@vaibhavhrt
Copy link
Author

Switched to yarn, working as expected now. Expect a WIP PR soon.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants