-
Notifications
You must be signed in to change notification settings - Fork 27
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
Basic Front-end Demo material #4
Conversation
Mostly 👍 for me. The only hitch I ran into was having to run |
Got a weird error originally when running I also had the issue with the "Add random data values" button on the demo page not working until Assuming the double gulping gets fixed, I give this a 💃 for go-ahead. (We can address the whole "Bower is ceasing development as a project and isn't going to be used by Capital Framework anyway" thing later.) |
The double-gulping might be a result of the |
Just noticed this: I pulled in the new directory structure from @higs4281, and it looks like there's now both a |
not intended, and a side effect of my layout reboot. also, the target static directory is one level higher, so gulp should deliver to this directory: college-costs/paying_for_college/static |
maybe gulp had to run twice because the first time paying-for-college dir didn't exist? |
👍 good to see the pipeline flowing! |
Update: It seems In the meantime, running The new static directory is integrated into gulp's config now, so yay! 🚀 🐒 🐙 |
@mistergone should we add a |
More Better Update: Adam gave me the insight needed to fix this - instead of trying to force browserify to work with the I also updated I also updated So please pull the latest and try to get it to work. |
Is there a reason that this exists separately from |
@Scotchester I would imagine I got my shell scripts mixed up... 🐙 💢 |
|
Thanks :D |
Works perfectly for me. 👍 |
@niqjohnson - Hooray! Thanks! Update: Enabled uglify and sourcemaps in |
👍 love having everything in setup.sh |
I haven't been able to run this locally due to a Django error, but looking through the code, this looks like a solid first step. 👍 to merge. |
This is a PR that integrates all the stuff I've been working on with regards to the front-end.
Additions
package.json
to allow fornpm install
./src/disclosures/
directory for our "disclosures" source files./src/disclosures/js
for JavaScript, including./src/disclosures/js/lib
for custom lib files./src/disclosures/css
for CSS/LESS./src/disclosures/css/disclosures.less
for custom "disclosures" CSS/LESS./src/disclosures/js/index.js
, the main JS file../src/disclosures/js/financial-data.js
, which contains the code for our financial data model./src/disclosures/js/handle-string-input.js
, a lib file for turning strings into numbers./src/disclosures/js/school-view.js
, which contains basic code for our school & financial data view (input fields)browserify
(includingvinyl-buffer
andvinyl-source-stream
, for turning RequireJS-style packages into browser-friendly codeformat-usd
, for formatting numbers as currency stringsstudent-debt-calc
, the amazing package written by super-geniuses which does the calculation for student debt valuesReview/Testing
Please check this out @ascott1 and @higs4281 and @marteki and @niqjohnson!
Once you pull in the repo, you can do the following to review the front-end integration:
college-costs
, runnpm install
bower install
gulp
just-a-demo.html
in the root directory in your browser!If you're keen to mess with things,
gulp watch
works!There's no tests written for the front-end at this point (aside from independent tests in
format-usd
andstudent-debt-calc
).To Do
CHANGELOG.md
in this unified repo.Thanks
Thanks to @ascott1 for all his help!