From ad75aa6793faf0791d60869093f1a7ed8193cc42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrique=20Barbeito=20Garc=C3=ADa?= Date: Thu, 19 Mar 2015 22:13:33 +0100 Subject: [PATCH] fix(configuration): Update config.js references to current configuration.js update every reference to the old config.js with the new configuration.js --- docs/FAQ.md | 4 ++-- templates/common/_gitignore | 2 +- templates/common/root/.jshintignore | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/FAQ.md b/docs/FAQ.md index cd5b661..53dd8c5 100644 --- a/docs/FAQ.md +++ b/docs/FAQ.md @@ -110,7 +110,7 @@ To set up your environment specific constants, modify the respective targets of name: 'config', - dest: '<%= yeoman.app %>/<%= yeoman.scripts %>/config.js' + dest: '<%= yeoman.app %>/<%= yeoman.scripts %>/configuration.js' }, @@ -155,7 +155,7 @@ To set up your environment specific constants, modify the respective targets of Running `grunt serve` will cause the `development` target constants to be used. When you build your application for production using `grunt compress` or `grunt serve:compress`, the `production` constants will be used. Other targets, such as staging, can be added, but you will need to customize your Gruntfile accordingly. Note that if you change the `name` property of the task options, you will need to update your `app.js` module dependencies as well. If you want to compress and build and use `production` constants, you will need to first run `grunt compress` and then use ionic or cordova commands to build, for example: `ionic build ios`. ##How is this used inside Angular? -A `config.js` file is created by `grunt-ng-constant` depending on which task target is executed. This config file exposes a `config` module, that is listed as a dependency inside `app/scripts/app.js`. Out of the box, your constants will be namespaced under `ENV`, but this can be changed by modifying the `ngconstant` targets. It is important to note that whatever namespace value is chosen is what will need to be used for Dependency Injection inside your Angular functions. +A `configuration.js` file is created by `grunt-ng-constant` depending on which task target is executed. This config file exposes a `config` module, that is listed as a dependency inside `app/scripts/app.js`. Out of the box, your constants will be namespaced under `ENV`, but this can be changed by modifying the `ngconstant` targets. It is important to note that whatever namespace value is chosen is what will need to be used for Dependency Injection inside your Angular functions. diff --git a/templates/common/_gitignore b/templates/common/_gitignore index 46212b3..a8651c1 100644 --- a/templates/common/_gitignore +++ b/templates/common/_gitignore @@ -12,4 +12,4 @@ plugins *.log *.DS_Store -app/scripts/config.js +app/scripts/configuration.js diff --git a/templates/common/root/.jshintignore b/templates/common/root/.jshintignore index c67cf8c..6bc1088 100644 --- a/templates/common/root/.jshintignore +++ b/templates/common/root/.jshintignore @@ -1 +1 @@ -app/scripts/config.js +app/scripts/configuration.js