-
Notifications
You must be signed in to change notification settings - Fork 38
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
59 changed files
with
855 additions
and
588 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,5 @@ | ||
.git | ||
**/bower_components | ||
**/dist | ||
**/node_modules | ||
**/tmp |
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,4 @@ | ||
coverage | ||
dist | ||
docs | ||
tmp |
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,16 @@ | ||
module.exports = { | ||
root: true, | ||
parserOptions: { | ||
ecmaVersion: 6, | ||
sourceType: 'module' | ||
}, | ||
extends: 'eslint:recommended', | ||
env: { | ||
browser: true, | ||
es6: true | ||
}, | ||
globals: { | ||
MathJax: true | ||
}, | ||
rules: {} | ||
}; |
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 |
---|---|---|
|
@@ -16,6 +16,7 @@ | |
.npmrc | ||
npm-debug.log | ||
testem.log | ||
.idea | ||
|
||
# Never commit configuration or private settings | ||
config/*.yml |
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,4 +1,4 @@ | ||
/* jshint node:true */ | ||
/* eslint-env node */ | ||
'use strict'; | ||
|
||
module.exports = { | ||
|
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,60 @@ | ||
FROM node:boron | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y \ | ||
git \ | ||
# Next 2 needed for yarn | ||
apt-transport-https \ | ||
ca-certificates \ | ||
# watchman | ||
build-essential \ | ||
automake \ | ||
autoconf \ | ||
python-dev \ | ||
&& apt-get clean \ | ||
&& apt-get autoremove -y \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \ | ||
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \ | ||
&& apt-get update \ | ||
&& apt-get install -y \ | ||
yarn \ | ||
&& apt-get clean \ | ||
&& apt-get autoremove -y \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
ENV WATCHMAN_VERSION 4.7.0 | ||
RUN cd /tmp \ | ||
&& git clone https://github.com/facebook/watchman.git \ | ||
&& cd watchman \ | ||
&& git checkout v$WATCHMAN_VERSION \ | ||
&& ./autogen.sh \ | ||
&& ./configure --enable-statedir=/tmp \ | ||
&& make \ | ||
&& make install \ | ||
&& mv watchman /usr/local/bin/watchman \ | ||
&& rm -Rf /tmp/watchman | ||
|
||
RUN mkdir -p /code | ||
WORKDIR /code | ||
|
||
COPY ./package.json ./yarn.lock /code/ | ||
RUN yarn --pure-lockfile | ||
|
||
COPY ./.bowerrc /code/.bowerrc | ||
COPY ./bower.json /code/bower.json | ||
RUN ./node_modules/bower/bin/bower install --allow-root --config.interactive=false | ||
|
||
COPY ./ /code/ | ||
|
||
ARG GIT_COMMIT= | ||
ENV GIT_COMMIT ${GIT_COMMIT} | ||
|
||
ARG APP_ENV=production | ||
ENV APP_ENV ${APP_ENV} | ||
ARG BACKEND=local | ||
ENV BACKEND ${BACKEND} | ||
RUN ./node_modules/ember-cli/bin/ember build --env ${APP_ENV} | ||
|
||
CMD ["yarn", "test"] |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import config from 'ember-get-config'; | ||
import Ember from 'ember'; | ||
|
||
/** | ||
* @module ember-osf | ||
* @submodule mixins | ||
*/ | ||
|
||
/** | ||
* This mixin provides an attribute that holds the host app name, and is intended to be used with other ember-osf components. | ||
* | ||
* Sample usage: | ||
* ``` | ||
* // components/componentA.js | ||
* import hostAppName from ‘ember-osf/mixins/host-app-name’; | ||
* | ||
* export default Component.extend(hostAppName); | ||
* ``` | ||
* | ||
* ``` | ||
* // components/ComponentB.js | ||
* import hostAppName from ‘ember-osf/mixins/host-app-name’; | ||
* | ||
* export default Component.extend(hostAppName); | ||
* | ||
* ``` | ||
* The above example will result in both component A and component B sharing the same attribute hostAppName. | ||
* | ||
*/ | ||
|
||
export default Ember.Mixin.create({ | ||
/** | ||
* The name of the hosting app is stored in the config/environment.js. Use the package ember-get-config to | ||
* gain access to the app's config file. | ||
* @property {String} hostAppName | ||
*/ | ||
hostAppName: config.appName | ||
}); |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export {default} from 'ember-osf/mixins/host-app-name'; |
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,9 +1,10 @@ | ||
/* eslint-disable no-unused-vars */ | ||
// This helps ember-browserify find npm modules in ember-cli addons | ||
|
||
import md5 from 'npm:js-md5'; // jshint ignore:line | ||
import config from 'ember-get-config'; // jshint ignore:line | ||
import _get from 'npm:lodash/get'; // jshint ignore:line | ||
import Cookie from 'npm:js-cookie'; // jshint ignore:line | ||
import keenTracking from 'npm:keen-tracking'; // jshint ignore:line | ||
import md5 from 'npm:js-md5'; | ||
import config from 'ember-get-config'; | ||
import _get from 'npm:lodash/get'; | ||
import Cookie from 'npm:js-cookie'; | ||
import keenTracking from 'npm:keen-tracking'; | ||
|
||
export {default} from 'ember-osf/mixins/keen-tracker'; |
This file was deleted.
Oops, something went wrong.
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,4 +1,4 @@ | ||
/*jshint node:true*/ | ||
/* eslint-env node */ | ||
var fs = require('fs'); | ||
var path = require('path'); | ||
|
||
|
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,3 +1,4 @@ | ||
/* eslint-env node */ | ||
'use strict'; | ||
|
||
//See https://github.com/kategengler/ember-cli-code-coverage/issues/41 | ||
|
Oops, something went wrong.