0.0.36 • Published 8 years ago

ng-guzzle v0.0.36

Weekly downloads
-
License
MIT
Repository
-
Last release
8 years ago

ng-guzzle

This project helps me remove the gulp boilerplate from my AngularJS applications. You're welcome to use it, but I don't have any intention of writing documentation at the moment. There is, however, a partial example.

Ok, here are some reminders for myself:

$ guzzle init
$ guzzle build
$ guzzle watch

package.json

...
  "dependencyConfig": {
    "ng-guzzle": {
      "liveServerParams": {
        "port": 3000,
        "etc.": "etc."
      },
      "modules": [
        {
          "id": "app",
          "src": "./src/app/",
          "dest": "./dest/",
          "static": "./dest/",
          "strictDi": false,
          "minify": false
        },
        {
          "id": "lib",
          "src": "./src/lib/",
          "dest": "./dest/"
        }
      ]
    }
  }
...

Each guzzle module gets compiled into two files: one JavaScript file and one CSS file. Each JavaScript module is wrapped in an IIFE with a single parameter named ngm. This parameter is an Angular module. The Angular module can be bootstrapped by including a selector attribute on the script tag used to include the JavaScript file. There are two possible values for the selector attribute: document | [QUERY SELECTOR]. If you use the query selector and the selector returns multiple elements, the Angular module will be bootstrapped on all elements returned by the selector query.

index.html

...
  <script src="/dest/app.js" selector="document"></script>
...
0.0.36

8 years ago

0.0.35

8 years ago

0.0.34

8 years ago

0.0.32

8 years ago

0.0.31

8 years ago

0.0.30

8 years ago

0.0.29

8 years ago

0.0.28

8 years ago

0.0.27

8 years ago

0.0.26

9 years ago

0.0.25

9 years ago

0.0.24

9 years ago

0.0.23

9 years ago

0.0.22

9 years ago

0.0.21

9 years ago

0.0.20

9 years ago

0.0.19

9 years ago

0.0.18

9 years ago

0.0.17

9 years ago

0.0.16

9 years ago

0.0.15

9 years ago

0.0.14

10 years ago

0.0.13

10 years ago

0.0.12

10 years ago

0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago