Skip to content

Commit

Permalink
wall of pink. and 3.4 of js api
Browse files Browse the repository at this point in the history
  • Loading branch information
steveoh committed Apr 1, 2013
1 parent 35a9b33 commit 2d1f137
Show file tree
Hide file tree
Showing 10 changed files with 442 additions and 420 deletions.
22 changes: 22 additions & 0 deletions .gitattributes
@@ -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
108 changes: 54 additions & 54 deletions README.md
@@ -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
```
154 changes: 77 additions & 77 deletions profiles/app.profile.js
@@ -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'
}]
};

4 comments on commit 2d1f137

@stdavis
Copy link
Member

@stdavis stdavis commented on 2d1f137 Apr 4, 2013

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.

@steveoh
Copy link
Member Author

@steveoh steveoh commented on 2d1f137 Apr 4, 2013 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stdavis
Copy link
Member

@stdavis stdavis commented on 2d1f137 Apr 5, 2013 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@steveoh
Copy link
Member Author

@steveoh steveoh commented on 2d1f137 Apr 5, 2013

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.

Please sign in to comment.