Skip to content

Commit

Permalink
piano
Browse files Browse the repository at this point in the history
  • Loading branch information
Wscats committed Jul 24, 2019
1 parent cf037b8 commit 18acc2b
Show file tree
Hide file tree
Showing 122 changed files with 2,653 additions and 2,736 deletions.
63 changes: 63 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 1,63 @@
{
"parser": "babel-eslint",
"extends": ["prettier"],
"plugins": ["prettier"],
"env": {
"browser": true,
"mocha": true,
"node": true,
"es6": true
},
"parserOptions": {
"ecmaFeatures": {
"modules": true,
"jsx": true
}
},
"globals": {
"sinon": true,
"expect": true
},
"rules": {
"prettier/prettier": "error",
"no-cond-assign": 1,
"no-empty": 0,
"no-console": 1,
"semi": [1, "never"],
"camelcase": 0,
"comma-style": 2,
"comma-dangle": [2, "never"],
"indent": ["error", 2],
"no-mixed-spaces-and-tabs": [2, "smart-tabs"],
"no-trailing-spaces": [2, { "skipBlankLines": true }],
"max-nested-callbacks": [2, 3],
"no-eval": 2,
"no-implied-eval": 2,
"no-new-func": 2,
"guard-for-in": 0,
"eqeqeq": 0,
"no-else-return": 2,
"no-redeclare": 2,
"no-dupe-keys": 2,
"radix": 2,
"strict": [2, "never"],
"no-shadow": 0,
"callback-return": [1, ["callback", "cb", "next", "done"]],
"no-delete-var": 2,
"no-undef-init": 2,
"no-shadow-restricted-names": 2,
"handle-callback-err": 0,
"no-lonely-if": 2,
"keyword-spacing": 2,
"constructor-super": 2,
"no-this-before-super": 2,
"no-dupe-class-members": 2,
"no-const-assign": 2,
"prefer-spread": 2,
"no-useless-concat": 2,
"no-var": 2,
"object-shorthand": 2,
"prefer-arrow-callback": 2,
"quotes": [1, "single"]
}
}
22 changes: 21 additions & 1 deletion .gitignore
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1 1,21 @@
node_modules
# See https://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
/node_modules

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
69 changes: 69 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 1,69 @@
## Develop

```bash
npm install
npm start
```

## Release

```bash
npm run build
```

## Eslint Prettier

``` bash
npm run fix
```

## Directory description

```
├─ config
├─ public
├─ scripts
├─ src
│ ├─ assets
│ ├─ elements //Store all custom elements
│ ├─ store //Store all this store of pages
│ ├─ admin.js //Entry js of compiler,will build to admin.html
│ └─ index.js //Entry js of compiler,will build to index.html
```

## Build Scripts

```json
"scripts": {
"start": "node scripts/start.js",
"build": "PUBLIC_URL=. node scripts/build.js",
"build-windows": "set PUBLIC_URL=.&& node scripts/build.js",
"fix": "eslint src --fix"
}
```

You can set up the PUBLIC_URL, such as:

```bash
...
"build": "PUBLIC_URL=https://fe.wxpay.oa.com/dv node scripts/build.js",
"build-windows": "set PUBLIC_URL=https://fe.wxpay.oa.com/dv&& node scripts/build.js",
...
```

## Switch omi and omio

Add or remove the alias config in package.json to switch omi and omio:

```js
...
"alias": {
"omi": "omio"
}
...
```

## License

MIT

22 changes: 0 additions & 22 deletions app/channel/heros.vue

This file was deleted.

27 changes: 0 additions & 27 deletions app/channel/news.vue

This file was deleted.

29 changes: 0 additions & 29 deletions app/channel/players.vue

This file was deleted.

38 changes: 0 additions & 38 deletions app/index.vue

This file was deleted.

69 changes: 0 additions & 69 deletions app/wchampion.vue

This file was deleted.

Loading

0 comments on commit 18acc2b

Please sign in to comment.