chrishumboldt / Webplate

Webplate is an awesome front-end framework that lets you stay focused on building your site or app all the while remaining really easy to use.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adding webplate to existing yeoman project

neo-art opened this issue · comments

Hi,

Trying to add Webplate to an existing project started with yeoman, bourbon/neat etc.
but I am having some difficulties with building it.
I installed Webplate with bower install in the bower_components folder and everything
looks fine with grunt serve but as soon as I run grunt build the web application shows a blank page
only. I guess this is happening because of the grunt js concate task.
Any idea get around this?

Weird ... moved Webplate from bower_components to the application folder: app
and when run grunt serve everything is fine.
As soon as I run grunt build and upload the generated files to the server the only thing I see
is a blank page and this is because grunt completely ignores the folder webplate. :)
It is just not in the generated dist folder.

This is the structure of the app:

[user@arch app]$
.
├── favicon.ico
├── images
│   ├
├── img
│   └
├── index.html
├── robots.txt
├── sass
│   └── main.scss
├── scripts
│   └── main.js
├── styles
│   ├── main.css
│   └── main.css.map
└── webplate
    ├
    ├
    └── stack.js

I suppose I have to add the webplate files to the main gruntfile.js ... can you please advise which
files/folder to add to gruntfile?

OK, finally managed to fix everything ... I think ... :)

Added the whole webplate directory to grunt-copy in the main gruntfile.js,
changed the images path etc. and now it works.

One more question ... is it necessary to upload to the server the whole webplate folder
with the core etc?

Hey sorry man. I completely missed your questions here. Seems I am not getting notifications at the moment. Will go through all your questions a bit later and reply. Hope you are coming right nonetheless.