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
|
# File 'lib/generators/stisla_rails/install_generator.rb', line 7
def yarn_add_package
node_modules = ' @fortawesome/fontawesome-free@^5.7.2' +
' bootstrap@^4.2.1' +
' bootstrap-colorpicker@^3.0.3' +
' bootstrap-daterangepicker@^3.0.3' +
' bootstrap-social@^5.1.1' +
' bootstrap-tagsinput@^0.7.1' +
' bootstrap-timepicker@^0.5.2' +
' chart.js@^2.7.3' +
' chocolat@^0.4.21' +
' cleave.js@^1.4.7' +
' codemirror@^5.43.0' +
' datatables@^1.10.18' +
' datatables.net-responsive-bs4@^2.2.3' +
' datatables.net-select-bs4@^1.2.7' +
' dropzone@^5.5.1' +
' flag-icon-css@^3.2.1' +
' fullcalendar@^3.10.0' +
' gmaps@^0.4.24' +
' [email protected]' +
' izitoast@^1.4.0' +
' jquery@^3.3.1' +
' jquery-pwstrength@https://github.com/matoilic/jquery.pwstrength' +
' jquery-sparkline@^2.4.0' +
' jquery-ui-dist@^1.12.1' +
' jquery.nicescroll@^3.7.6' +
' jquery_upload_preview@https://github.com/opoloo/jquery_upload_preview' +
' jqvmap@https://github.com/10bestdesign/jqvmap' +
' moment@^2.24.0' +
' nicescroll@^3.7.4' +
' owl.carousel@^2.3.4' +
' perfect-scrollbar@^1.4.0' +
' popper.js@^1.14.7' +
' prismjs@^1.15.0' +
' select2@^4.0.6-rc.1' +
' selectric@^1.13.0' +
' simpleweather@^3.1.0' +
' sticky-kit@^1.1.3' +
' summernote@^0.8.11' +
' sweetalert@^2.1.2' +
' tooltip.js@^1.3.1' +
' weathericons@^2.1.0'
yarn_or_npm = ask('What you use for dependency management [yarn/npm] ?')
if yarn_or_npm == 'yarn'
run('yarn add' + node_modules)
say 'yarn add modules from template Stisla is successfully', :green
run('yarn install')
say 'yarn install is successfully', :green
elsif yarn_or_npm == 'npm'
run('npm install' + node_modules)
say 'npm install modules from template Stisla is successfully', :green
run('npm install')
say 'npm install is successfully', :green
else
say 'yarn or npm installation is required', :red
end
end
|