Skip to content

Commit 14f7bd1

Browse files
committed
初始提交
1 parent 4dc34a4 commit 14f7bd1

112 files changed

Lines changed: 24294 additions & 2 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.babelrc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"presets": [
3+
[
4+
"@babel/preset-env",
5+
{
6+
"corejs": "3",
7+
"useBuiltIns": "usage"
8+
}
9+
],
10+
[
11+
"minify",
12+
{
13+
"builtIns": false,
14+
"evaluate": false,
15+
"mangle": false
16+
}
17+
]
18+
],
19+
"plugins": [
20+
"@babel/plugin-syntax-dynamic-import"
21+
]
22+
}

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 2
7+
indent_style = space
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true

.eslintrc

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"extends": "standard",
3+
"plugins": [
4+
"html"
5+
],
6+
"parser": "babel-eslint",
7+
"rules": {
8+
"no-new": "off",
9+
"camelcase": "off",
10+
"no-return-assign": "off",
11+
"space-before-function-paren": ["error", "never"],
12+
"no-var": "error",
13+
"no-fallthrough": "off",
14+
"prefer-promise-reject-errors": "off",
15+
"eqeqeq": "off",
16+
"no-multiple-empty-lines": [1, {"max": 2}],
17+
"comma-dangle": [2, "always-multiline"],
18+
"standard/no-callback-literal": "off",
19+
"prefer-const": "off"
20+
},
21+
"settings": {
22+
"html/html-extensions": [".html", ".vue"]
23+
}
24+
}

.gitignore

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
8+
# Runtime data
9+
pids
10+
*.pid
11+
*.seed
12+
*.pid.lock
13+
14+
# Directory for instrumented libs generated by jscoverage/JSCover
15+
lib-cov
16+
17+
# Coverage directory used by tools like istanbul
18+
coverage
19+
20+
# nyc test coverage
21+
.nyc_output
22+
23+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24+
.grunt
25+
26+
# Bower dependency directory (https://bower.io/)
27+
bower_components
28+
29+
# node-waf configuration
30+
.lock-wscript
31+
32+
# Compiled binary addons (https://nodejs.org/api/addons.html)
33+
build/Release
34+
35+
# Dependency directories
36+
node_modules/
37+
jspm_packages/
38+
39+
# TypeScript v1 declaration files
40+
typings/
41+
42+
# Optional npm cache directory
43+
.npm
44+
45+
# Optional eslint cache
46+
.eslintcache
47+
48+
# Optional REPL history
49+
.node_repl_history
50+
51+
# Output of 'npm pack'
52+
*.tgz
53+
54+
# Yarn Integrity file
55+
.yarn-integrity
56+
57+
# dotenv environment variables file
58+
.env
59+
60+
# next.js build output
61+
.next
62+
63+
64+
build
65+
66+
dist
67+
68+
publish/assets
69+
70+
publish/utils/githubToken.js

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# lx-music-desktop change log
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
Project versioning adheres to [Semantic Versioning](http://semver.org/).
6+
Commit convention is based on [Conventional Commits](http://conventionalcommits.org).
7+
Change log format is based on [Keep a Changelog](http://keepachangelog.com/).
8+
9+
## [0.1.0] - 2019-8-16
10+
11+
* 0.1.0版本发布

README.md

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,42 @@
1-
# lx-music-desktop
2-
洛雪音乐助手桌面版
1+
# 洛雪音乐助手桌面版
2+
3+
[![GitHub release][1]][2]
4+
[![Build status][3]][4]
5+
[![GitHub All Releases Download][5]][6]
6+
[![dev branch][7]][8]
7+
8+
[1]: https://img.shields.io/github/release/lyswhut/lx-music-desktop
9+
[2]: https://github.com/lyswhut/lx-music-desktop/releases
10+
[3]: https://ci.appveyor.com/api/projects/status/flrsqd5ymp8fnte5?svg=true
11+
[4]: https://ci.appveyor.com/project/lyswhut/lx-music-desktop
12+
[5]: https://img.shields.io/github/downloads/lyswhut/lx-music-desktop/total
13+
[6]: https://github.com/lyswhut/lx-music-desktop/releases
14+
[7]: https://img.shields.io/github/package-json/v/lyswhut/lx-music-desktop/dev
15+
[8]: https://github.com/lyswhut/lx-music-desktop/tree/dev
16+
17+
## 说明
18+
19+
一个基于 Electron + Vue 开发的 Windows 版音乐软件。
20+
21+
所用技术栈:
22+
23+
- Electron 7.x
24+
- Vue 2.x
25+
26+
其他说明:TODO
27+
28+
感谢 <https://github.com/messoer> 提供的部分音乐API!
29+
30+
## 使用方法
31+
32+
```bash
33+
# 开发模式
34+
npm run dev
35+
36+
# 构建免安装版
37+
npm run pack:dir
38+
39+
# 构建安装包
40+
npm run pack
41+
42+
```

appveyor.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
platform:
2+
- x64
3+
4+
cache:
5+
- node_modules
6+
- '%APPDATA%\npm-cache'
7+
# - '%USERPROFILE%\.electron'
8+
9+
install:
10+
- ps: Install-Product node 12 x64
11+
- npm install
12+
13+
build_script:
14+
- npm run pub:gh
15+
16+
test: off
17+
18+
branches:
19+
only:
20+
- master

build-config/css-loader.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
const isDev = process.env.NODE_ENV === 'development'
2+
3+
module.exports = {
4+
modules: {
5+
localIdentName: isDev ? '[folder]-[name]--[local]--[hash:base64:5]' : '[hash:base64:5]',
6+
},
7+
localsConvention: 'camelCase',
8+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
const path = require('path')
2+
3+
module.exports = {
4+
target: 'electron-main',
5+
output: {
6+
filename: '[name].js',
7+
libraryTarget: 'commonjs2',
8+
path: path.join(__dirname, '../../dist/electron'),
9+
},
10+
externals: [
11+
// suppress electron-debug warning
12+
// see https://github.com/SimulatedGREG/electron-vue/issues/498
13+
{ 'electron-debug': 'electron-debug' },
14+
],
15+
resolve: {
16+
alias: {
17+
common: path.join(__dirname, '../../src/common'),
18+
},
19+
extensions: ['*', '.js', '.json', '.node'],
20+
},
21+
module: {
22+
rules: [
23+
{
24+
test: /\.js$/,
25+
use: {
26+
loader: 'eslint-loader',
27+
options: {
28+
formatter: require('eslint-formatter-friendly'),
29+
},
30+
},
31+
exclude: /node_modules/,
32+
enforce: 'pre',
33+
},
34+
// {
35+
// test: /\.js$/,
36+
// loader: 'babel-loader',
37+
// exclude: /node_modules/,
38+
// },
39+
],
40+
},
41+
performance: {
42+
maxEntrypointSize: 300000,
43+
},
44+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
const path = require('path')
2+
const merge = require('webpack-merge')
3+
const webpack = require('webpack')
4+
5+
const baseConfig = require('./webpack.config.base')
6+
7+
8+
module.exports = merge(baseConfig, {
9+
mode: 'development',
10+
entry: {
11+
main: path.join(__dirname, '../../src/main/index.dev.js'),
12+
},
13+
plugins: [
14+
new webpack.DefinePlugin({
15+
'process.env': {
16+
NODE_ENV: '"development"',
17+
},
18+
__static: `"${path.join(__dirname, '../../src/static').replace(/\\/g, '\\\\')}"`,
19+
}),
20+
new webpack.NoEmitOnErrorsPlugin(),
21+
],
22+
})

0 commit comments

Comments
 (0)