-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from rishiqing/beta
beta
- Loading branch information
Showing
117 changed files
with
2,726 additions
and
3,934 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
> 1% | ||
last 2 versions | ||
not ie <= 8 |
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,30 @@ | ||
# http://editorconfig.org | ||
|
||
# A special property that should be specified at the top of the file outside of | ||
# any sections. Set to true to stop .editor config file search on current file | ||
root = true | ||
|
||
[*] | ||
# Indentation style | ||
# Possible values - tab, space | ||
indent_style = space | ||
|
||
# Indentation size in single-spaced characters | ||
# Possible values - an integer, tab | ||
indent_size = 2 | ||
|
||
# Line ending file format | ||
# Possible values - lf, crlf, cr | ||
end_of_line = lf | ||
|
||
# File character encoding | ||
# Possible values - latin1, utf-8, utf-16be, utf-16le | ||
charset = utf-8 | ||
|
||
# Denotes whether to trim whitespace at the end of lines | ||
# Possible values - true, false | ||
trim_trailing_whitespace = true | ||
|
||
# Denotes whether file should end with a newline | ||
# Possible values - true, false | ||
insert_final_newline = true |
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,17 @@ | ||
module.exports = { | ||
root: true, | ||
env: { | ||
node: true | ||
}, | ||
'extends': [ | ||
'plugin:vue/essential', | ||
'eslint:recommended' | ||
], | ||
rules: { | ||
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', | ||
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off' | ||
}, | ||
parserOptions: { | ||
parser: 'babel-eslint' | ||
} | ||
} |
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,5 @@ | ||
module.exports = { | ||
plugins: { | ||
autoprefixer: {} | ||
} | ||
} |
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 was deleted.
Oops, something went wrong.
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,83 @@ | ||
const fs = require('fs') | ||
const path = require('path') | ||
const argv = require('yargs').argv | ||
var env = argv.env | ||
const target = 'dir' | ||
const from_dir = ['common','native','res','dist','utils','download.js','main.js','package.json','page.js','preference.js'] | ||
|
||
const tar_path = path.join(__dirname,target) | ||
if (env !== 'beta') { | ||
env = 'release' | ||
} | ||
function deleteFolder(current) { | ||
var files = [] | ||
if( fs.existsSync(current) ) { | ||
files = fs.readdirSync(current) | ||
files.forEach(function(file,index){ | ||
var curPath = path.join(current,file) | ||
if(fs.statSync(curPath).isDirectory()) { | ||
deleteFolder(curPath) | ||
} else { | ||
fs.unlinkSync(curPath) | ||
} | ||
}) | ||
fs.rmdirSync(current) | ||
} | ||
} | ||
function copyFile(srcPath, tarPath) { | ||
if (srcPath === path.join(__dirname,'package.json')) { | ||
var result = JSON.parse(fs.readFileSync(srcPath)) | ||
result.env = env | ||
result.name = 'rishiqing' | ||
result.releaseTime = (new Date()).toString() | ||
delete result.devDependencies | ||
delete result.scripts | ||
fs.writeFileSync(tarPath, JSON.stringify(result)) | ||
} else { | ||
var rs = fs.createReadStream(srcPath) | ||
var ws = fs.createWriteStream(tarPath) | ||
rs.pipe(ws) | ||
} | ||
} | ||
function copyFolder(srcDir, tarDir, cb) { | ||
fs.stat(srcDir,function (err,stats) { | ||
if (stats.isDirectory()) { | ||
fs.mkdir(tarDir,function () { | ||
fs.readdir(srcDir,function (err,files) { | ||
files.forEach(function (file) { | ||
var srcPath = path.join(srcDir, file) | ||
var tarPath = path.join(tarDir, file) | ||
fs.stat(srcPath,function (err,statss) { | ||
if(statss.isDirectory()) { | ||
fs.mkdir(tarPath, function(err) { | ||
copyFolder(srcPath,tarPath) | ||
}) | ||
} else { | ||
copyFile(srcPath, tarPath) | ||
} | ||
}) | ||
}) | ||
}) | ||
}) | ||
} else { | ||
copyFile(srcDir, tarDir) | ||
} | ||
}) | ||
} | ||
|
||
// 存在目录,删除再创建,不存在,直接创建 | ||
fs.exists(tar_path, function(exists) { | ||
if (exists) { | ||
deleteFolder(tar_path) | ||
} | ||
fs.mkdir(tar_path,function(err){ | ||
if (err) { | ||
return console.error(err) | ||
} | ||
from_dir.forEach(function (dir) { | ||
copyFolder(path.join(__dirname,dir) , path.join(tar_path,dir)) | ||
}) | ||
}) | ||
}) | ||
|
||
|
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
0
fe/sound/Tethys.ogg → fe/assets/sound/Tethys.ogg
100644 → 100755
File renamed without changes.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.