Skip to content

Commit 7a241bd

Browse files
committed
first steps to ember-cli
1 parent 5243b6c commit 7a241bd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+446
-1549
lines changed

.bowerrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"directory": "vendor"
2+
"directory": "bower_components",
3+
"analytics": false
34
}

.editorconfig

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# editorconfig.org
4+
5+
root = true
6+
7+
8+
[*]
9+
end_of_line = lf
10+
charset = utf-8
11+
trim_trailing_whitespace = true
12+
insert_final_newline = true
13+
indent_style = space
14+
indent_size = 2
15+
16+
[*.js]
17+
indent_style = space
18+
indent_size = 2
19+
20+
[*.hbs]
21+
indent_style = space
22+
indent_size = 2
23+
24+
[*.css]
25+
indent_style = space
26+
indent_size = 2
27+
28+
[*.html]
29+
indent_style = space
30+
indent_size = 2
31+
32+
[*.md]
33+
trim_trailing_whitespace = false

.ember-cli

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
/**
3+
Ember CLI sends analytics information by default. The data is completely
4+
anonymous, but there are times when you might want to disable this behavior.
5+
6+
Setting `disableAnalytics` to true will prevent any data from being sent.
7+
*/
8+
"disableAnalytics": false
9+
}

.gitignore

+4-7
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,15 @@
33
# compiled output
44
/dist
55
/tmp
6-
/docs
76

87
# dependencies
98
/node_modules
10-
/vendor/*
11-
!/vendor/ember-shim.js
12-
!/vendor/qunit-shim.js
9+
/bower_components
1310

1411
# misc
1512
/.sass-cache
1613
/connect.lock
17-
/libpeerconnection.log
18-
.DS_Store
19-
Thumbs.db
2014
/coverage/*
15+
/libpeerconnection.log
16+
npm-debug.log
17+
testem.log

.jshintrc

+10-17
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,14 @@
11
{
2-
"predef": {
3-
"document": true,
4-
"window": true,
5-
"location": true,
6-
"setTimeout": true,
7-
"Ember": true,
8-
"Em": true,
9-
"DS": true,
10-
"$": true,
11-
"moment": true,
12-
"sjcl": true
13-
},
14-
"node" : false,
15-
"browser" : false,
2+
"predef": [
3+
"document",
4+
"window",
5+
"-Promise"
6+
],
7+
"browser" : true,
168
"boss" : true,
17-
"curly": false,
9+
"curly": true,
1810
"debug": false,
19-
"devel": false,
11+
"devel": true,
2012
"eqeqeq": true,
2113
"evil": true,
2214
"forin": false,
@@ -35,5 +27,6 @@
3527
"strict": false,
3628
"white": false,
3729
"eqnull": true,
38-
"esnext": true
30+
"esnext": true,
31+
"unused": true
3932
}

.travis.yml

+13-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
1+
---
12
language: node_js
2-
node_js:
3-
- 0.10
4-
before_script:
5-
- npm install -g grunt-cli
3+
4+
sudo: false
5+
6+
cache:
7+
directories:
8+
- node_modules
9+
10+
install:
611
- npm install -g bower
12+
- npm install
713
- bower install
14+
15+
script:
16+
- npm test

Brocfile.js

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
/* global require, module */
2+
3+
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
4+
5+
var app = new EmberApp();
6+
7+
// Use `app.import` to add additional libraries to the generated
8+
// output files.
9+
//
10+
// If you need to use different assets in different
11+
// environments, specify an object as the first parameter. That
12+
// object's keys should be the environment name and the values
13+
// should be the asset to use in that environment.
14+
//
15+
// If the library that you are including contains AMD or ES6
16+
// modules that you would like to import into your application
17+
// please specify an object with the list of modules as keys
18+
// along with the exports of each module as its value.
19+
20+
app.import({
21+
development: 'bower_components/moment/min/moment-with-locales.js',
22+
production: 'bower_components/momemt/min/moment-with-locales.min.js'
23+
});
24+
25+
app.import({
26+
development: 'bower_components/bootstrap/dist/js/bootstrap.js',
27+
production: 'bower_components/bootstrap/dist/js/bootstrap.min.js'
28+
});
29+
30+
app.import('bower_components/bootstrap-datepicker/js/bootstrap-datepicker.js');
31+
32+
app.import('bower_components/ember-easyForm/index.js');
33+
34+
app.import('bower_components/cldr/plurals.js');
35+
36+
app.import('bower_components/ember-i18n/lib/i18n.js');
37+
app.import('bower_components/ember-i18n/lib/i18n-plurals.js');
38+
39+
app.import({
40+
development: 'bower_components/floatThead/dist/jquery.floatThead.js',
41+
production: 'bower_components/floatThead/dist/jquery.floatThead.min.js'
42+
});
43+
44+
app.import({
45+
development: 'bower_components/webshim/js-webshim/dev/polyfiller.js',
46+
production: 'bower_components/webshim/js-webshim/minified/polyfiller.js'
47+
});
48+
49+
app.import('bower_components/ember-validations/index.js');
50+
51+
app.import('bower_components/sjcl/sjcl.js');
52+
53+
app.import('bower_components/modernizr/modernizr.js');
54+
55+
56+
module.exports = app.toTree();

0 commit comments

Comments
 (0)