#6015 closed defect (bug) (fixed)
grunt build-release fails on SVN checkouts due to bbPress 1
Reported by: | slaFFik | Owned by: | djpaul |
---|---|---|---|
Milestone: | 2.2 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Build/Test Tools | Keywords: | close |
Cc: |
Description
... on clean BuddyPress trunk install (using WordPress nightly builds too).
Here is how it looks: http://screencast.com/t/1pKzxNR4
Steps to reproduce:
1) new DB, new WordPress install
2) svn checkout for latest BuddyPress
3) activated BuddyPress
Change History (20)
#1
@
10 years ago
- Summary changed from No Activity admin menu icon to No Activity/Groups admin menu icons
#2
@
10 years ago
- Keywords close added
Yes, I believe this works when run out of the build directory. Run the grunt build script and see.
#3
@
10 years ago
Saw lots of errors (jshint), and build dir was not created. Can I ask your assistant in making me familiar with the process you use while working in BuddyPress trunk?
#4
@
10 years ago
Running grunt build
should create a build directory, and if files are available in build
, then BP will load from them. grunt jshint
is not throwing any errors from me.
I generally have an empty build
directory and do all development and testing from src
. I only build if I need to test something that requires a built resource (like admin scripts when not running SCRIPT_DEBUG
).
#5
@
10 years ago
Here is what I have: http://screencast.com/t/7gu93MIv
348 errors in 24 files and no build dir.
Also in Users -> Profile Fields css and js files are not loaded in my situation.
Here is what I see on front-end in console: http://screencast.com/t/vtQ7KFCGN
#6
@
10 years ago
Hm, no idea. It's possible your checkout is corrupt somehow. For example, the end of your failing jshint task says that wpAjax
is not defined. I assume it's talking about /src/bp-activity/admin/js/admin.js
. But there wpAjax
is defined as a global on the first line.
Maybe you need to update grunt? npm update
As I can't reproduce, I'm afraid I'm at a loss as for further debugging - you'll have to dig into it yourself. Maybe DJPaul has an idea what's up.
#7
@
10 years ago
Latest of everything...
Ok, will no bother you further, will try to find solution somehow.
#8
@
10 years ago
No bother, just not sure what else might be wrong :) Please update this ticket if you figure it out.
#9
@
10 years ago
BTW, commented out jshint task in gruntfile and got Done, without errors. (using grunt
). But no /build
directory.
#10
@
10 years ago
That's because I need to run grunt build-release
, and not just grunt build
. See the task copy:files
. This comment in #5160 helped me to understand.
Or grunt copy:files
. Now everything works (except jshint errors)
#11
@
10 years ago
I'm glad the reported issue isn't actually a bug, but while the ticket's open, I'm also unable to get grunt to fail on jshint. I tried deleting my node_modules
folder then a fresh npm install
, and had no problems. slaFFik, can you try deleting node_modules then reinstalling?
I am also wondering if this is something to do with your previous composer install/checkout of BP.
#12
@
10 years ago
Deleted node_modules
and installed again. Still have that issue.
Composer creates a folder and a file in src
, not touching other code, so imo it can't be an issue.
But it seems bbpress is the issue. Are you ignoring it somehow? The output is very big, only portion is available in console, but all issues I see are in bp-forums/bbpress
folders.
#13
@
10 years ago
- Component changed from Activity to Core
- Milestone changed from Awaiting Review to 2.2
- Summary changed from No Activity/Groups admin menu icons to grunt build-release fails on SVN checkouts due to bbPress 1
Ah hah. Boone and I work from the Git repo, which doesn't have the same externals (bbPress, and kind of BP-Default) that the SVN does. With an SVN checkout, I can recreate the issue. Let me see how to set an ignore path.
#18
@
10 years ago
- Owner set to djpaul
- Resolution set to fixed
- Status changed from new to closed
In 9149:
Perhaps, the reason is the folder structure in trunk?