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

Init nin project #1

Merged
merged 1 commit into from
Mar 13, 2017
Merged

Init nin project #1

merged 1 commit into from
Mar 13, 2017

Conversation

stianjensen
Copy link
Member

No description provided.

@@ -0,0 +1,2 @@
gen
Copy link
Member

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
Copy link
Member

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?

Copy link
Member Author

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>
Copy link
Member

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.

Copy link
Member Author

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');
Copy link
Member

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?

Copy link
Member Author

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.

Copy link
Member

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.

Copy link
Member Author

@stianjensen stianjensen Mar 13, 2017

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"
}
Copy link
Member

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!)

Copy link
Member Author

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.

Copy link
Member

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"
Copy link
Member Author

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>
Copy link
Member Author

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

@stianjensen
Copy link
Member Author

ping

@aleksanb aleksanb merged commit 0597c29 into master Mar 13, 2017
@aleksanb aleksanb deleted the init-nin branch March 13, 2017 17:43
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.

None yet

3 participants