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

Grunt Templates support #135

Closed
Grawl opened this issue Apr 19, 2015 · 2 comments
Closed

Grunt Templates support #135

Grawl opened this issue Apr 19, 2015 · 2 comments
Labels

Comments

@Grawl
Copy link

Grawl commented Apr 19, 2015

I tried to use Grunt Templates in src but it does nothing:

dist: {
    options: {},
    files: {
        '<% yeogurt.dist %>/styles/main.css': '<% yeogurt.client %>/styles/*.styl'
    }
}
grawl@devastator ~/S/g/grunt> grunt stylus:dist --verbose
Initializing
Command-line options: --verbose

Reading "Gruntfile.js" Gruntfile...OK

Registering Gruntfile tasks.
Reading index.json...OK
Parsing index.json...OK
Loading "Gruntfile.js" tasks...OK
+ build, default, serve, test

Running tasks: stylus:dist

Loading "grunt-contrib-stylus" plugin

Registering "/Users/grawl/Sites/grawl.ru/grunt/node_modules/grunt-contrib-stylus/tasks" tasks.
Loading "stylus.js" tasks...OK
+ stylus

Running "stylus:dist" (stylus) task
Verifying property stylus.dist exists in config...OK
Files: [no src] -> /styles/main.css
Options: banner="", compress, sourcemap=false, paths=["client/bower_components","client/styles/"]

Done, without errors.

Without Grunt Templates it does:

dist: {
    options: {},
    files: {
        'dist/styles/main.css': 'client/styles/*.styl'
    }
}
…
Files: client/styles/main.styl -> dist/styles/main.css
Options: banner="", compress, sourcemap=false, paths=["client/bower_components","client/styles/"]
Reading client/styles/main.styl...OK
Writing dist/styles/main.css...OK
File dist/styles/main.css created.

Done, without errors.
@sapegin
Copy link
Contributor

sapegin commented Apr 20, 2015

As you can see in your logs, they works fine: Files: [no src] -> /styles/main.css. You need to print variables: <%= bla %>.

@Grawl
Copy link
Author

Grawl commented Apr 20, 2015

Oh I was so stupid. Thank you.

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

No branches or pull requests

2 participants