mcalthrop / angular-spa-demo Goto Github PK
View Code? Open in Web Editor NEWDemo code for a Single Page Application using AngularJS
License: MIT License
Demo code for a Single Page Application using AngularJS
License: MIT License
I'm particularly interested in the docs part as there are few working examples of ng-docs documentation. It generates the docs just fine, but you can't actually access them using local file browsing, they need to be served by a server. Please add to gruntfile a target for that.
Currently, libraries are manually retrieved and copied into js/lib
.
This process will change so that:
bower.json
bower_components
, and copies them to the correct destinationindex.html
will be updated to reflect these locationsbuild/tasks/options/template.js
will no longer be neededAdd jscs module, and configure it against the codebase.
Errors: https://travis-ci.org/mcalthrop/angular-spa-demo/builds/32481504
Travis can't find any of the browsers specified to run the unit tests.
Possible options:
See also http://docs.travis-ci.com/user/gui-and-headless-browsers/
Successful Travis build should push changes to http://mcalthrop.github.io/angular-spa-demo .
Provides unnecessary code-bloat.
Modify the build process so that for a prod
build:
index.html
when the build is a prod
buildAnd for a dev
build:
index.html
includes remain as they are, conditional on the build being a dev
oneScope: add protractor testing functionality to build process, including a minimal test suite to confirm it works on Travis.
Once bower install && npm install
was ran, now in bower_components/
all of the needed components where installed, ready to be used.
There was a small problem, though:
When running grunt dev, this was in the output:
Running "bowercopy:dev" (bowercopy) task
bower_components/angular/angular.js -> dist/dev/js/lib/angular.js
bower_components/angular-animate/angular-animate.js -> dist/dev/js/lib/angular-animate.js
bower_components/angular-resource/angular-resource.js -> dist/dev/js/lib/angular-resource.js
bower_components/angular-route/angular-route.js -> dist/dev/js/lib/angular-route.js
bower_components/angular-sanitize/angular-sanitize.js -> dist/dev/js/lib/angular-sanitize.jsbower_components/angular-ui-bootstrap/dist/ui-bootstrap-0.11.0.js was not found
bower_components/angular-ui-bootstrap/dist/ui-bootstrap-tpls-0.11.0.js was not found
The problem was that angular-ui-bootstrap did not have the dist/
folder.
I managed to solve this by running the following commands:
cd bower_components/angular-ui-bootstrap
npm install
grunt --force
cd ../../
Is there a better way of solving this problem?
Why did this not happen before? We are using the same versions of the library!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.