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

Changes required by adapt_authoring project #450

Merged
merged 5 commits into from Jul 30, 2014
Merged

Conversation

brian-learningpool
Copy link
Member

Highlights are:

  • New 'grunt server-build' task
  • Support for specifying the output directory of the 'build' folder using the --outputdir switch
  • Support for specifying a specific theme (in case more than one is installed) using the --theme switch

These settings will have no impact on existing grunt tasks.

This includes:
- new 'grunt server-build' task, which allows building the framework in
  preparation for adding in the actual course JSON at a later time
- two new switch options:
  --theme - used to specify an Adapt theme
  --outputdir - used to specify a directory where the /build folder will
  be created, this is used in outputting to different folders, what would
  be different framework 'builds'
This was causing build failures in Travis.
@darylhedley
Copy link
Contributor

+1

@cajones
Copy link
Contributor

cajones commented Jul 25, 2014

I'm pretty sure outputdir.substring(0, outputdir.length) will always give you the entire string.

Did you want to get the last character? if so outputdir.substring(outputdir.length-1, outputdir.length) might be better.

Also should theme get the same treatment so it doesn't end up leaving a double / in the path. (I think this is okay on Windows, but I'm not sure about other OS's...)

Apart from that it looks ok.

This is to allow 'grunt build' to run successfully when the 'production'
switch is used with npm install.

if (outputdir) {
if (outputdir.substring(outputdir.length - 1, outputdir.length) !== '/') {

Choose a reason for hiding this comment

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

don't need the second argument to substring here

@dennis-learningpool
Copy link
Member

+1

1 similar comment
@darylhedley
Copy link
Contributor

+1

brian-learningpool added a commit that referenced this pull request Jul 30, 2014
Changes required by adapt_authoring project
@brian-learningpool brian-learningpool merged commit a3e4434 into master Jul 30, 2014
@darylhedley darylhedley deleted the build-package branch August 18, 2014 11:49
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

4 participants