-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SDPSUP-669] Added example for using Ripple in Vue.js(Not Nuxt) (#535)
* [SDPSUP-669] Added example for using Vue.js(Not Nuxt)
- Loading branch information
Showing
22 changed files
with
14,748 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
.DS_Store | ||
node_modules | ||
/dist | ||
|
||
# local env files | ||
.env.local | ||
.env.*.local | ||
|
||
# Log files | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Editor directories and files | ||
.idea | ||
.vscode | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Example for using ripple in Vue.js(Not Nuxt.js) | ||
|
||
This is a example for using Ripple in a Vue.js app. For using it in Nuxt.js, please check [ripple-nuxt-ui](https://github.com/dpc-sdp/ripple/blob/develop/packages/ripple-nuxt-ui/README.md) | ||
|
||
## Intro | ||
|
||
This example is created by Vue cli as a clean project. | ||
|
||
Two Ripple components installed just for demo how to install them. | ||
|
||
### Dependencies | ||
|
||
Install below dev dependencies in your Vue project to make icon work. | ||
|
||
``` | ||
npm install sass-resources-loader svgo svgo-loader svg-sprite-loader --save-dev | ||
``` | ||
|
||
### Webpack configs | ||
|
||
Some config required for making things like icon working. | ||
|
||
Check [/vue.config.js](/vue.config.js) for more details. | ||
|
||
### Using Ripple components | ||
|
||
Chceck [/src/App.vue](/src/App.vue) and [/src/components/HelloRipple.vue](/src/components/HelloRipple.vue) for more details. | ||
|
||
### Install Ripple plugin | ||
|
||
Optionally install [Ripple plugin]((https://github.com/dpc-sdp/ripple/tree/develop/packages/components/Atoms/Global#rploptions)) if you need to use some options. | ||
|
||
We added it in this [/src/main.js](/src/main.js). | ||
|
||
## Project setup | ||
``` | ||
yarn install | ||
``` | ||
or | ||
``` | ||
npm install | ||
``` | ||
|
||
### Compiles and hot-reloads for development | ||
``` | ||
yarn serve | ||
``` | ||
or | ||
``` | ||
npm run serve | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module.exports = { | ||
presets: [ | ||
'@vue/app' | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"baseUrl": "http://localhost:3000", | ||
"fixturesFolder": "test/e2e/fixtures", | ||
"integrationFolder": "test/e2e/integration", | ||
"pluginsFile": "test/e2e/plugins/index.js", | ||
"screenshotsFolder": "test/e2e/screenshots", | ||
"supportFile": "test/e2e/support/index.js", | ||
"videosFolder": "test/e2e/videos", | ||
"ignoreTestFiles": "*.js" | ||
} |
Oops, something went wrong.