-
Since
require
ing is not an issue anymore, I felt that it’s a good idea to separate classes from themain.js
file into their own files (Foo.js
andBar.js
). is this a good idea? -
How do I name the test files? (For now, I just named them
Foo.test.js
andBar.test.js
) -
Another naming question: How do I name the source and the transpiled scripts? Currently, I just ran
browserify main.js -o app.js
then linkedapp.js
on myindex.html
-
class
Foo
has anactive
method that listens for click events. How do I test this? -
class
Foo
takes HTML(jQuery) elements asconstructor
parameters. What should I pass when testingFoo
? -
Last slightly unrelated question: I have a
vendor
folder on my repository that contains external stuff (bootstrap, jquery, font-awesome etc.). How do I create a branch namedlocal
(containsvendor
folder) andproduction
(uses CDN) without manually copy pasting each components?
Thanks! <3