Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to use the Casper template converted to Harp. Seems grunt-harp doesn't support globals #14

Open
jamesmortensen opened this issue Jun 21, 2015 · 2 comments

Comments

@jamesmortensen
Copy link

I am trying to use the default template from Ghost, which has been converted to HarpJs here: https://github.com/kennethormandy/hb-casper/blob/master/harp.json

When trying to use grunt-harp, I get the following errors:

ReferenceError - blog is not defined

There is a harp.json file that defines some globals in JSON format. Grunt-harp doesn't appear to read them. I can run the harp server without grunt but I cannot run it with grunt. How can I make this work with Grunt?

Thank you,
James

@etoxin
Copy link

etoxin commented Oct 1, 2015

+1 here. Globals should be supported.

@etoxin
Copy link

etoxin commented Oct 1, 2015

I resolved this by changing the source key in grunt to ./. it seemed to work after this.

    harp: {
        server: {
            server: true,
            source: './'
        },
        dist: {
            source: './',
            dest: 'www'
        }
    }

When you set source to public it looks for harp.json down in ./public/public/harp.json which is non existent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants