Skip to content

Rebuild javascript file structure#96

Merged
matt-bernhardt merged 4 commits into89-rebuild-apifrom
matt/feature/restructure-js
Sep 9, 2016
Merged

Rebuild javascript file structure#96
matt-bernhardt merged 4 commits into89-rebuild-apifrom
matt/feature/restructure-js

Conversation

@matt-bernhardt
Copy link
Copy Markdown
Member

@matt-bernhardt matt-bernhardt commented Sep 8, 2016

This adds a more robust file structure to the theme's Javascript files:

  1. There is now a build step for Javascript. Initially, this is simple uglification, with the results output into the /js/build/ directory. The mapping is is /tasks/options/uglify.js

  2. The main integration point for Javascript is /js/mitlibnews.js (right now, this is only a name change for /js/myScripts.js). Everything else will get called from there.

  3. The LazyLoad jQuery library is now handled by NPM, and the uglify step takes that library and puts the result in /js/build/

  4. In addition to running Uglify, the Grunt process now runs JShint and Jasmine. JShint is a linting service to look for syntax problems, while Jasmine is a unit testing framework. As of this PR, Jasmine conducts only the most basic test, but as the new module gets built out this will grow along with it.

@matt-bernhardt matt-bernhardt self-assigned this Sep 8, 2016
@matt-bernhardt matt-bernhardt changed the title [WIP] Renames myScripts.js to mitlibnews.js [WIP] Rebuild javascript file structure Sep 8, 2016
@matt-bernhardt matt-bernhardt force-pushed the matt/feature/restructure-js branch from f37f5c7 to ccebb10 Compare September 8, 2016 15:37
@matt-bernhardt matt-bernhardt changed the title [WIP] Rebuild javascript file structure Rebuild javascript file structure Sep 8, 2016
@matt-bernhardt matt-bernhardt merged commit e3444a5 into 89-rebuild-api Sep 9, 2016
@matt-bernhardt matt-bernhardt deleted the matt/feature/restructure-js branch September 9, 2016 14:23
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.

1 participant