vagrant-solidus 1.0.0.rc1 → 1.0.0.rc2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- M2UwNDQxYTFhODI2MTdjMjRhYjk4ZjYyNjVmMTg3NDYyMDFiMDc4ZA==
4
+ NjFjNGZjM2M0M2IyZjU2MzQxN2EyMGNiMTNjYTM4MTRmY2NkODg4Nw==
5
5
  data.tar.gz: !binary |-
6
- MzRiM2UzMTc4NTc0NjYwMTRhOGFjNDE2YjcxM2QyNDgxNmMyNWNjNw==
6
+ YmE5ZGEzNWJlNmI4YzhlMmVlOWRiNzY2MDk5NTBkOWQ5NTFlZjYzZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YzY1YjU0YjA2N2RmZTgxNDhjN2Y1MGNiYmQ2OTQ5YmIwMjBlMWI0MDllN2Yz
10
- ZjlkY2Q0NTYzODQ5YmQ5YmU3YWNiOWU1MWQ0YmIzNGE5OGU0MzdkMzQ3MTVj
11
- N2Q5OGQ0M2NlMWMxOGFmZDVmMmYzNzJlN2NkOWVjOTkyNDc3NTI=
9
+ Yzg4NzJhY2U3NjM2Zjg4YTNmNTk2NGQ2ZjQzZmY0MDVjZmY3MDFiM2UwNDEz
10
+ Nzc3MDE1MjYyZDhkYzQzMzA1YzUxMTk5ODg3ZTViY2JkMzM5YjMzNGZlNzJh
11
+ NjBmNDljMGE0YWZlN2ZjMmY1ZTNiNWI1YTFmM2ZkMzRhY2Q0NjI=
12
12
  data.tar.gz: !binary |-
13
- MjM1MzVhYmEyMjc0YTNmZDllM2MzMmM1YzVhYWIyZTk2YjVlZTgwNGQ3NjVj
14
- ZmFlYTI3YzlmYjg2ZmMyYWE5NjRlODNlNzg2NzNjZWFhYTdiY2RhMjg3NDY3
15
- OGEyOTE4NjIzOWIzY2NiMTdmYTVmYmUxNmY5ZGM2OGYyYjQ5ODA=
13
+ ZDY5Nzg3YjhiNjQ0Y2FkZWM2MjZhY2NlNTFhYzc0YTM1ZTJlYzY5NDJlMDkw
14
+ ZDIwNWE1MWY4OGNhNWJhMWUxMzJiNjJhZmYyZGJiOTNlYzEyN2UxZGFiZGIx
15
+ ZjA4NzU4NWM5ZWJlMTY3MTNkMGQ0ZjUzYzY3OGY0M2QzODU2NDY=
data/CHANGELOG.md ADDED
@@ -0,0 +1,51 @@
1
+ ## Unreleased
2
+
3
+ - Use npm scripts instead of grunt
4
+
5
+ BREAKING CHANGES:
6
+
7
+ - vagrant-solidus no longer manages the Solidus sites using the `grunt` command line. Instead, each site is started directly with its local Solidus bin (`./node_modules/.bin/solidus`). For sites that need to compile assets and run a file watcher, new scripts need to be added to their `package.json` files. For example, existing `grunt` tasks can still be used, but they need to be called directly with the two new special npm scripts:
8
+
9
+ ```javascript
10
+ {
11
+ "scripts": {
12
+ "build": "./node_modules/.bin/grunt build",
13
+ "watch": "./node_modules/.bin/grunt watch"
14
+ },
15
+ "devDependencies": {
16
+ "grunt": "~0.4.1",
17
+ "grunt-cli": "~0.1.13"
18
+ }
19
+ }
20
+ ```
21
+
22
+ ## 0.2.1 (Nov 19, 2014)
23
+
24
+ - Restore Vagrant >1.6.3 support [[460291e](https://github.com/solidusjs/vagrant-solidus/commit/460291e0338e3deefe87873fc1b3e70b6882bd67)]
25
+
26
+ ## 0.2.0 (Sep 11, 2014)
27
+
28
+ - Configurable ports [[280de56](https://github.com/solidusjs/vagrant-solidus/commit/280de5624e6f49fd8f56e40c4ab385b922f0169e)]
29
+
30
+ ## 0.1.0 (Aug 4, 2014)
31
+
32
+ - Add support for Solidus log server [[8d5ffb8](https://github.com/solidusjs/vagrant-solidus/commit/8d5ffb8a985013f5258676154840e200d9ae4595)]
33
+
34
+ ## 0.0.2 (May 22, 2014)
35
+
36
+ - Restrict to Vagrant 1.5.x until this is resolved: https://github.com/mitchellh/vagrant/issues/3769 [[72410cf](https://github.com/solidusjs/vagrant-solidus/commit/72410cfb07ac126be004ce6dd9abc397fbb26806)]
37
+
38
+ ## 0.0.1 (May 22, 2014)
39
+
40
+ - Initial release
41
+
42
+ BREAKING CHANGES:
43
+
44
+ - If you have an old version of [solidus-devbox](https://github.com/solidusjs/solidus-devbox), it's simplest to reset the whole box (this will not remove your sites' files):
45
+
46
+ ```
47
+ $ vagrant destroy
48
+ $ vagrant plugin install vagrant-solidus
49
+ $ vagrant solidus-box init # Make sure to reapply your custom changes to the new Vagrantfile
50
+ $ vagrant up
51
+ ```
data/README.md CHANGED
@@ -82,6 +82,25 @@ You can now access the website on http://my-site.dev if you installed Pow. If no
82
82
 
83
83
  Hint: Site files are actually stored on your machine, not in the virtual machine. You can edit them as usual, and the server will load them from your machine. Stopping or deleting the virtual machine will not affect your files.
84
84
 
85
+ #### package.json
86
+
87
+ In order for a site to be started by this plugin, it only needs one thing: a `package.json` file, with a dependency on Solidus. Two optional scripts can also be added to the `package.json` file:
88
+ - `build`: called when the site is started, for example to compile sass files
89
+ - `watch`: called when the site is started, to automatically recompile the assets when they change
90
+
91
+ See the [solidus-site-template's `package.json`](https://github.com/solidusjs/solidus-site-template/blob/master/root/package.json) for an example.
92
+
93
+ #### Site installation steps
94
+
95
+ When a site is started with `vagrant site start`, the following steps are executed:
96
+
97
+ - If the site has a `Gemfile` file, the bundle is installed, else only the `sass` gem is installed
98
+ - If the site has a `bower.json` file, the `bower` packages are installed
99
+ - The site's `npm` packages are installed
100
+ - The site's assets are compiled (see [package.json](#packagejson)): `npm --port=PORT --livereloadport=PORT --logserverport=PORT run build`
101
+ - The site's assets are watched (see [package.json](#packagejson)): `npm --port=PORT --livereloadport=PORT --logserverport=PORT run watch`
102
+ - The site is started, by calling the site's local `solidus` bin: `./node_modules/.bin/solidus start --dev --loglevel=3 --port=PORT --livereloadport=PORT --logserverport=PORT`
103
+
85
104
  ### Stopping a site
86
105
 
87
106
  ```
@@ -168,6 +187,20 @@ $ vagrant solidus-box init
168
187
  $ vagrant up
169
188
  ```
170
189
 
190
+ ### Installing a Specific Version
191
+
192
+ To use a specific version of vagrant-solidus, you can do the following;
193
+
194
+ ```
195
+ $ vagrant halt
196
+ $ vagrant plugin uninstall vagrant-solidus
197
+ $ vagrant plugin install vagrant-solidus --plugin-version 1.0.0.rc1
198
+ $ vagrant solidus-box init
199
+ $ vagrant up
200
+ ```
201
+
202
+ Replacing `1.0.0.rc1` with [the version number you want](https://rubygems.org/gems/vagrant-solidus).
203
+
171
204
  ## Troubleshooting ##
172
205
 
173
206
  ### Windows: 'ssh' executable not found
@@ -162,7 +162,7 @@ module VagrantPlugins
162
162
 
163
163
  conf = "start on starting #{site_service_name}
164
164
  stop on stopping #{site_service_name}
165
- #{command} npm #{site_commands_arguments} run watch-assets #{logging}"
165
+ #{command} npm #{site_commands_arguments} run watch #{logging}"
166
166
  return unless guest_exec(:log_on_error, "echo \"#{conf}\" > /etc/init/#{assets_watcher_service_name}.conf", sudo: true)
167
167
 
168
168
  conf = "start on starting #{site_service_name}
@@ -180,7 +180,7 @@ module VagrantPlugins
180
180
  end
181
181
 
182
182
  def compile_site_assets
183
- guest_exec(:log_on_error, "cd #{@site_guest_path} && npm #{site_commands_arguments} run compile-assets")
183
+ guest_exec(:log_on_error, "cd #{@site_guest_path} && npm #{site_commands_arguments} run build")
184
184
  end
185
185
 
186
186
  def start_site_service
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Solidus
3
- VERSION = '1.0.0.rc1'
3
+ VERSION = '1.0.0.rc2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-solidus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc1
4
+ version: 1.0.0.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joannic Laborde
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-26 00:00:00.000000000 Z
11
+ date: 2015-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -46,6 +46,7 @@ extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
48
  - .gitignore
49
+ - CHANGELOG.md
49
50
  - Gemfile
50
51
  - LICENSE.txt
51
52
  - README.md