-
Notifications
You must be signed in to change notification settings - Fork 1
/
repositories.js
44 lines (39 loc) · 1.36 KB
/
repositories.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
const config = require('./config')
const buildRemoteGitRepo = (repoName) => `https://${config.USER}:${config.PASS}@github.com/${config.USER}/${repoName}`
// Base repository on which every other boilerplates are synced
const BASE_REPO = {
uri: buildRemoteGitRepo('node-graphql-server'),
name: 'node-graphql-server',
directory: `${config.TMP_DIR}/node`,
}
// Repositories that are synced based on BASE_REPO
const REPOS_TO_SYNC = [
{
uri: buildRemoteGitRepo('react-fullstack-graphql'),
name: 'react-fullstack-graphql',
directory: `${config.TMP_DIR}/react`,
availableBoilerplates: ['minimal', 'basic'],
},
{
uri: buildRemoteGitRepo('vue-fullstack-graphql'),
name: 'vue-fullstack-graphql',
directory: `${config.TMP_DIR}/vue`,
availableBoilerplates: ['minimal', 'basic', 'advanced'],
},
{
uri: buildRemoteGitRepo('angular-fullstack-graphql'),
name: 'angular-fullstack-graphql',
directory: `${config.TMP_DIR}/angular`,
availableBoilerplates: ['basic'],
},
/*{
uri: buildRemoteGitRepo('react-native-fullstack-graphql'),
name: 'react-native-fullstack-graphql',
directory: `${config.TMP_DIR}/react-native`,
availableBoilerplates: ['basic'],
},*/
]
const REPOS_TO_CLONE = [BASE_REPO].concat(REPOS_TO_SYNC)
exports.BASE_REPO = BASE_REPO
exports.REPOS_TO_SYNC = REPOS_TO_SYNC
exports.REPOS_TO_CLONE = REPOS_TO_CLONE