Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .editorconfig

This file was deleted.

24 changes: 24 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint',
},
env: {
browser: true,
node: true
},
settings: {
'html/html-extensions': ['.vue']
},
extends: [
'standard',
'plugin:vue/recommended'
],
// required to lint *.vue files
plugins: [
'html'
],
// add your custom rules here
rules: {},
globals: {}
}
61 changes: 8 additions & 53 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,56 +1,11 @@
.DS_Store
dist
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output


# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
# dependencies
node_modules

# Dependency directories
node_modules/
jspm_packages/
# logs
npm-debug.log

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
# Nuxt build
.nuxt

# Nuxt generate
dist
19 changes: 19 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
language: node_js
cache:
directories:
- node_modules
notifications:
email: false
slack:
secure: U8X12/dth1IsIgwLoVWwYMhPeDdS7l0fFdYnQqfceSdLviB/u5yxLbDRQWSoDn72wF9wScQvXOA1nkLF62hh0i83n+TMoj9iTNkrD1fvJlheUFmP9ivxnrn7Xjg+9p3upxzuiMXUR8sYlh1BPVZEg86uVnvLoXjfRMsqVnhTHL0gucfT7pp6M9MoMjuR9/oNU79cpa+1tRNfp6UxedC8r4ZIMjC3eoQP6mqqlO8/4hNBGkK1YvRdaykBdUqJC/IqVzuYtlxKYWgWH+nQNcBWmorwVWhZPKmOYZHLpfZNQ9a54L1cYby+NWngVFG9HmKDpoo47fZCBBlPth0dS0co4Z96vSkDHR9LwEGObQ+eUlNXB3DRpMOCujJJBhow/imSfB5q3y7ta4p/sB/gI76L/+8ruSzeZPbT8r1DP9W2CoS7iSUnB6vTgQvcdi+64rtNxJSmAU7uY9nEcGYG+DAoZdnzKNI8y5hyNJEtVA56CdOuLBUBGfPJbRpz6So9pbLLb7fuw4ABSrpiO9ZsGOXvJqJ2rC/aoYXPWnmfCc26IbEOpeB+1R7e+9lfy1U0xHHjjpkKv68IWhTJHiXZ1lHvlx/xr07OHRaMoLTKvb0fR5KMfNW2Mo9MxwQM81zDTdrGPiaRPUDVybRN3qESsI3STq38YueL0SGYQ6SXZQHPvro=
node_js:
- '8'
before_script:
- npm prune
script:
- npm t
after_success:
- npm run semantic-release
branches:
except:
- /^v\d+\.\d+\.\d+$/
61 changes: 13 additions & 48 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,57 +1,22 @@
# rankist
the best place to found and create ranking lists

> the best place to found and create ranking lists
> Nuxt.js project

## Commands
## Build Setup

```bash
# build for production
npm run build
``` bash
# install dependencies
$ npm install # Or yarn install

# development mode
npm run dev
# serve with hot reload at localhost:3000
$ npm run dev

# run unit tests
npm run test
# build for production and launch server
$ npm run build
$ npm start

# serve the bundled dist folder in production mode
npm run serve
# generate static project
$ npm run generate
```

## Polyfills

By default we only polyfill `window.Promise` and `Object.assign`. You can add more polyfills in `./src/polyfills.js`.

## Code splitting

As webpack supports both [dynamic import](https://webpack.js.org/guides/code-splitting-async/#dynamic-import-import-) and [`require.ensure`](https://webpack.js.org/guides/code-splitting-async/#require-ensure-) syntax, we would recommend you to stick to `require.ensure` for now because of [performance issue](https://github.com/webpack/webpack/issues/4636).

## Analyze bundle size

Run `npm run report` to get a report of bundle size which helps you:

- Realize what's really inside your bundle
- Find out what modules make up the most of it's size
- Find modules that got there by mistake
- Optimize it!


## Test

You can use [AVA](https://github.com/avajs/ava) to run tests, basically the default setup is based on AVA's offical [Vue.js recipe](https://github.com/avajs/ava/blob/master/docs/recipes/vue.md).

Check out `./test/test.js` for an example test case, and `./test/helpers/setup.js` for how we transform `.vue` and `.js` files.

## Progress Web App

Your app is now offline-ready (only in production bundle), which means you can visit it without network.

Here we use a default [manifest.json](./static/manifest.json) to configurure your pwa, for example, to enable *Add to Home Screen* feature on Android. It will be copied directly to `./dist/manifest.json`.


For all the available options, please head to [poi-preset-offline](https://github.com/egoist/poi/tree/master/packages/poi-preset-offline#api).

---

This project is generated by [create-vue-app](https://github.com/egoist/create-vue-app).
For detailed explanation on how things work, checkout the [Nuxt.js docs](https://github.com/nuxt/nuxt.js).
29 changes: 0 additions & 29 deletions index.ejs

This file was deleted.

29 changes: 29 additions & 0 deletions nuxt.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
module.exports = {
srcDir: 'src',
head: {
title: 'RANKIST',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: 'Nuxt.js project' }
],
link: [
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons' },
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
]
},
plugins: ['~/plugins/vuetify'],
build: {
vendor: ['vuetify'],
extend (config, ctx) {
if (ctx.dev && ctx.isClient) {
config.module.rules.push({
enforce: 'pre',
test: /\.(js|vue)$/,
loader: 'eslint-loader',
exclude: /(node_modules)/
})
}
}
}
}
Loading