Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
442 additions
and
420 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto | ||
|
||
# Custom for Visual Studio | ||
*.cs diff=csharp | ||
*.sln merge=union | ||
*.csproj merge=union | ||
*.vbproj merge=union | ||
*.fsproj merge=union | ||
*.dbproj merge=union | ||
|
||
# Standard to msysgit | ||
*.doc diff=astextplain | ||
*.DOC diff=astextplain | ||
*.docx diff=astextplain | ||
*.DOCX diff=astextplain | ||
*.dot diff=astextplain | ||
*.DOT diff=astextplain | ||
*.pdf diff=astextplain | ||
*.PDF diff=astextplain | ||
*.rtf diff=astextplain | ||
*.RTF diff=astextplain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,55 @@ | ||
AGRC JavaScript Project Boilerplate | ||
=================================== | ||
|
||
Based heavily upon: [https://github.com/csnover/dojo-boilerplate](https://github.com/csnover/dojo-boilerplate) | ||
|
||
To Use | ||
====== | ||
|
||
### Step 1 - Boilerplate | ||
|
||
``` | ||
git clone https://github.com/agrc/AGRCJavaScriptProjectBoilerPlate.git --recursive | ||
cd AGRCJavaScriptProjectBoilerPlate | ||
npm install | ||
``` | ||
|
||
### Step 2 - Develop | ||
|
||
Open `src/index.html` to view the development version of the app. | ||
|
||
Build an awesome app. | ||
|
||
Run `grunt` to automatically lint your files and run unit tests (see _SpecRunner.html for unit tests). | ||
|
||
### Step 3 - Optimize | ||
|
||
Before pushing to a server, run `build.sh`. This will use the [dojo build system](http://dojotoolkit.org/reference-guide/build/) to create an optimized version of your app in the `dist` directory that you can then upload to your server. | ||
|
||
Tool Versions | ||
============ | ||
|
||
[Dojo](http://dojotoolkit.org/): 1.8.3 | ||
|
||
[ESRI JS API](http://help.arcgis.com/en/webapi/javascript/arcgis/): 3.3 | ||
|
||
[Grunt](http://gruntjs.com/): 0.4.0 (plugins can be found in `package.json`) | ||
|
||
[Jasmine](http://pivotal.github.com/jasmine/): 1.3.0 | ||
|
||
Notes | ||
===== | ||
|
||
I wasn't able to load ESRI modules without loading their built layer file. So I'm building all of my modules with esri [excludes](https://github.com/agrc/AGRCJavaScriptProjectBoilerPlate/blob/master/profiles/app.profile.js#L13) and loading that as a separate layer file in addition to the ESRI layer file. | ||
|
||
`dojo`, [`agrc`](https://github.com/agrc/agrc.widgets), and [`ijit`](https://github.com/agrc/agrc-ijit) are included via git submodules so make sure that you clone the repository like this: | ||
|
||
``` | ||
git clone --recursive | ||
``` | ||
|
||
Or do this after cloning: | ||
|
||
``` | ||
git submodule update --init --recursive | ||
AGRC JavaScript Project Boilerplate | ||
=================================== | ||
|
||
Based heavily upon: [https://github.com/csnover/dojo-boilerplate](https://github.com/csnover/dojo-boilerplate) | ||
|
||
To Use | ||
====== | ||
|
||
### Step 1 - Boilerplate | ||
|
||
``` | ||
git clone https://github.com/agrc/AGRCJavaScriptProjectBoilerPlate.git --recursive | ||
cd AGRCJavaScriptProjectBoilerPlate | ||
npm install | ||
``` | ||
|
||
### Step 2 - Develop | ||
|
||
Open `src/index.html` to view the development version of the app. | ||
|
||
Build an awesome app. | ||
|
||
Run `grunt` to automatically lint your files and run unit tests (see _SpecRunner.html for unit tests). | ||
|
||
### Step 3 - Optimize | ||
|
||
Before pushing to a server, run `build.sh`. This will use the [dojo build system](http://dojotoolkit.org/reference-guide/build/) to create an optimized version of your app in the `dist` directory that you can then upload to your server. | ||
|
||
Tool Versions | ||
============ | ||
|
||
[Dojo](http://dojotoolkit.org/): 1.8.3 | ||
|
||
[ESRI JS API](http://help.arcgis.com/en/webapi/javascript/arcgis/): 3.3 | ||
|
||
[Grunt](http://gruntjs.com/): 0.4.0 (plugins can be found in `package.json`) | ||
|
||
[Jasmine](http://pivotal.github.com/jasmine/): 1.3.0 | ||
|
||
Notes | ||
===== | ||
|
||
I wasn't able to load ESRI modules without loading their built layer file. So I'm building all of my modules with esri [excludes](https://github.com/agrc/AGRCJavaScriptProjectBoilerPlate/blob/master/profiles/app.profile.js#L13) and loading that as a separate layer file in addition to the ESRI layer file. | ||
|
||
`dojo`, [`agrc`](https://github.com/agrc/agrc.widgets), and [`ijit`](https://github.com/agrc/agrc-ijit) are included via git submodules so make sure that you clone the repository like this: | ||
|
||
``` | ||
git clone --recursive | ||
``` | ||
|
||
Or do this after cloning: | ||
|
||
``` | ||
git submodule update --init --recursive | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,78 +1,78 @@ | ||
var profile = { | ||
basePath: '../src', | ||
action: 'release', | ||
cssOptimize: 'comments', | ||
mini: true, | ||
optimize: 'closure', | ||
layerOptimize: 'closure', | ||
stripConsole: 'all', | ||
selectorEngine: 'acme', | ||
layers: { | ||
'app/run': { | ||
include: ['app/main', 'app/run'], | ||
exclude: [ | ||
"dijit/_base/scroll", | ||
"dijit/_TemplatedMixin", | ||
"dijit/_Templated", | ||
"dijit/_WidgetBase", | ||
"dijit/_TemplatedMixin", | ||
"dijit/_WidgetsInTemplateMixin", | ||
"dojo/_base/array", | ||
"dojo/_base/declare", | ||
"dojo/_base/lang", | ||
"dojo/_base/kernel", | ||
"dojox/gfx/matrix", | ||
"dojo/_base/Color", | ||
"dojox/gfx/_base", | ||
"dojox/xml/parser", | ||
"dojox/gfx", | ||
"dojo/fx", | ||
"dojo/date", | ||
"dojo/date/locale", | ||
"dojo/io/script", | ||
"dojo/_base/url", | ||
"dojox/collections/ArrayList", | ||
"dojo/string", | ||
"dojo/fx/Toggler", | ||
"dijit/_base/manager", | ||
"dijit/form/HorizontalSlider", | ||
"dijit/form/VerticalSlider", | ||
"dijit/form/HorizontalRule", | ||
"dijit/form/VerticalRule", | ||
"dijit/form/HorizontalRuleLabels", | ||
"dijit/form/VerticalRuleLabels", | ||
"dijit/_base", | ||
"dijit/form/DropDownButton", | ||
"dijit/form/ComboButton", | ||
"dijit/form/ToggleButton" | ||
] | ||
} | ||
}, | ||
staticHasFeatures: { | ||
// The trace & log APIs are used for debugging the loader, so we don’t need them in the build | ||
'dojo-trace-api':0, | ||
'dojo-log-api':0, | ||
|
||
// This causes normally private loader data to be exposed for debugging, so we don’t need that either | ||
'dojo-publish-privates':0, | ||
|
||
// We’re fully async, so get rid of the legacy loader | ||
// 'dojo-sync-loader':0, | ||
|
||
// dojo-xhr-factory relies on dojo-sync-loader | ||
// 'dojo-xhr-factory':0, | ||
|
||
// We aren’t loading tests in production | ||
'dojo-test-sniff':0 | ||
}, | ||
packages: [{ | ||
name: 'dojo', | ||
location: 'dojo' | ||
},{ | ||
name: 'dijit', | ||
location: 'dijit' | ||
},{ | ||
name: 'dojox', | ||
location: 'dojox' | ||
}] | ||
var profile = { | ||
basePath: '../src', | ||
action: 'release', | ||
cssOptimize: 'comments', | ||
mini: true, | ||
optimize: 'closure', | ||
layerOptimize: 'closure', | ||
stripConsole: 'all', | ||
selectorEngine: 'acme', | ||
layers: { | ||
'app/run': { | ||
include: ['app/main', 'app/run'], | ||
exclude: [ | ||
"dijit/_base/scroll", | ||
"dijit/_TemplatedMixin", | ||
"dijit/_Templated", | ||
"dijit/_WidgetBase", | ||
"dijit/_TemplatedMixin", | ||
"dijit/_WidgetsInTemplateMixin", | ||
"dojo/_base/array", | ||
"dojo/_base/declare", | ||
"dojo/_base/lang", | ||
"dojo/_base/kernel", | ||
"dojox/gfx/matrix", | ||
"dojo/_base/Color", | ||
"dojox/gfx/_base", | ||
"dojox/xml/parser", | ||
"dojox/gfx", | ||
"dojo/fx", | ||
"dojo/date", | ||
"dojo/date/locale", | ||
"dojo/io/script", | ||
"dojo/_base/url", | ||
"dojox/collections/ArrayList", | ||
"dojo/string", | ||
"dojo/fx/Toggler", | ||
"dijit/_base/manager", | ||
"dijit/form/HorizontalSlider", | ||
"dijit/form/VerticalSlider", | ||
"dijit/form/HorizontalRule", | ||
"dijit/form/VerticalRule", | ||
"dijit/form/HorizontalRuleLabels", | ||
"dijit/form/VerticalRuleLabels", | ||
"dijit/_base", | ||
"dijit/form/DropDownButton", | ||
"dijit/form/ComboButton", | ||
"dijit/form/ToggleButton" | ||
] | ||
} | ||
}, | ||
staticHasFeatures: { | ||
// The trace & log APIs are used for debugging the loader, so we don’t need them in the build | ||
'dojo-trace-api':0, | ||
'dojo-log-api':0, | ||
|
||
// This causes normally private loader data to be exposed for debugging, so we don’t need that either | ||
'dojo-publish-privates':0, | ||
|
||
// We’re fully async, so get rid of the legacy loader | ||
// 'dojo-sync-loader':0, | ||
|
||
// dojo-xhr-factory relies on dojo-sync-loader | ||
// 'dojo-xhr-factory':0, | ||
|
||
// We aren’t loading tests in production | ||
'dojo-test-sniff':0 | ||
}, | ||
packages: [{ | ||
name: 'dojo', | ||
location: 'dojo' | ||
},{ | ||
name: 'dijit', | ||
location: 'dijit' | ||
},{ | ||
name: 'dojox', | ||
location: 'dojox' | ||
}] | ||
}; |
Oops, something went wrong.
2d1f137
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did this happen? Line ending differences between mac and windows? Hope that it doesn't happen again.
2d1f137
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2d1f137
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2d1f137
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think just the first file in the commit and the 2d1f137#L0R2 would save a lot of hassle.