This repository has been archived by the owner on Oct 22, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (48 loc) · 1.64 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#
# Mirage Configuration Scripts Version 2018/03/23
# Copyright (c) 2017-2018 Shota Shimazu
# This software is licensed under the Apache v2, see LICENSE for detail.
#
from mirage import system as mys
from mirage.core import Void
from mirage.miragefile.conf import Category, Detail, Config
from mirage.confscript import ConfigScript
from mirage.confscript.settings import Settings
MIRAGE_CONFIG_SCRIPT_VERSION = "0.0.1"
MIRAGE_CONFIG_DEFAULT_CLASS = "MirageConfig"
class MirageConfig(ConfigScript):
BASIC_PROJECT = {
"NAME": "portal",
"VERSION": "0.0.1",
"AUTHOR": "Shota Shimazu <[email protected]>",
"GIT_URL": "https://github.com/sfc-rg/nx-portal",
"LICENSE": "Apache",
"DESCRIPTION": "Next RG Portal",
}
DJANGO_PROJECT = {
"path": ".",
"module": "portal",
"package": "pipenv",
"database": "PostgreSQL",
}
FRONT_END_PROJECT = {
"path": "shell",
"package": "yarn",
"builder": "webpack",
}
COPYRIGHT = {
"start_year": 2019,
"copyrightors": [
"Shota Shimazu",
]
}
def initialize(self) -> Void:
mys.log("Mirage Setting Script v0.0.1")
def main(self) -> int:
# Add custom CLI script written in Python3
# self.register_custom_command("custom-command", "<option>", "tools/scripts/custom_script.py")
# Add custom CLI script written in other programming language.
# self.register_custom_command_with_runtime("custom-command", "tools/scripts/custom_script.rb", "ruby")
return 0
def deinitialize(self) -> Void:
mys.log("Bye : )")