-
Notifications
You must be signed in to change notification settings - Fork 7
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
Init nin project #1
Conversation
@@ -0,0 +1,2 @@ | |||
gen |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I usually add a /
at the end here to show that they are folders. Not sure what's preferred.
<html> | ||
<head> | ||
<meta charset=utf8> | ||
NIN_WILL_REPLACE_THIS_TAG_WITH_AUTOGENERATED_COMMENT_TAGS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we manually change this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be kept like it stands. nin will automatically replace it with values from nin.json on compile time.
index.html
Outdated
<head> | ||
<meta charset=utf8> | ||
NIN_WILL_REPLACE_THIS_TAG_WITH_AUTOGENERATED_COMMENT_TAGS | ||
<title>My project</title> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I say change this to re
while we're at it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm surprised that didn't happen automatically seeing as the command I ran was nin new re
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | ||
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); | ||
|
||
ga('create', 'NIN_WILL_REPLACE_THIS_TAG_WITH_YOUR_ANALYTICS_ID', 'auto'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe set up GA already?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feel free to create that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a bit hairy before the demo is live on the internet somewhere. I'll create an issue for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It shouldn't be more complicated than to create a ga property and copy the code here, but I agree just creating an issue for it now is more than good enough.
"subdivision": 4 | ||
}, | ||
"googleAnalyticsID": "Your GA ID" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need newline (if this was autogenerated by nin we need to fix that!)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, when generating json files you need to manually add a \n
to the end. Easy to forget, should be fixed in nin. Please create an issue for it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did create an issue here ninjadev/nin#320.
"bpm": 125, | ||
"subdivision": 4 | ||
}, | ||
"googleAnalyticsID": "Your GA ID" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could set this to empty string instead, and have nin compile
complain if it is unset, so it's harder to forget.
<a id=start-button class=hide href=javascript:; onclick=STARTDEMO();> | ||
START | ||
</a> | ||
<a href="http://www.pouet.net/groups.php?which=11702" target="_blank" id="pouet-link">Read more about this demo on Pouet</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This thing in the template is also easy to forget to change when it's set up like this. Maybe move to nin.json
ping |
No description provided.