mirror of
https://github.com/HackPlan/RootPanel.git
synced 2026-03-26 22:16:28 +08:00
update README.md, package.json, full-test
This commit is contained in:
11
README.md
11
README.md
@@ -5,15 +5,17 @@ RootPanel 具有良好的设计,高度的可定制性,支持多语言和多
|
||||
|
||||
## 安装
|
||||
|
||||
稳定版本 [](https://travis-ci.org/jysperm/RootPanel)
|
||||
稳定版本
|
||||
[](https://travis-ci.org/jysperm/RootPanel)
|
||||
|
||||
git clone -b stable https://github.com/jysperm/RootPanel.git
|
||||
|
||||
开发版本 [](https://travis-ci.org/jysperm/RootPanel)
|
||||
开发版本
|
||||
[](https://travis-ci.org/jysperm/RootPanel)
|
||||
|
||||
git clone https://github.com/jysperm/RootPanel.git
|
||||
|
||||
[Vagrant box](https://vagrantcloud.com/jysperm/boxes/rootpanel)
|
||||
试运行和开发推荐使用 [Vagrant box](https://vagrantcloud.com/jysperm/boxes/rootpanel)
|
||||
|
||||
详细安装说明:[INSTALL.md](https://github.com/jysperm/RootPanel/blob/master/INSTALL.md)
|
||||
|
||||
@@ -36,6 +38,9 @@ RootPanel 具有良好的设计,高度的可定制性,支持多语言和多
|
||||
git pull
|
||||
|
||||
根据 `/migration/system` 中新增的说明文件,执行相应命令来修改系统设置,如果跨越多个版本需要依次执行。
|
||||
检查更新日志和 `/sample` 中的默认配置文件,视情况修改配置文件(`config.coffee`), 若修改了配置文件,需要运行以下命令来应用变更。
|
||||
|
||||
npm run reconfigure
|
||||
|
||||
使用 `mongodbdump` 来备份数据库,然后升级数据库:
|
||||
|
||||
|
||||
1
bin/reconfigure.coffee
Normal file
1
bin/reconfigure.coffee
Normal file
@@ -0,0 +1 @@
|
||||
#!/usr/bin/env coffee
|
||||
13
package.json
13
package.json
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"name": "rootpanel",
|
||||
"version": "0.8.0",
|
||||
"description": "A linux virtual host management system with extensibility",
|
||||
"homepage": "http://rpvhost.net",
|
||||
"description": "A pluggable PaaS framework",
|
||||
"homepage": "https://rootpanel.io",
|
||||
"license": "AGPL-3.0",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -12,21 +12,18 @@
|
||||
{
|
||||
"name": "jysperm",
|
||||
"email": "jysperm@gmail.com",
|
||||
"url": "http://jysperm.me"
|
||||
"url": "https://jysperm.me"
|
||||
}
|
||||
],
|
||||
"scripts": {
|
||||
"start": "./node_modules/.bin/coffee app.coffee",
|
||||
"migrate": "./node_modules/.bin/coffee bin/rp-migrate.coffee",
|
||||
"migrate": "./node_modules/.bin/coffee bin/migrate.coffee",
|
||||
"reconfigure": "./node_modules/.bin/coffee bin/reconfigure.coffee",
|
||||
"test": "COV_TEST=true ./node_modules/.bin/mocha --compilers coffee:coffee-script/register --require test/env --reporter node_modules/mocha-reporter-cov-summary -- core/test/*.test.coffee core/test/*/*.test.coffee plugin/*/test",
|
||||
"test-only": "./node_modules/.bin/mocha --compilers coffee:coffee-script/register --require test/env -- core/test/*.test.coffee core/test/*/*.test.coffee plugin/*/test",
|
||||
"test-full": "./node_modules/.bin/coffee test/full-test.coffee",
|
||||
"test-cov-html": "COV_TEST=true ./node_modules/.bin/mocha --compilers coffee:coffee-script/register --require test/env --reporter html-cov -- core/test/*.test.coffee core/test/*/*.test.coffee plugin/*/test > coverage-reporter.html"
|
||||
},
|
||||
"bin": {
|
||||
"rp-fix-permissions": "./bin/rp-fix-permissions.coffee",
|
||||
"rp-migrate": "./bin/migrate.coffee"
|
||||
},
|
||||
"dependencies": {
|
||||
"async": "^0.9.0",
|
||||
"body-parser": "^1.9.0",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
describe 'plugin/linux', ->
|
||||
(if isPluginEnable('linux') then describe else describe.skip) 'plugin/linux', ->
|
||||
linux = null
|
||||
cache = null
|
||||
redis = null
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
describe 'plugin/rpvhost', ->
|
||||
(if isPluginEnable('rpvhost') then describe else describe.skip) 'plugin/rpvhost', ->
|
||||
agent = null
|
||||
|
||||
before ->
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
describe 'plugin/shadowsocks', ->
|
||||
(if isPluginEnable('shadowsocks') then describe else describe.skip) 'plugin/shadowsocks', ->
|
||||
agent = null
|
||||
utils = null
|
||||
config = null
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
describe 'plugin/supervisor', ->
|
||||
(if isPluginEnable('supervisor') then describe else describe.skip) 'plugin/supervisor', ->
|
||||
describe 'router', ->
|
||||
it 'POST update_program'
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
describe 'plugin/wiki', ->
|
||||
(if isPluginEnable('wiki') then describe else describe.skip) 'plugin/wiki', ->
|
||||
agent = null
|
||||
|
||||
before ->
|
||||
|
||||
@@ -41,3 +41,6 @@ if process.env.TRAVIS == 'true'
|
||||
config.mongodb.password = undefined
|
||||
|
||||
config.redis.password = undefined
|
||||
|
||||
global.isPluginEnable = (name) ->
|
||||
return name in _.union config.plugin.available_extensions, config.plugin.available_services
|
||||
|
||||
@@ -9,13 +9,7 @@ async.eachSeries fs.readdirSync("#{__dirname}/../sample"), (filename, callback)
|
||||
console.log "Config: #{filename}"
|
||||
|
||||
params = '--compilers coffee:coffee-script/register --require test/env --reporter node_modules/mocha-reporter-cov-summary --
|
||||
core/test/*.test.coffee core/test/*/*.test.coffee'.split(' ')
|
||||
|
||||
config = require "#{__dirname}/../sample/#{filename}"
|
||||
|
||||
for plugin_name in _.union config.plugin.available_extensions, config.plugin.available_services
|
||||
if fs.existsSync "plugin/#{plugin_name}/test"
|
||||
params.push "plugin/#{plugin_name}/test/*.test.coffee"
|
||||
core/test/*.test.coffee core/test/*/*.test.coffee plugin/*/test/*.test.coffee'.split(' ')
|
||||
|
||||
proc = child_process.spawn "#{__dirname}/../node_modules/.bin/mocha", params,
|
||||
env: _.extend process.env,
|
||||
|
||||
Reference in New Issue
Block a user