Hi,
I opened my project
https://bitbucket.org/bitli/varyparams as an example
of project on a public repository - it is on BitBucket and uses Mercurial
(it just happens to be so, other tools and provider works well too).
Regarding the common repository: Finaly I do not think that we need a single central repository for the
scripts and other small contributions (for PCL this is another question).
We should stick with the distributed model and use some standard hosting.
This avoid central management and code is much easier to fork, especially orphan code.
Obviously it is simpler if most contributors use the same tools and service (
this limit the number of tools to learn and service to have a account with).
Practically only git and mercurial compete as a tool.
There are plenty of tutorial on how to use them. If you just develop or update a projets (as
are most scripts), they are very simple to use - you can get by with about 5 commands.
May be the frequent contributors could state their preferences and the willing ones
will use the same repository?
The repository address should be mentionned in the script and the announcement in the forum.
Regarding the standard project layout:On my projects I used the following structure:
.../sources/ (under source code management)
.../sources/main (all the stuff used to build a release)
.../sources/main/js
.../sources/main/doc
.../sources/test (all the stuff used for testing)
.../sources/test/js
.../sources/test/project
.../sources/tools/js (tools, like a script to build a release)
.../releases (not under source code management - may be should be too)
You can look at VaryParams to see if this suits you. This is more complex than
the 'one file at root' generally used, but I found quite a few benefits even for
relatively small projects:
- The source files are split by functionality and are are easier to read and test
- The test scripts can test non GUI functions automatically and do not clutter the final script
- I have a test GUI driver that allows playing with the GUI without doing actions.
- The data for the tests (including a small PI projects) are available and allow repeatable tests
- The tools contains a small program that assemble the source files in a single
file, so end users have just one file to install.
This may be an overkill for very small scripts, but it proved very useful if the scripts
is somewhat complex and you come back to it after a few months.
-- bitli