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

[TIMOB-23529] Build: Replace scons and python with node scripts #8071

Merged
merged 11 commits into from
Jun 23, 2016

Conversation

sgtcoolguy
Copy link
Contributor

@sgtcoolguy sgtcoolguy commented Jun 17, 2016

JIRA: https://jira.appcelerator.org/browse/TIMOB-23529

I'd like to replace our build scripts in-place, so I'd prefer to get the build working on our PR build and then hopefully merging will just magically replace our build system.
To do so, I still need to take our existing build steps that run for titanium_mobile_master and migrate them into a bash script that lives in the repo itself - so that this PR can then overwrite part of that script to run our new node scripts instead of scons.

This PR does not yet replace the downloading of windows for builds, or uploading the built zips for all OSes up to S3. It also assumes you have Xcode/Android SDK/Android NDK, etc installed (i.e. I didn't write a script to fetch and set up pre-requisites yet).

@sgtcoolguy
Copy link
Contributor Author

@cb1kenobi Hey Chris, looks like this PR is finally set to be reviewed. Thanks!

this.moduleApiVersion = moduleApiVersion;
this.gitHash = gitHash;
var date = new Date();
this.timestamp = '' + (date.getMonth() + 1) + '/' + date.getDate() + '/' + (date.getYear()) + ' ' + date.getHours() + ':' + (date.getMinutes());
Copy link
Contributor

@cb1kenobi cb1kenobi Jun 23, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use date.getFullYear().

Also date.getMinutes() returns an unpadded number, so if the minutes is less than 10, it will not pad with a zero resulting in a time such as 17:2 instead of 17:02.

Perhaps it would be easiest to just do this:

this.timestamp = date.toLocaleDateString() + ' ' + date.toLocaleTimeString();

This will produce 6/23/2016 5:24:14 PM. If you want a 24 hour version, then you need to do:

this.timestamp = date.toLocaleDateString() + ' ' + date.toTimeString().replace(/^(\d+:\d+)(.*)$/, '$1');

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All right, just pushed that plus the left pad of hours and minutes with '0'.

@cb1kenobi
Copy link
Contributor

APPROVED

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

2 participants