Commit df8550fd24c475a8455875f7336aec3dc904f41e

Authored by marcoamarelo
2 parents 8ce4717b afecc786

Merge pull request #315 from theoziran/issue298

Fix pensandoodireito/participacao-sitebase#298
Showing 3 changed files with 42 additions and 6 deletions   Show diff stats
Vagrantfile
... ... @@ -7,13 +7,14 @@ require 'ffi'
7 7 VAGRANTFILE_API_VERSION = "2"
8 8  
9 9 $firstTimeScript = <<SCRIPT
10   -npm install --save-dev gulp gulp-less gulp-minify-css gulp-sourcemaps gulp-util gulp-plumber
11   -
12 10 cd /vagrant && composer update && rm -r /var/www/public && ln -s /vagrant/src /var/www/public
13 11  
14 12 cp /vagrant/config/wp-config-vagrant.php /vagrant/src/wp-config.php
15 13 cp /vagrant/config/htaccess-vagrant /vagrant/src/.htaccess
16 14  
  15 +npm install
  16 +./node_modules/.bin/gulp
  17 +
17 18 service apache2 start
18 19  
19 20 service mysql start
... ... @@ -37,9 +38,6 @@ chmod 777 /vagrant/src/wp-content/
37 38  
38 39 service apache2 start
39 40  
40   -cd /vagrant
41   -gulp
42   -
43 41 SCRIPT
44 42  
45 43 Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
... ...
package.json 0 → 100644
... ... @@ -0,0 +1,38 @@
  1 +{
  2 + "name": "participacao-sitebase",
  3 + "version": "1.0.0",
  4 + "description": "Projeto base - Pensando o Direito",
  5 + "main": "gulpfile.js",
  6 + "dependencies": {
  7 + "gulp": "^3.9.0",
  8 + "gulp-minify-css": "^1.2.0",
  9 + "gulp-plumber": "^1.0.1",
  10 + "gulp-sourcemaps": "^1.5.2",
  11 + "gulp-less": "^3.0.3",
  12 + "gulp-util": "^3.0.6"
  13 + },
  14 + "devDependencies": {},
  15 + "scripts": {
  16 + "test": "echo \"Error: no test specified\" && exit 1"
  17 + },
  18 + "repository": {
  19 + "type": "git",
  20 + "url": "git+https://github.com/pensandoodireito/participacao-sitebase.git"
  21 + },
  22 + "keywords": [
  23 + "participacao",
  24 + "mj",
  25 + "debate"
  26 + ],
  27 + "contributors": [
  28 + "Marco Antonio Konopacki <marcoamarelo@gmail.com>",
  29 + "Thiago Sousa <thiago.sousa.lopes@gmail.com>",
  30 + "Theoziran Lima <theoziran.silva@basis.com.br>",
  31 + "Josafá Filho <josafafilho15@gmail.com>"
  32 + ],
  33 + "license": "ISC",
  34 + "bugs": {
  35 + "url": "https://github.com/pensandoodireito/participacao-sitebase/issues"
  36 + },
  37 + "homepage": "https://github.com/pensandoodireito/participacao-sitebase#readme"
  38 +}
... ...
scripts/set_tag.sh
... ... @@ -58,4 +58,4 @@ echo &quot;Rodando o Gulp para &#39;compilar&#39; os arquivos Less&quot;
58 58  
59 59 cd ../../
60 60  
61   -gulp
  61 +./node_modules/.bin/gulp
... ...