how I ride the bullet - how I set up a testing environment
how I ride the bullet - how I set up a testing environment
I'm trying to establish a testing environment on win7x64.
After installing node.js I get stuck with installing JSDoc 3. Should this be installed by the node.js command line? Could anybody give me a hint?
regards
manu
After installing node.js I get stuck with installing JSDoc 3. Should this be installed by the node.js command line? Could anybody give me a hint?
regards
manu
Re: Voting for XH 1.6.5
Awesome.manu wrote:I'm trying to establish a testing environment on win7x64.
To be honest I had installed JSDoc 3.2.2 manually quite a while ago. For the article Development Environment I had chosen to use Node.js for JSDoc 3 to avoid this manual installation and requiring Java. I presumed that the installation would be easier, but had not tried it.manu wrote:After installing node.js I get stuck with installing JSDoc 3. Should this be installed by the node.js command line? Could anybody give me a hint?
Now I did. It is not necessary to use the node.js command prompt; a standard cmd.exe is sufficient (however, the installation folder of node.js has to be in the PATH). CD to the XH working copy and run:
Code: Select all
npm install jsdoc@"<=3.3.0"
set path=node_modules\.bin;%PATH%
phing js-doc
If we agree on the local installation, we should ignore the node_module folder (i.e. set the respective SVN property), and I'll add some explanations to the Wiki article.
BTW: I'm impressed by the speed improvement. Running JSDoc 3.2.2 under Rhino took nearly thrice as long for the documentation to be created.
Christoph M. Becker – Plugins for CMSimple_XH
Re: Voting for XH 1.6.5
Thanks Christoph
This takes me a step further. threw this error:
"Error: ENOENT, stat 'C:\Users\emanuel\AppData\Roaming\npm' "
After adding the directory manually it worked.seems to work.
fails with
"Buildfile: C:\xampp\htdocs\CMSimpleDev\build.xml
The PEAR data_dir setting is incorrect: C:\php\pear\data.
Please edit using 'pear config-set data_dir ...' and re-install Phing.
BUILD FAILED
Can't load default task list".
I'm investigating...
How about to move these posts to "how I ride the bullet - how I set up a testing environment"?
This takes me a step further.
Code: Select all
npm install jsdoc@"<=3.3.0"
"Error: ENOENT, stat 'C:\Users\emanuel\AppData\Roaming\npm' "
After adding the directory manually it worked.
Code: Select all
set path=node_modules\.bin;%PATH%
Code: Select all
phing js-doc
"Buildfile: C:\xampp\htdocs\CMSimpleDev\build.xml
The PEAR data_dir setting is incorrect: C:\php\pear\data.
Please edit using 'pear config-set data_dir ...' and re-install Phing.
BUILD FAILED
Can't load default task list".
I'm investigating...
How about to move these posts to "how I ride the bullet - how I set up a testing environment"?
Re: Voting for XH 1.6.5
With pear config-show the data path seems correct:
With "pear list" I dont see any phing installed...
In ./php/pear/ the phing directory ist present though....
Reinstall phing with pear??
Code: Select all
PEAR data directory data_dir c:/xampp/htdocs/pear/
In ./php/pear/ the phing directory ist present though....
Reinstall phing with pear??
Re: Voting for XH 1.6.5
Yes, good idea.manu wrote:How about to move these posts to "how I ride the bullet - how I set up a testing environment"?
No, Pear is not required (at least it shouldn't be). Just install Composer, CD to the XH working copy, run `composer update` and:manu wrote:Reinstall phing with pear??
Code: Select all
set path=vendor\bin;%PATH%
Christoph M. Becker – Plugins for CMSimple_XH
Re: how I ride the bullet - how I set up a testing environme
ok, all done.
Now I get this:
Now I get this:
Code: Select all
C:\xampp\htdocs\CMSimpleDev>phing js-doc
←[00;36mBuildfile: C:\xampp\htdocs\CMSimpleDev\build.xml←[0m
←[00;32m
CMSimple_XH > js-doc:
←[0m
←[01;31mExecution of target "js-doc" failed for the following reason: C:\xampp\h
tdocs\CMSimpleDev\build.xml:93:34: Task exited with code 1←[0m
←[01;31m
BUILD FAILED
C:\xampp\htdocs\CMSimpleDev\build.xml:93:34: Task exited with code 1
Total time: 0.6240 seconds
←[0m
C:\xampp\htdocs\CMSimpleDev>
Re: how I ride the bullet - how I set up a testing environme
Fine, we're getting there.
That should give a more meaningful error message.
Regarding the color codes (←[00;36m): either you call phing like the following: or you install Ansicon and use this instead of directly using cmd.exe.
Try running the command directly:manu wrote:Code: Select all
Execution of target "js-doc" failed for the following reason: C:\xampp\h tdocs\CMSimpleDev\build.xml:93:34: Task exited with code 1
Code: Select all
jsdoc --destination doc/js core/js/admin.js plugins/filebrowser/js/filebrowser.js
Regarding the color codes (←[00;36m): either you call phing like the following:
Code: Select all
phing --logger phing.listener.DefaultLogger js-doc
Christoph M. Becker – Plugins for CMSimple_XH
Re: how I ride the bullet - how I set up a testing environme
Now I found out:
doesn't set the path persistent. After closing the cmd window all the path setting are gone. I problably have to set the user path for node_modules.. and vendor/.. in the System settings by hand.
EDIT: Edit the user System setting don't work (because they are loaded the last).
Code: Select all
set path=..
EDIT: Edit the user System setting don't work (because they are loaded the last).
Re: how I ride the bullet - how I set up a testing environme
I assume you're using the XAMPP shell. In this case you can modify xampp\xampp_shell.bat as desired.manu wrote:Edit the user System setting don't work (because they are loaded the last).
Christoph M. Becker – Plugins for CMSimple_XH
Re: how I ride the bullet - how I set up a testing environme
I have now set the passthru attribute of all exec tasks to true (r1407); this way error messages will be shown when running `phing <taskname>`.manu wrote:Code: Select all
Execution of target "js-doc" failed for the following reason: C:\xampp\h tdocs\CMSimpleDev\build.xml:93:34: Task exited with code 1
Christoph M. Becker – Plugins for CMSimple_XH