Skip to content

Commit

Permalink
Add package.json, gulpfile.js and readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Doric committed Jun 18, 2016
1 parent 074c939 commit 0838d0a
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
23 changes: 23 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
var elixir = require('laravel-elixir');
require('laravel-elixir-livereload');


elixir.config.assetsPath = 'wp-content/themes/elixir/assets/';
elixir.config.publicPath = 'wp-content/themes/elixir/';
elixir.config.css.outputFolder = './';

elixir(function(mix){

mix.sass('style.scss');

mix.scripts([
'hello.js',
'main.js'
]);

mix.livereload([
'wp-content/themes/elixir/style.css',
'wp-content/themes/elixir/**/*.php',
'wp-content/themes/elixir/js/*.js'
])
})
16 changes: 16 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "wpelixir",
"version": "1.0.0",
"description": "<!DOCTYPE html> <html> <head> \t<meta name=\"viewport\" content=\"width=device-width\" /> \t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" /> \t<title>WordPress &#8250; ReadMe</title> \t<link rel=\"stylesheet\" href=\"wp-admin/css/install.css?ver=20100228\" type=\"text/css\" /> </head> <body> <h1 id=\"logo\"> \t<a href=\"https://wordpress.org/\"><img alt=\"WordPress\" src=\"wp-admin/images/wordpress-logo.png\" /></a> \t<br /> Version 4.5.2 </h1> <p style=\"text-align: center\">Semantic Personal Publishing Platform</p>",
"main": "gulp.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"devDependencies": {
"gulp": "^3.9.1",
"laravel-elixir": "^5.0.0",
"laravel-elixir-livereload": "^1.1.4"
}
}
15 changes: 15 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

This theme was made for video tutorial about using Laravel Elixir with WordPress. Check out the video here:

## Usage

Copy ```package.json``` and ```gulpfile.js``` to your WordPress project root and run ```npm install```

Of course you have to have node.js and gulp.js installed on your machine, duh.

### Features

- Compiles scss/sass
- Compiles js
- uses LiveReload

0 comments on commit 0838d0a

Please sign in to comment.