Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > BOOK: Professional AngularJS
|
BOOK: Professional AngularJS
This is the forum to discuss the Wrox book Professional AngularJS by Valeri Karpov, Diego Netto; ISBN: 978-1-118-83207-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional AngularJS section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 6th, 2015, 05:59 AM
Registered User
 
Join Date: May 2015
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Syntax error in Gruntfile.js (Chapter 1, Step 2)

In order for Grunt to recursively watch for modifications of any HTML files inside of app/views (particularly the new templates/watchlist-panel.html file), we need to change line 59 of our Gruntfile.js.
The text in the book says to change it to the following:
Code:
'<%= yeoman.app %>/**'*.html',
However, that string contains 3 single quotation marks, which subsequently leads to a syntax error message from Grunt:
Quote:
>> SyntaxError: C:\Users\matthiku\workspace\StockDog\Gruntfile.js: 59
>> '<%= yeoman.app %>/**'*.html',
>> ^
>> Unexpected token .
(The ^ points to the dot right before 'html'.)

Any idea what the correct syntax of this regex should be?

Last edited by matthiku; May 6th, 2015 at 06:17 AM..
 
Old May 6th, 2015, 06:16 AM
Registered User
 
Join Date: May 2015
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Found the solution myself:
Quote:
'<%= yeoman.app %>/**/*.html',
Now Grunt watches all the subfolders as well.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Error: Chapter 5 page 156 Example, Step 6 aojiku01 BOOK: Professional Microsoft SQL Server 2008 Integration Services ISBN: 978-0-470-24795-2 1 October 24th, 2014 06:18 AM
Chapter 14 page 508 step 10 possible error oruckenan BOOK: Beginning ASP.NET 4 : in C# and VB 3 July 27th, 2011 12:10 PM
chapter 7 js error when changing image src grom BOOK: Beginning Ajax with ASP.NET 1 January 3rd, 2008 12:41 PM
chapter 6: scaffold syntax error cwhite124 BOOK: Beginning Ruby on Rails 1 January 3rd, 2008 07:20 AM
syntax error only when zxml.js included daddy BOOK: Professional Ajax ISBN: 978-0-471-77778-6 1 July 1st, 2006 10:33 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.