Skip to content
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

Missing handlebars #3

Open
alphaadidas opened this issue Aug 26, 2012 · 6 comments
Open

Missing handlebars #3

alphaadidas opened this issue Aug 26, 2012 · 6 comments

Comments

@alphaadidas
Copy link

In the app/config.js, you have this entry:

    'handlebars.compiled':"../dist/debug/handlebars_packaged"

Can you check in the js file, or describe how to create the 'dist' locally.

thanks!

@raDiesle
Copy link
Owner

Hi
I would expect that running
Bbb handlebars will generate it.
Have you tried already?
Am 26.08.2012 06:35 schrieb "Glen" [email protected]:

In the app/config.js, you have this entry:

'handlebars.compiled':"../dist/debug/handlebars_packaged"

Can you check in the js file, or describe how to create the 'dist' locally.

thanks!


Reply to this email directly or view it on GitHubhttps://github.com//issues/3.

@johnmw
Copy link

johnmw commented Aug 28, 2012

Hi, thanks for this boilerplate, it looks like a fantastic place to start.

The project seems to work using 'bbb server', however if I run 'bbb handlebars' and then try to load index.html locally, it will not work. (Chrome or Firefox).

Can you please describe how to build it so one can run it 'locally'? (ie, without using bbb server?)

@raDiesle
Copy link
Owner

Hi John,

thanks for the feedback,
I'm looking forward to find people to help
writing documentation or enhancing the code.

If you install e.g. firefox or in chrome/Internet explorer ( Press F12 and check console) use the Debug mode,
do you get
GET file:///C:/assets/css/index.css index.html:10
GET file:///C:/assets/css/jquerymobile.css index.html:11
GET file:///C:/assets/js/libs/require.js index.html:25
?

Typical all kind of web applications, even during development,
are run through a web-server due to several feature a web-server offers.
I once developt some projects without a webserver,
which is not worth the effort.

In the grunt.js you'll find a
server ... folders : {
definition which acts like a link from one folder to another, when running a webserver.

If you want to use another webserver like apache,
the mod_rewrite module is probably the right place to configure.

I would guess changing all paths withing the application and adopting the server ... folders : { configuration will not fix it.

@kvan1
Copy link

kvan1 commented Oct 29, 2012

Hi!
Got a few pages running using bbb server and incorporated a live reload with the watch task. Small change but pretty handy - I'll send a PR if you're interested.
I too am now looking for way to build a release to throw on a webserver. The grunt.js release task doesn't seem to function with the current structure, i.e. names a non-existent JST task, has concat calling for an app/alltemplates.js which isn't built.
What are you building with to produce a dist?

@raDiesle
Copy link
Owner

Yeah nice, thank you!
If you have ideas to improve, feel free to commit to it.
bbb release or bbb debug will prepare a release

@kvan1
Copy link

kvan1 commented Oct 29, 2012

OK, but I'd first like to get to a working grunt.js to commit
bbb release currently gives tons of lint error/warnings and removing it the jst task fails.
Am I doing it wrong? the concat'ted files have no app code, just vendor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants