-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
78 lines (68 loc) · 2.16 KB
/
config.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
const path = require('path');
const repo = 'https://github.com/lomboboo/webpack-typescript-boilerplate.git';
const ROOT = __dirname;
const project_directories = {
html: 'src',
ts: 'src/app',
stylesheet: `src/stylesheets`,
webpack_config: 'webpack.common.config.js',
dist: {
ts: 'component.ts',
html: 'component.html',
stylesheet: 'component',
blueprints: {
new: 'blueprints/new',
component: 'blueprints/component'
}
}
};
const messages = {
create: {
start: 'Creating new project, please wait...',
git_remove: 'Git diretory removed.',
git_clone_start: 'Cloning repository...',
git_clone_succeed: 'Repository have been cloned.',
directory_exists: `already exists`,
finished: ( project_name ) => `SUCCESS! New project ${project_name} have been created.`,
npm_start: 'Installing dependencies...',
npm_failed: 'Package install failed, see above.',
npm_finished: 'Installed packages for tooling via npm.',
stylesheets_start: 'Configuring preprocessor stylesheets...',
stylesheets_finished: 'Preprocessor have been configured.',
no_boilerplate_scss_files: 'Repository is not original. Missing files.',
},
generate: {
page_start: 'Generating and configuring new page...',
page_finish: 'New page have been created.',
component_exists: 'Component exists: ',
html: 'Html file created: ',
stylesheet: 'Stylesheet file created: ',
ts: 'Typescript file created: ',
webpack: 'Webpack file have been updated.'
},
colors: {
light_green: '#6CED05'
},
settings: {
json_name: "pingue_cli.json",
json_save: "Saving settings...",
json_saved: "Settings file saved.",
},
questions: {
preprocessors_choice_message: "Choose preprocessor (less, scss):",
preprocessors_choice_error: "Please enter one of two possible options.",
port_input_message: "Enter port of the webpack dev server:",
port_input_error: "Entered value must be a number and higher or equals 3000.",
bootstrap_choice_message: "Bootstrap version (3, 4):",
bootstrap_choice_error: "Please enter one of two possible options."
},
config: {
missing: "Project does not have pingue_cli.json file."
}
};
module.exports = {
repo,
messages,
project_directories,
ROOT
};