GithubHelp home page GithubHelp logo

flrent / chrome-extension-angular-base Goto Github PK

View Code? Open in Web Editor NEW
51.0 6.0 23.0 1.18 MB

A base project to get started creating Chrome Extensions with AngularJS, including Bootstrap, jQuery, Mocha, Chai, SinonJS, with a popup app, content scripts, and a background page.

Home Page: http://www.slideshare.net/flrent/build-your-own-chrome-extension-with-angularjs

JavaScript 99.93% CSS 0.07%

chrome-extension-angular-base's Introduction

A Chrome Extension base project with AngularJS

This is a scaffolding project to help you get started. This includes :

  • AngularJS Popup App scripts/app/
  • Bootstrap JS and CSS
  • jQuery / Underscore.js
  • Mochai/Chai/SinonJS for testing contentscripts
  • Grunt and Bower

See some slides about creating chrome extensions here

http://www.slideshare.net/flrent/build-your-own-chrome-extension-with-angularjs

Get Started

  • Clone this repo
  • Run npm install and bower install
  • Go to chrome://extensions/
  • Activate developer mode
  • Click on load an unpacked extension and locate your cloned repo, and select the app folder

Build and deploy

The build manifest.json file is manifest-build.json. It differs from the regular manifest.json to use only built files (single files for the all popup app, content scripts or background pages).

To build the app and get a single scripts for each popup app, content script, or background page, simpy run :

grunt build

Versions

  • 0.1 May 2014 First version released

License

Florent Lamoureux @flrent
Licensed under the MIT license.
Copyright (c) 2014 - BugBuster SA

chrome-extension-angular-base's People

Contributors

flrent avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

chrome-extension-angular-base's Issues

Question about the app module declaration

I'm curious about this code:

angular.module('popup', [
  'popup.services',
  'popup.controllers'
]);

Where does the dotted notation for the module dependencies come from, and what does it reference? There are no modules named 'services' or 'controllers', only folders inside /app that bear those names. Is this some type of folder level dependency injection I'm not aware of, or is this a bug? It doesn't actually seem to need any dependency injections, since the Controller is defined inside popup.html:

 <div ng-controller="MainController">

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.