Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Reorganization [part 1] #1

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

Merged
merged 32 commits into from
Nov 13, 2015
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
0d54d1f
tmp commit with unfinished files
etpinard Nov 7, 2015
0b51d05
add browserify transform modifying require path in jasmine tests
etpinard Nov 10, 2015
f4811f2
update karma configs
etpinard Nov 10, 2015
5b27e7f
mv jasmine test files to test/jasmine/tests/
etpinard Nov 10, 2015
6b68088
add jQuery as jasmine test asset
etpinard Nov 10, 2015
8dbcf9f
update contributors and add main field in package.json
etpinard Nov 10, 2015
99484a1
add .ackrc
etpinard Nov 10, 2015
768d24f
add mathjax/ to dist/extras/
etpinard Nov 10, 2015
e8d75fd
rm useless test_dashboard files
etpinard Nov 10, 2015
6bca872
rename testplots/ --> testplots-3d/
etpinard Nov 10, 2015
3a874e5
clean up test_dashboard index
etpinard Nov 10, 2015
94f9cd4
generalize shortcut paths browserify transform
etpinard Nov 10, 2015
c454258
use Chrome in local dev by default, Firefox on CI (for better coverage)
etpinard Nov 10, 2015
ef3053c
add typedarray.min.js to dist/extras/
etpinard Nov 10, 2015
a509445
build ploticon.js and plotcss.js in ./build/
etpinard Nov 10, 2015
1d6f218
modif watch script to watch_plotly,
etpinard Nov 10, 2015
09ca8a7
clean up in tasks/ scripts
etpinard Nov 10, 2015
c77b3b3
rename build.js --> bundle.js (build step include preprocess.js)
etpinard Nov 10, 2015
5a536d3
mv scss files to src/css/
etpinard Nov 10, 2015
953c259
rm plotcss.js and ploticon.js + require ignored files in build/
etpinard Nov 10, 2015
732efea
rn src/isnumeric, use 'fast-isnumeric' npm package
etpinard Nov 10, 2015
96b5c1c
add dev dependencies to package.json
etpinard Nov 10, 2015
22ee1fa
update scripts in package.json
etpinard Nov 10, 2015
eeb1b26
update test_dashboard server file (re-use watch_plotly.js!)
etpinard Nov 10, 2015
535cb8b
use @mocks shortcut to import geo_ test mocks
etpinard Nov 10, 2015
85e929b
require d3 into image_viewer bundle
etpinard Nov 10, 2015
5efe5af
update image_viewer server.js (more to come)
etpinard Nov 10, 2015
f3646da
add paths to test dashboard and image viewer build files to constants
etpinard Nov 10, 2015
8131509
split watch_plotly into module and run-script
etpinard Nov 12, 2015
d3b9f1f
rm un-finished scripts (for now)
etpinard Nov 12, 2015
e535fe9
add append version util, use it to add version in bundles
etpinard Nov 13, 2015
2abf31f
add dist/ to gitignore (dist/ commits will be -f)
etpinard Nov 13, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add browserify transform modifying require path in jasmine tests
  • Loading branch information
etpinard committed Nov 10, 2015
commit 0b51d053ed5882c699f64c94bc9c9037a3c6cacb
21 changes: 21 additions & 0 deletions test/jasmine/transform.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
var transformTools = require('browserify-transform-tools');

/**
* Transform require paths starting with '@src/' to
* appropriate src/ folder paths
*/
var linkRoot = '@src';
var pathToSrc = '../../../src';

module.exports = transformTools.makeRequireTransform('requireTransform',
{ evaluateArguments: true, jsFilesOnly: true },
function(args, opts, cb) {
var arg = args[0];

if(arg.indexOf(linkRoot) !== -1) {
var tail = arg.split(linkRoot)[1];

return cb(null, 'require(\''+ pathToSrc + tail + '\')');
}
else return cb();
});