Skip to content

Commit 25066a7

Browse files
committed
Fix inconsisten use of double vs single quotes
1 parent 5a2228c commit 25066a7

File tree

1 file changed

+37
-37
lines changed

1 file changed

+37
-37
lines changed

elixir.md

+37-37
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ To compile [Less](http://lesscss.org/) into CSS, you may use the `less` method.
8787

8888
```javascript
8989
elixir(function(mix) {
90-
mix.less("app.less");
90+
mix.less('app.less');
9191
});
9292
```
9393

@@ -96,9 +96,9 @@ You may also combine multiple Less files into a single CSS file. Again, the resu
9696
```javascript
9797
elixir(function(mix) {
9898
mix.less([
99-
"app.less",
100-
"controllers.less"
101-
], "public/assets/css");
99+
'app.less',
100+
'controllers.less'
101+
], 'public/assets/css');
102102
});
103103
```
104104

@@ -122,7 +122,7 @@ The `sass` method allows you to compile [Sass](http://sass-lang.com/) into CSS.
122122

123123
```javascript
124124
elixir(function(mix) {
125-
mix.sass("app.scss");
125+
mix.sass('app.scss');
126126
});
127127
```
128128

@@ -131,9 +131,9 @@ Again, like the `less` method, you may compile multiple scripts into a single CS
131131
```javascript
132132
elixir(function(mix) {
133133
mix.sass([
134-
"app.scss",
135-
"controllers.scss"
136-
], "public/assets/css");
134+
'app.scss',
135+
'controllers.scss'
136+
], 'public/assets/css');
137137
});
138138
```
139139

@@ -143,7 +143,7 @@ Under the hood, Elixir uses the LibSass library for compilation. In some instanc
143143

144144
```javascript
145145
elixir(function(mix) {
146-
mix.rubySass("app.scss");
146+
mix.rubySass('app.scss');
147147
});
148148
```
149149

@@ -155,8 +155,8 @@ If you would just like to combine some plain CSS stylesheets into a single file,
155155
```javascript
156156
elixir(function(mix) {
157157
mix.styles([
158-
"normalize.css",
159-
"main.css"
158+
'normalize.css',
159+
'main.css'
160160
]);
161161
});
162162
```
@@ -166,9 +166,9 @@ Of course, you may also output the resulting file to a custom location by passin
166166
```javascript
167167
elixir(function(mix) {
168168
mix.styles([
169-
"normalize.css",
170-
"main.css"
171-
], "public/assets/css");
169+
'normalize.css',
170+
'main.css'
171+
], 'public/assets/css');
172172
});
173173
```
174174

@@ -183,7 +183,7 @@ If you do not want source maps generated for your CSS, you may disable them usin
183183
elixir.config.sourcemaps = false;
184184

185185
elixir(function(mix) {
186-
mix.sass("app.scss");
186+
mix.sass('app.scss');
187187
});
188188
```
189189

@@ -224,8 +224,8 @@ The `babel` method may be used to compile [EcmaScript 6 and 7](https://babeljs.i
224224
```javascript
225225
elixir(function(mix) {
226226
mix.babel([
227-
"order.js",
228-
"product.js"
227+
'order.js',
228+
'product.js'
229229
]);
230230
});
231231
```
@@ -243,8 +243,8 @@ The `scripts` method assumes all paths are relative to the `resources/assets/js`
243243
```javascript
244244
elixir(function(mix) {
245245
mix.scripts([
246-
"jquery.js",
247-
"app.js"
246+
'jquery.js',
247+
'app.js'
248248
]);
249249
});
250250
```
@@ -262,7 +262,7 @@ If you need to combine all of the scripts in a given directory, you may use the
262262

263263
```javascript
264264
elixir(function(mix) {
265-
mix.scriptsIn("public/js/some/directory");
265+
mix.scriptsIn('public/js/some/directory');
266266
});
267267
```
268268

@@ -275,7 +275,7 @@ The `version` method accepts a file name relative to the `public` directory, and
275275

276276
```javascript
277277
elixir(function(mix) {
278-
mix.version("css/all.css");
278+
mix.version('css/all.css');
279279
});
280280
```
281281

@@ -289,7 +289,7 @@ You may pass an array to the `version` method to version multiple files:
289289

290290
```javascript
291291
elixir(function(mix) {
292-
mix.version(["css/all.css", "js/app.js"]);
292+
mix.version(['css/all.css', 'js/app.js']);
293293
});
294294
```
295295

@@ -305,10 +305,10 @@ Once the files have been versioned, you may use the `elixir` helper function to
305305
If you need to call an existing Gulp task from Elixir, you may use the `task` method. As an example, imagine that you have a Gulp task that simply speaks a bit of text when called:
306306

307307
```javascript
308-
gulp.task("speak", function() {
309-
var message = "Tea...Earl Grey...Hot";
308+
gulp.task('speak', function() {
309+
var message = 'Tea...Earl Grey...Hot';
310310

311-
gulp.src("").pipe(shell("say " + message));
311+
gulp.src('').pipe(shell('say ' + message));
312312
});
313313
```
314314

@@ -338,17 +338,17 @@ If you need more flexibility than Elixir's `task` method can provide, you may cr
338338
```javascript
339339
// File: elixir-extensions.js
340340

341-
var gulp = require("gulp");
342-
var shell = require("gulp-shell");
343-
var elixir = require("laravel-elixir");
341+
var gulp = require('gulp');
342+
var shell = require('gulp-shell');
343+
var elixir = require('laravel-elixir');
344344

345-
elixir.extend("speak", function(message) {
345+
elixir.extend('speak', function(message) {
346346

347-
gulp.task("speak", function() {
348-
gulp.src("").pipe(shell("say " + message));
347+
gulp.task('speak', function() {
348+
gulp.src('').pipe(shell('say ' + message));
349349
});
350350

351-
return this.queueTask("speak");
351+
return this.queueTask('speak');
352352

353353
});
354354
```
@@ -358,12 +358,12 @@ That's it! You may either place this at the top of your Gulpfile, or instead ext
358358
```javascript
359359
// File: Gulpfile.js
360360

361-
var elixir = require("laravel-elixir");
361+
var elixir = require('laravel-elixir');
362362

363-
require("./elixir-extensions")
363+
require('./elixir-extensions')
364364

365365
elixir(function(mix) {
366-
mix.speak("Tea, Earl Grey, Hot");
366+
mix.speak('Tea, Earl Grey, Hot');
367367
});
368368
```
369369

@@ -372,7 +372,7 @@ elixir(function(mix) {
372372
If you would like your custom task to be re-triggered while running `gulp watch`, you may register a watcher:
373373

374374
```javascript
375-
this.registerWatcher("speak", "app/**/*.php");
375+
this.registerWatcher('speak', 'app/**/*.php');
376376

377-
return this.queueTask("speak");
377+
return this.queueTask('speak');
378378
```

0 commit comments

Comments
 (0)