forked from linnovate/mean
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simple modifications to allow for production and development asset ma…
…nagement. - Added csslint with bootstrap's .csslintrc file (fixed css lint warnings in common.css) - Added cssmin and uglify to compress assets during production builds - Added assetmanager to switch assets files in the template respectively for production and development builds
- Loading branch information
Reed Dadoune
committed
Mar 15, 2014
1 parent
1e8870a
commit 6a24a5a
Showing
9 changed files
with
101 additions
and
39 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,20 @@ | ||
{ | ||
"adjoining-classes": false, | ||
"box-model": false, | ||
"box-sizing": false, | ||
"compatible-vendor-prefixes": false, | ||
"floats": false, | ||
"font-sizes": false, | ||
"gradients": false, | ||
"important": false, | ||
"known-properties": false, | ||
"outline-none": false, | ||
"overqualified-elements": false, | ||
"qualified-headings": false, | ||
"regex-selectors": false, | ||
"shorthand": false, | ||
"text-indent": false, | ||
"unique-headings": false, | ||
"universal-selector": false, | ||
"unqualified-attributes": false | ||
} |
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 |
---|---|---|
|
@@ -6,4 +6,5 @@ | |
node_modules/ | ||
public/lib | ||
test/coverage | ||
mean.iml | ||
mean.iml | ||
/public/build/ |
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,31 +1,8 @@ | ||
<!-- Angular JS --> | ||
<script type="text/javascript" src="/lib/angular/angular.min.js"></script> | ||
<script type="text/javascript" src="/lib/angular-cookies/angular-cookies.min.js"></script> | ||
<script type="text/javascript" src="/lib/angular-resource/angular-resource.min.js"></script> | ||
<script type="text/javascript" src="/lib/angular-ui-router/release/angular-ui-router.js"></script> | ||
|
||
<!-- Angular UI --> | ||
<script type="text/javascript" src="/lib/angular-bootstrap/ui-bootstrap.js"></script> | ||
<script type="text/javascript" src="/lib/angular-bootstrap/ui-bootstrap-tpls.js"></script> | ||
|
||
<!-- Application Init --> | ||
<script type="text/javascript" src="/js/app.js"></script> | ||
<script type="text/javascript" src="/js/config.js"></script> | ||
<script type="text/javascript" src="/js/directives.js"></script> | ||
<script type="text/javascript" src="/js/filters.js"></script> | ||
|
||
<!-- Application Services --> | ||
<script type="text/javascript" src="/js/services/global.js"></script> | ||
<script type="text/javascript" src="/js/services/articles.js"></script> | ||
|
||
<!-- Application Controllers --> | ||
<script type="text/javascript" src="/js/controllers/articles.js"></script> | ||
<script type="text/javascript" src="/js/controllers/index.js"></script> | ||
<script type="text/javascript" src="/js/controllers/header.js"></script> | ||
<script type="text/javascript" src="/js/init.js"></script> | ||
|
||
{% for file in assets.js %} | ||
<script type="text/javascript" src="{{file}}"></script> | ||
{% endfor %} | ||
|
||
{% if (process.env.NODE_ENV == 'development') %} | ||
<!-- Livereload script rendered --> | ||
<script type="text/javascript" src="{{'http://' + req.host + ':35729/livereload.js'}}"></script> | ||
<!-- Livereload script rendered --> | ||
<script type="text/javascript" src="{{'http://' + req.host + ':35729/livereload.js'}}"></script> | ||
{% endif %} |
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
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,19 @@ | ||
{ | ||
"css": { | ||
"public/build/css/dist.min.css": [ | ||
"public/lib/bootstrap/dist/css/bootstrap.css", | ||
"public/css/**/*.css" | ||
] | ||
}, | ||
"js": { | ||
"public/build/js/dist.min.js": [ | ||
"public/lib/angular/angular.js", | ||
"public/lib/angular-cookies/angular-cookies.js", | ||
"public/lib/angular-resource/angular-resource.js", | ||
"public/lib/angular-ui-router/release/angular-ui-router.js", | ||
"public/lib/angular-bootstrap/ui-bootstrap.js", | ||
"public/lib/angular-bootstrap/ui-bootstrap-tpls.js", | ||
"public/js/**/*.js" | ||
] | ||
} | ||
} |
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
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
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
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