v-github-activity
Advanced tools
Comparing version 0.0.1 to 0.1.0
{ | ||
"name": "v-github-activity", | ||
"version": "0.0.1", | ||
"main": "src/index.js", | ||
"version": "0.1.0", | ||
"description": "Componente Vue para mostrar la actividad reciente de github", | ||
@@ -18,3 +17,6 @@ "author": "amaury.tobiasqr@gmail.com", | ||
], | ||
"module": "src/index.js", | ||
"main": "dist/v-github-activity.ssr.js", | ||
"module": "dist/v-github-activity.esm.js", | ||
"browser": "dist/v-github-activity.min,js", | ||
"unpkg": "dist/v-github-activity.min,js", | ||
"files": [ | ||
@@ -30,11 +32,12 @@ "dist/*", | ||
"scripts": { | ||
"serve": "vue-cli-service serve", | ||
"build": "vue-cli-service build", | ||
"serve": "vue serve src/components/GithubFeed.vue", | ||
"lint": "vue-cli-service lint", | ||
"test:unit": "vue-cli-service test:unit" | ||
"test": "vue-cli-service test:unit", | ||
"build": "cross-env NODE_ENV=production rollup --config build/rollup.config.js", | ||
"build:ssr": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format cjs", | ||
"build:es": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format es", | ||
"build:unpkg": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format iife", | ||
"prepare": "npm run build" | ||
}, | ||
"dependencies": { | ||
"axios": "^0.19.0", | ||
"vue-octicon": "^2.1.1" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
@@ -49,6 +52,14 @@ "@vue/cli-plugin-babel": "^3.10.0", | ||
"chai": "^4.2.0", | ||
"cross-env": "^5.2.0", | ||
"eslint": "^6.1.0", | ||
"eslint-plugin-prettier": "^3.1.0", | ||
"eslint-plugin-vue": "^5.2.3", | ||
"minimist": "^1.2.0", | ||
"prettier": "^1.18.2", | ||
"rollup": "^1.19.3", | ||
"rollup-plugin-buble": "^0.19.8", | ||
"rollup-plugin-commonjs": "^10.0.2", | ||
"rollup-plugin-replace": "^2.2.0", | ||
"rollup-plugin-terser": "^5.1.1", | ||
"rollup-plugin-vue": "^5.0.1", | ||
"vue": "^2.6.10", | ||
@@ -55,0 +66,0 @@ "vue-template-compiler": "^2.6.10" |
# v-github-activity | ||
## Project setup | ||
``` | ||
npm install | ||
``` | ||
### Beta release v0.1.0 | ||
### Compiles and hot-reloads for development | ||
``` | ||
npm run serve | ||
``` | ||
## TO DO | ||
### Compiles and minifies for production | ||
``` | ||
npm run build | ||
``` | ||
- ~~Build module using `Rollup`~~ | ||
- ~~Replace `axios` using `fetch`~~ | ||
- Add SGV icons | ||
- Unit testing | ||
### Run your tests | ||
``` | ||
npm run test | ||
``` | ||
## CHANGELOG | ||
### Lints and fixes files | ||
``` | ||
npm run lint | ||
``` | ||
#### v0.1.0 | ||
### Run your unit tests | ||
``` | ||
npm run test:unit | ||
``` | ||
- 🎇 Added CHANGELOG | ||
- 🎇 Added LICENSE | ||
- 🎇 Update README | ||
- 🎇 Profile and events request using `fetch()` | ||
- ❌ Removido `axios` | ||
- ❌ Removido `vue-octicons` | ||
- 🔮 Module build using `Rollup` | ||
### Customize configuration | ||
See [Configuration Reference](https://cli.vuejs.org/config/). | ||
#### v0.0.1 | ||
- 🎇 Creación del modulo npm. |
@@ -1,7 +0,41 @@ | ||
import component from './components/GithubFeed.vue' | ||
import GithubFeed from './components/GithubFeed.vue' | ||
import PushEvent from './components/events/PushEvent.vue' | ||
import PullRequestEvent from './components/events/PullRequestEvent.vue' | ||
import CreateEvent from './components/events/CreateEvent.vue' | ||
import DeleteEvent from './components/events/DeleteEvent.vue' | ||
import WatchEvent from './components/events/WatchEvent.vue' | ||
import IssuesEvent from './components/events/IssuesEvent.vue' | ||
import IssueCommentEvent from './components/events/IssueCommentEvent.vue' | ||
import ForkEvent from './components/events/ForkEvent.vue' | ||
import CommitCommentEvent from './components/events/CommitCommentEvent.vue' | ||
import PublicEvent from './components/events/PublicEvent.vue' | ||
const install = function install(Vue) { | ||
Vue.component('github-feed', component) | ||
export function install(Vue) { | ||
Vue.component('github-feed', GithubFeed) | ||
Vue.component('push-event', PushEvent) | ||
Vue.component('pull-request-event', PullRequestEvent) | ||
Vue.component('create-event', CreateEvent) | ||
Vue.component('watch-event', WatchEvent) | ||
Vue.component('delete-event', DeleteEvent) | ||
Vue.component('issues-event', IssuesEvent) | ||
Vue.component('issue-comment-event', IssueCommentEvent) | ||
Vue.component('commit-comment-event', CommitCommentEvent) | ||
Vue.component('fork-event', ForkEvent) | ||
Vue.component('public-event', PublicEvent) | ||
} | ||
export { | ||
GithubFeed, | ||
PushEvent, | ||
PullRequestEvent, | ||
CreateEvent, | ||
WatchEvent, | ||
DeleteEvent, | ||
IssuesEvent, | ||
IssueCommentEvent, | ||
ForkEvent, | ||
CommitCommentEvent, | ||
PublicEvent | ||
} | ||
const plugin = { | ||
@@ -11,2 +45,4 @@ install | ||
export default plugin | ||
let GlobalVue = null | ||
@@ -21,5 +57,1 @@ if (typeof window !== 'undefined') { | ||
} | ||
component.install = install | ||
export default component |
'use strict' | ||
import axios from 'axios' | ||
const client = axios.create({ | ||
baseURL: 'https://api.github.com/users/' | ||
}) | ||
export default { | ||
user: login => { | ||
return client.get(login) | ||
return fetch(`https://api.github.com/users/${login}`) | ||
.then(res => res.json()) | ||
.then(response => response) | ||
.catch(e => e) | ||
}, | ||
events: login => { | ||
return client.get(login + '/events') | ||
return fetch(`https://api.github.com/users/${login}/events`) | ||
.then(res => res.json()) | ||
.then(response => response) | ||
.catch(e => e) | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
90864
0
22
826
22
27
9
- Removedaxios@^0.19.0
- Removedvue-octicon@^2.1.1
- Removed@babel/helper-string-parser@7.25.9(transitive)
- Removed@babel/helper-validator-identifier@7.25.9(transitive)
- Removed@babel/parser@7.26.2(transitive)
- Removed@babel/types@7.26.0(transitive)
- Removed@vue/compiler-sfc@2.7.16(transitive)
- Removedaxios@0.19.2(transitive)
- Removedcsstype@3.1.3(transitive)
- Removedfollow-redirects@1.5.10(transitive)
- Removednanoid@3.3.8(transitive)
- Removedpicocolors@1.1.1(transitive)
- Removedpostcss@8.4.49(transitive)
- Removedprettier@2.8.8(transitive)
- Removedsource-map@0.6.1(transitive)
- Removedsource-map-js@1.2.1(transitive)
- Removedvue@2.7.16(transitive)
- Removedvue-octicon@2.1.1(transitive)