Skip to content

Comments

Initial Grunt configuration#23

Merged
ErisDS merged 8 commits intoTryGhost:masterfrom
jgable:GruntBuild
May 14, 2013
Merged

Initial Grunt configuration#23
ErisDS merged 8 commits intoTryGhost:masterfrom
jgable:GruntBuild

Conversation

@jgable
Copy link
Contributor

@jgable jgable commented May 12, 2013

I'm not sure how you feel about grunt, but this is my attempt at a basic grunt config for the project.

Right now, it's setup with some basic jshinting and nodeunit tasks. As well as a grunt init task that will compile the admin styles. The jshint options can be controlled through the .jshintrc file in the root and as long as new nodeunit files are named like test-*.js they will automatically get added when running grunt validate.

I didn't see anything in the style guide about tabs vs. spaces. But we can add that to the jshint options as well.

Let me know how you feel about it.

This comment was marked as abuse.

@ErisDS
Copy link
Member

ErisDS commented May 12, 2013

Code Standards on the wiki say: "Indent with 4 spaces" ;)

Grunt is awesome, automating things is awesome and I really appreciate that you've done this. However, the validation needs to please follow the JSLint standards with the option nomen:true set.

@jgable
Copy link
Contributor Author

jgable commented May 12, 2013

No problem. I'm gonna convert the indentation and add the nomen: true and re-submit the PR.

Have to go out for mothers day activities tonight so it will probably be later.

@ErisDS
Copy link
Member

ErisDS commented May 12, 2013

You will need to also either convert to using grunt-jslint or figure out
the exact settings to make JSHint match JSLint which I'm not even sure is
entirely possible.

Currently, the commit you did to fix a JSHint rule breaks two JSLint rules!

Have fun tonight, I'm off for some beauty sleep :)

Sent from my iPhone

On 12 May 2013, at 22:25, Jacob Gable notifications@github.com wrote:

No problem. I'm gonna convert the indentation and add the nomen: true and
re-submit the PR.

Have to go out for mothers day activities tonight so it will probably be
later.


Reply to this email directly or view it on
GitHubhttps://github.com//pull/23#issuecomment-17785644
.

@jgable
Copy link
Contributor Author

jgable commented May 13, 2013

Still looking into whether jshint can behave exactly like jslint. The grunt-jslint task I've found is pretty old and I'd rather not use it.

When you run jslint, is a command line thing or though an IDE? Do you just run it with the default options?

@jgable
Copy link
Contributor Author

jgable commented May 13, 2013

Ok, found out that the "white": true setting in jshint will use the legacy jslint rules. Set that and updated a couple areas where we had _post that was freaking out the "nomen": true setting.

Seems to be linting pretty strictly now, including the 4 spaces for indentation.

@ErisDS
Copy link
Member

ErisDS commented May 13, 2013

From JSLint:

"Tolerate dangling _ in identifiers - nomen: true if names should not be checked for initial or trailing underbars."

nomen:true should turn the dangling _ check off, not on :/

@ErisDS
Copy link
Member

ErisDS commented May 14, 2013

Sorry, to answer the question about JSLint it is built into my IDE (IntellliJ) and then I usually have a ci build as back up :)

@jgable
Copy link
Contributor Author

jgable commented May 14, 2013

Ok, I think this is pretty close now. Switched over to jslint task and grunt validate seems to be working out.

ErisDS added a commit that referenced this pull request May 14, 2013
Initial Grunt configuration
@ErisDS ErisDS merged commit 7cac1de into TryGhost:master May 14, 2013
@ErisDS ErisDS deleted the GruntBuild branch May 14, 2013 19:17
@ErisDS ErisDS restored the GruntBuild branch May 14, 2013 19:18
@jgable jgable deleted the GruntBuild branch May 15, 2013 01:36
tegud pushed a commit to tegud/Ghost that referenced this pull request Feb 24, 2014
feat(grunt): Introducing "dryrun" grunt task for development usage
ErisDS pushed a commit that referenced this pull request Aug 28, 2014
ErisDS pushed a commit that referenced this pull request Aug 30, 2014
ErisDS pushed a commit that referenced this pull request Aug 30, 2014
morficus pushed a commit to morficus/Ghost that referenced this pull request Sep 4, 2014
jkaldenbach pushed a commit to jkaldenbach/Ghost that referenced this pull request May 26, 2016
Issue 18 - added pre_restart_nodejs to address problem NODE_ENV variable
jkaldenbach pushed a commit to jkaldenbach/Ghost that referenced this pull request May 26, 2016
Issue 18 - added pre_restart_nodejs to address problem NODE_ENV variable
daniellockyer pushed a commit that referenced this pull request Jul 20, 2022
* Corrected the event handling of layer0

* Updated layer1 to use layer0

* Updated dropin script to read blogUrl from window;
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

Successfully merging this pull request may close these issues.

2 participants