What is the best way to test appjs?

56 views
Skip to first unread message

Juzer Ali

unread,
Nov 17, 2012, 11:44:16 AM11/17/12
to appj...@googlegroups.com
I was wondering what is the best method of testing appjs. Assuming I have nightly build on my PC. I added a new feature to appjs. Now I want to test my freature. So I have also extended hello world example (in a separate directory). How should I tell my extended hello world appjs app to refer to the nightly build for appjs module. I tried symlinking into node_modules folder, it didn't work. Also tried to add appjs in npm cache, but on npm install in other directory it errors out during installation. I wanted to know from those who are buiding it, how have they been doing that?

Kevin Ingwersen

unread,
Nov 17, 2012, 6:00:47 PM11/17/12
to appj...@googlegroups.com
Hey.
Create a folder structure as such in a place where you store your work.
AppJS-Dev
- node_modules <- its important that this folder is at the root of the folder.
- Project1 <- a project or thing youre working at.
-- Project1/app.sh (or whatever its called at your end)
-- Project1/data
- Project 2
-- Project 2/app.sh
-- Project2/data

You can duplicate the original apjs build you downloaded and use that for the projects. But in general, the node_modules you get with one appjs build should be at the root of that AppJS-Dev folder. Node goes backwards in all folders till the harddrives root and looks for the node_modules folder. So you only need one node_modules folder and can use it everywhere.

But once you want to deploy the app, put the node_modules folder back in place. Like when you have finished a project, you could create a new sub directory at appJS-Dev named "builds". Then you can issue a command such as this:

$ cp .../AppJS-Dev/Project1 .../AppJS-Dev/Builds/Project1; cp .../AppJS-Dev/node_modules .../AppJS-Dev/Builds/Project1/data

Replace the periods with the actual path to the folder - or use ./ if you are inside that folder already. Replace Project1 with the name where you put your new project into, and the name Builds - or the entire path - where you wanna store your results.

Hope it helped!

Regards, Ingwie.

Am 17.11.2012 um 17:44 schrieb Juzer Ali <er.ju...@gmail.com>:

I was wondering what is the best method of testing appjs. Assuming I have nightly build on my PC. I added a new feature to appjs. Now I want to test my freature. So I have also extended hello world example (in a separate directory). How should I tell my extended hello world appjs app to refer to the nightly build for appjs module. I tried symlinking into node_modules folder, it didn't work. Also tried to add appjs in npm cache, but on npm install in other directory it errors out during installation. I wanted to know from those who are buiding it, how have they been doing that?

--
You received this message because you are subscribed to the Google Groups "appjs-dev" group.
To post to this group, send email to appj...@googlegroups.com.
To unsubscribe from this group, send email to appjs-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages