mno-enterprise-frontend 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7ca853b16581c4ebb4317dff4d89e3cb13bde619
4
- data.tar.gz: f8cd05060ac5af0084597bd4ecee0f1a100c1e45
3
+ metadata.gz: 0c7247c24e40d6a8f8c6e41a286a88a0d928b72f
4
+ data.tar.gz: e953e7548676f6d7e1b39f519b7466e6a784863d
5
5
  SHA512:
6
- metadata.gz: efb2018562bc4b8df2b2829ea1e5de01f60c761791e57aba89ce0369d30bf33e8ae96040fce5a2bf43a5bf9e88211429e7adafcb09c460e8dff98e5e84b85da0
7
- data.tar.gz: fc21eea6233475436b9f8c1351fbc8b0b66c9c922e4bb0be82e66323b5bb1d141a9ddb3c6ea80cac04617e7231e9dfdc7e71e0e2cd37f792a05d25e44aee63f7
6
+ metadata.gz: fd13f2f9226f385cf29546fac17aefe8972ff1c76d9eb963fe24c4c9bb7b20d26672f51b4a39a7f98ea0538c7faf4259e4964c846fa043b446464599177514b4
7
+ data.tar.gz: 60d25b9a77e3b830650aa2ea0e23c339c36cd9c9c22a391481005fb09835fed693d10f16cad24f07a6241d57df067ff97b1e021bba0b66773aadf0251b07cf80
@@ -10,13 +10,18 @@ namespace :mnoe do
10
10
  frontend_tmp_folder = 'tmp/build/admin'
11
11
  frontend_orig_folder = 'frontend-admin'
12
12
 
13
- desc "Setup the Enterprise Express Admin Dashboard"
14
- task :install do
13
+ # Use bundled gulp
14
+ gulp = "./node_modules/.bin/gulp"
15
+
16
+ desc "Install dependencies"
17
+ task :install_dependencies do
15
18
  # Install required tools
16
19
  sh("which bower || npm install -g bower")
17
- sh("which gulp || npm install -g gulp")
18
- sh("npm install -g gulp-util gulp-load-plugins del gulp-git")
20
+ end
19
21
 
22
+
23
+ desc "Setup the Enterprise Express Admin Dashboard"
24
+ task install: :install_dependencies do
20
25
  # Build the admin
21
26
  Rake::Task['mnoe:admin:dist'].invoke
22
27
  end
@@ -30,7 +35,7 @@ namespace :mnoe do
30
35
  Dir.chdir(frontend_tmp_folder) do
31
36
  sh "npm install"
32
37
  sh "bower install"
33
- sh "gulp"
38
+ sh gulp
34
39
  end
35
40
 
36
41
  # Ensure distribution folder exists
@@ -11,13 +11,18 @@ namespace :mnoe do
11
11
  frontend_tmp_folder = 'tmp/build/frontend'
12
12
  frontend_bower_folder = 'bower_components/mno-enterprise-angular'
13
13
 
14
- desc "Setup the Enterprise Express frontend"
15
- task :install do
14
+ # Use bundled gulp
15
+ gulp = "./node_modules/.bin/gulp"
16
+
17
+ desc "Install dependencies"
18
+ task :install_dependencies do
16
19
  # Install required tools
17
20
  sh("which bower || npm install -g bower")
18
- sh("which gulp || npm install -g gulp")
19
- sh("npm install -g gulp-util gulp-load-plugins del gulp-git")
21
+ end
20
22
 
23
+ desc "Setup the Enterprise Express frontend"
24
+ task install: :install_dependencies do
25
+ # TODO: replace with a frontend download task without using bower
21
26
  # Setup bower and dependencies
22
27
  bower_src = File.join(File.expand_path(File.dirname(__FILE__)),'templates','bower.json')
23
28
  cp(bower_src, 'bower.json')
@@ -62,8 +67,8 @@ namespace :mnoe do
62
67
  # Build frontend using Gulp
63
68
  Dir.chdir(frontend_tmp_folder) do
64
69
  sh "npm install"
65
- sh "gulp"
66
- sh "gulp less-concat"
70
+ sh gulp
71
+ sh "#{gulp} less-concat"
67
72
  end
68
73
 
69
74
  # Ensure distribution folder exists
@@ -96,7 +101,7 @@ namespace :mnoe do
96
101
  # Build the previewer stylesheet
97
102
  Dir.chdir(frontend_tmp_folder) do
98
103
  sh "npm install"
99
- sh "gulp less-concat"
104
+ sh "#{gulp} less-concat"
100
105
  end
101
106
 
102
107
  # Copy stylesheet to public
@@ -5,6 +5,8 @@
5
5
  "mno-enterprise-angular": "git@github.com:maestrano/mno-enterprise-angular.git#master"
6
6
  },
7
7
  "resolutions": {
8
- "angular-bootstrap": "~0.14.3"
8
+ "angular-bootstrap": "~0.14.3",
9
+ "jquery": "~2.2.1",
10
+ "moment": "^2.11.2"
9
11
  }
10
12
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mno-enterprise-frontend
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arnaud Lachaume
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-04-05 00:00:00.000000000 Z
12
+ date: 2016-04-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mno-enterprise-core
@@ -17,28 +17,28 @@ dependencies:
17
17
  requirements:
18
18
  - - '='
19
19
  - !ruby/object:Gem::Version
20
- version: 3.0.0
20
+ version: 3.0.1
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - '='
26
26
  - !ruby/object:Gem::Version
27
- version: 3.0.0
27
+ version: 3.0.1
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: mno-enterprise-api
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - '='
33
33
  - !ruby/object:Gem::Version
34
- version: 3.0.0
34
+ version: 3.0.1
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - '='
40
40
  - !ruby/object:Gem::Version
41
- version: 3.0.0
41
+ version: 3.0.1
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: less-rails
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -339,16 +339,16 @@ required_rubygems_version: !ruby/object:Gem::Requirement
339
339
  version: '0'
340
340
  requirements: []
341
341
  rubyforge_project:
342
- rubygems_version: 2.2.2
342
+ rubygems_version: 2.4.8
343
343
  signing_key:
344
344
  specification_version: 4
345
345
  summary: Maestrano Enterprise - Frontend
346
346
  test_files:
347
- - spec/controllers/mno_enterprise/auth/confirmations_controller_spec.rb
348
- - spec/controllers/mno_enterprise/invoices_controller_spec.rb
349
- - spec/controllers/mno_enterprise/webhook/o_auth_controller_spec.rb
350
- - spec/lib/mno_enterprise/locales_generator_spec.rb
351
- - spec/lib/tasks/mnoe_locales_rake_spec.rb
352
- - spec/rails_helper.rb
353
347
  - spec/routing/mno_enterprise/invoices_controller_routing_spec.rb
354
348
  - spec/spec_helper.rb
349
+ - spec/lib/tasks/mnoe_locales_rake_spec.rb
350
+ - spec/lib/mno_enterprise/locales_generator_spec.rb
351
+ - spec/rails_helper.rb
352
+ - spec/controllers/mno_enterprise/webhook/o_auth_controller_spec.rb
353
+ - spec/controllers/mno_enterprise/auth/confirmations_controller_spec.rb
354
+ - spec/controllers/mno_enterprise/invoices_controller_spec.rb