Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor dynamic loading, upgrade node, add vue files
* Switch from Node 5 to 6 * Add vue-loader to webpack * Refactor some vue components to .vue files * Remove unused dependencies from package.json, especially node-gyp, that thing really messed with Travis and is not actually used. * Use import instead of require.ensure for dynamicRequire (now JS, instead of CS) * Add commented out lines for skipping compilation of parts of the application. When commented out, this speeds up webpack a great deal. If we find this useful, would like to turn this into some sort of command (like webpack --watch --focus admin,editor would only build the admin and editor bundles).
- Loading branch information
1 parent
e1cc6a7
commit 6f6a471
Showing
32 changed files
with
1,012 additions
and
762 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
sudo: false | ||
language: node_js | ||
node_js: | ||
- 5.10.1 | ||
- 6.12.2 | ||
env: | ||
- CXX=g++-4.8 | ||
services: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
fetchJson = require './fetch-json' | ||
|
||
module.exports = { | ||
getAll: (options={}) -> | ||
fetchJson("/db/cla.submissions", options) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
fetchJson = require './fetch-json' | ||
|
||
module.exports = { | ||
getDirectory: ({path}, options={}) -> | ||
unless _.string.endsWith(path, '/') | ||
path = path + '/' | ||
fetchJson("/file/#{path}", options).then((res) -> return JSON.parse(res)) | ||
|
||
saveFile: ({url, filename, mimetype, path, force}, options={}) -> | ||
fetchJson('/file', _.assign({}, options, { | ||
method: 'POST' | ||
json: { url, filename, mimetype, path, force } | ||
})) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.