-
Notifications
You must be signed in to change notification settings - Fork 947
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1630 from jasongrout/embed-amd
Concat embed amd files together to have one file to include
- Loading branch information
Showing
9 changed files
with
58 additions
and
76 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
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 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,19 @@ | ||
// Copyright (c) Jupyter Development Team. | ||
// Distributed under the terms of the Modified BSD License. | ||
|
||
var fs = require('fs'); | ||
|
||
// Make a script file that defines all of the relevant AMD modules | ||
var files = ['base.js', 'controls.js', 'index.js', 'libembed-amd.js']; | ||
var output = files.map((f)=>{ | ||
return fs.readFileSync('./dist/amd/'+f).toString(); | ||
}).join(';\n\n'); | ||
fs.writeFileSync('./dist/libembed-amd.js', output) | ||
|
||
// Make a script that has all of the above AMD modules and runs a function which | ||
// renders all of the widgets on page load automatically. | ||
files = ['base.js', 'controls.js', 'index.js', 'libembed-amd.js', 'embed-amd-render.js']; | ||
var output = files.map((f)=>{ | ||
return fs.readFileSync('./dist/amd/'+f).toString(); | ||
}).join(';\n\n'); | ||
fs.writeFileSync('./dist/embed-amd.js', output) |
File renamed without changes.
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 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