瀏覽代碼

Merge branch 'master' of http://git.bbh/chess/elxr

production
aaron 3 年之前
父節點
當前提交
c20ed8029e
共有 7 個文件被更改,包括 6024 次插入3536 次删除
  1. 2
    1
      cliverse.js
  2. 1480
    347
      elxr.js
  3. 2817
    2088
      i.js
  4. 737
    660
      i.win.js
  5. 852
    399
      index.js
  6. 62
    0
      readme.md
  7. 74
    41
      repo-manifest.js

+ 2
- 1
cliverse.js 查看文件

@@ -92,8 +92,9 @@ function nodeShellExec() {
var prompt = function(choices, label, defaultchoice){
// prompt accepts either an array or an object as choices.
var choices = choices || [];
defaultchoice = defaultchoice || choices[0] || choices[Object.keys(choices)[0]]
return this.prompter.ask(
`${label} \n` + Object.keys(choices).map(choice => { return ` ${(+choice) + 1}) ${choices[choice]} `}).join('\n') + `\n default ( <= ${ defaultchoice || choices[0]} ) : `
`${label} \n` + Object.keys(choices).map(choice => { var choice_label = isNaN(+choice) ? choice : ((+choice) + 1); return ` ${choice_label}) ${choices[choice]} `}).join('\n') + `\n default ( <= ${ defaultchoice || choices[0]} ) : `
).then(choice => {
// propName = promptable.interpret(propValue)
if(!choice) return defaultchoice || choices[0];

+ 1480
- 347
elxr.js
文件差異過大導致無法顯示
查看文件


+ 2817
- 2088
i.js
文件差異過大導致無法顯示
查看文件


+ 737
- 660
i.win.js
文件差異過大導致無法顯示
查看文件


+ 852
- 399
index.js
文件差異過大導致無法顯示
查看文件


+ 62
- 0
readme.md 查看文件

@@ -0,0 +1,62 @@
# Installing Elixir in Ubuntu
###### Tested for Ububtu 20.04



* ### Step 1: Install Dependencies

#### 1a: Install Node
```
sudo apt update
```
```
sudo apt upgrade
```
```
sudo apt install nodejs
```
```
node -v
```
```
sudo apt install npm
```

1b: Install Git
1c: Clone elxr

* ### Step 2: elxr pull

* ### Step 3: Switch branch
elxr use elixir

* ### Step 4: SyncMaster (only for production)

* ### Step 5: Pull all instances
elxr npm i



-----

# Installing Elixir in Windows
#### Step 1: Install Dependencies
* ##### Install Node

* ##### Install Git

* ##### Clone elxr
```
git clone http://git.bbh.org.in/chess/elxr.git
```

* ##### Create elxr alias
```
cd elxr
npm link
```

#### Step 2: elxr pull
#### Step 3: Switch branch
#### Step 4: SyncMaster (only for production)
#### Step 5: Pull all instances

+ 74
- 41
repo-manifest.js 查看文件

@@ -1,47 +1,80 @@
module.exports = ((name, options)=>{

return {
reposervers : [
'http://git.bbh'
, 'https://git.bbh.org.in'
, '//172.16.0.27/repos'
, 'https://github.com'
]
// Default set of users in main repos.
var users = [
{ username : `${options.username}`, password : `${options.password}` }
, { username : `chess` }
// , { username : `baptistdev`, password : 'encrypted' }
// , { username : `guest`, password : 'encrypted' }
]

// User can always add more branches and remotes as needed. Mainifest only occupies
// well defined namespaces
, remotes : [
// these are both fetch and push remotes. Use push - remotes to override push.
{ 'chess' : `${options.reposerver}/chess/elxr.git` }
, { 'baptistdev-public' : 'https://github.com/baptistdev/elxr.git' }
// Multiple urls dont tell us the current origin which may be
// different based on currently available/accessible based on device and client.
// We just treat them as different remotes and merge as needed.
//
, { 'origin' : `${options.reposerver}/${options.username}/elxr.git` }
, { 'origin-public' : `https://git.bbh.org.in/${options.username}/elxr.git` }
, { 'origin-unc' : `//172.16.0.27/repos/${options.username}/elxr.git` }
// , { `${options.username}` : `https://git.bbh.org.in/${options.username}/elxr.git` }
]
// ${options.reposerver} should be used to lookup current config.

, 'push-remotes' : [
{ 'chess' : 'no-pushing' }
, { 'baptistdev-public' : 'no-pushing' }
, { 'origin-public' : 'no-pushing' }
]
// , 'fetch-remotes' : [] // Multiple fetch remotes are not supported by git.
// We therefore need to use
// - a pullall
// - or branch alias for multiple remote branch tracking branch strategy.
// -- This is however limited to corresponding branch names
// User can always add more branches and remotes as needed. Mainifest only occupies
// well defined namespaces
var remotes = {
// these are both fetch and push remotes. Use push - remotes to override push.
'chess' : {
server : `${options.reposerver}`, user : 'chess', path : ``, get url(){ return `${this.server}/${this.user}/${this.path}`} // fetch
, push : 'no-pushing' }
, 'baptistdev-public' : {
server : `https://github.com`, user : 'baptistdev', path : ``, get url(){ return `${this.server}/${this.user}/${this.path}`} // fetch
, push : 'no-pushing' }
// Multiple urls dont tell us the current origin which may be
// different based on currently available/accessible based on device and client.
// We just treat them as different remotes and merge as needed.
//
, 'origin' : {
server : `${options.reposerver}`, user : '${options.username}', path : ``, get url(){ return `${this.server}/${this.user}/${this.path}`} // fetch
}
, 'origin-public' : {
server : `https://git.bbh.org.in`, user : 'chess', path : ``, get url(){ return `${this.server}/${this.user}/${this.path}`} // fetch
, push : {
server : `${options.reposerver}`, user : `${options.username}`, path : ``, get url(){ return `${this.server}/${this.user}/${this.path}`}
}
}
, 'origin-unc' : {
server : `//172.16.0.27/repos`, user : '${options.username}', path : ``, get url(){ return `${this.server}/${this.user}/${this.path}`} // fetch
}
// , { `${options.username}` : `https://git.bbh.org.in/${options.username}/elxr.git` }
}

// tracking branches.
// We at least need one branch for each remote that we wish to track.
// , 'tracking-branches' : [
// { master : ['origin/master', 'chess/master'] }
// ]
// , 'fetch-remotes' : [] // Multiple fetch remotes are not supported by git.
// We therefore need to use
// - a pullall
// - or branch alias for multiple remote branch tracking branch strategy.
// -- This is however limited to corresponding branch names

// tracking branches.
// We at least need one branch for each remote that we wish to track.
// , 'tracking-branches' : [
// { master : ['origin/master', 'chess/master'] }
// ]

var reposerverinstances = {
'http://git.bbh' : { users, remotes }
, 'https://git.bbh.org.in' : { users, remotes, external : true }
, '//172.16.0.27/repos' : { users, remotes }
, 'https://github.com' : {
// We host a miniaml set of repositories in github.
get users() { return [{ username : `${this.username}` }]}, username : `baptistdev`
, remotes : {
'baptistdev-public' : {
server : `https://github.com`, user : 'baptistdev', path : ``, get url(){ return `${this.server}/${this.user}/${this.path}`} // fetch
, push : 'no-pushing' }
// , Add other remotes here.
}
, external : true, public : true
}
})
}
return {
reposervers : Object.keys(reposerverinstances)
, reposerverinstances

, repos : [
{ repo : 'elxr' }
]
}
})

Loading…
取消
儲存