Skip to content

Commit

Permalink
Merge pull request #3907 from fivetanley/addonize
Browse files Browse the repository at this point in the history
Addonize
  • Loading branch information
fivetanley committed Nov 12, 2015
2 parents 309d481 + 0ee2cc7 commit 1d5dfa1
Show file tree
Hide file tree
Showing 218 changed files with 5,803 additions and 5,244 deletions.
3 changes: 2 additions & 1 deletion .bowerrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"directory": "bower_components"
"directory": "bower_components",
"interactive": false
}
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
---
language: node_js
sudo: false
sudo: required
dist: trusty
node_js:
- "0.10"
before_install:
- "npm config set spin false"
- "npm install -g npm@^2"
install:
- npm install --no-optional
- ./node_modules/.bin/bower install
script:
- ./bin/lint-features
- npm run-script test
- npm run-script test:beta
- npm run-script test:canary
- npm run-script test:optional-features
after_success:
- npm run-script publish-build:prebuilt
- "./bin/bower-ember-data-build"
Expand Down
185 changes: 0 additions & 185 deletions Brocfile.js

This file was deleted.

Empty file added addon/.gitkeep
Empty file.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {assert} from 'ember-data/debug';
const EmberError = Ember.Error;

const SOURCE_POINTER_REGEXP = /^\/?data\/(attributes|relationships)\/(.*)/;
Expand Down Expand Up @@ -80,7 +81,7 @@ AdapterError.prototype = Object.create(EmberError.prototype);
@namespace DS
*/
export function InvalidError(errors) {
Ember.assert('`InvalidError` expects json-api formatted errors array.', Ember.isArray(errors || []));
assert('`InvalidError` expects json-api formatted errors array.', Ember.isArray(errors || []));
AdapterError.call(this, errors, 'The adapter rejected the commit because it was invalid');
}

Expand Down
File renamed without changes.
File renamed without changes.
10 changes: 6 additions & 4 deletions packages/ember-data/lib/core.js → addon/core.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import Ember from 'ember';
import VERSION from 'ember-data/version';

/**
@module ember-data
*/
Expand All @@ -12,20 +15,19 @@
/**
@property VERSION
@type String
@default 'VERSION_STRING_PLACEHOLDER'
@static
*/
/*jshint -W079 */
var DS = Ember.Namespace.create({
VERSION: 'VERSION_STRING_PLACEHOLDER'
VERSION: VERSION
});

if (Ember.libraries) {
Ember.libraries.registerCoreLibrary('Ember Data', DS.VERSION);
}

var EMBER_DATA_FEATURES = EMBER_DATA_FEATURES_PLACEHOLDER; //jshint ignore: line
// var EMBER_DATA_FEATURES = EMBER_DATA_FEATURES_PLACEHOLDER; //jshint ignore: line

Ember.merge(Ember.FEATURES, EMBER_DATA_FEATURES);
// Ember.merge(Ember.FEATURES, EMBER_DATA_FEATURES);

export default DS;
30 changes: 30 additions & 0 deletions addon/debug.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import Ember from 'ember';

export function assert() {
return Ember.assert(...arguments);
}

export function debug() {
return Ember.debug(...arguments);
}

export function deprecate() {
return Ember.deprecate(...arguments);
}

export function info() {
return Ember.info(...arguments);
}

export function runInDebug() {
return Ember.runInDebug(...arguments);
}

export function warn() {
return Ember.warn(...arguments);
}

export function debugSeal() {
return Ember.debugSeal(...arguments);
}

File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions packages/ember-data/lib/main.js → addon/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Ember from "ember";
/**
Ember Data
@module ember-data
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 3 additions & 7 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ install:
# Get the latest stable version of Node 0.STABLE.latest
- ps: Install-Product node $env:nodejs_version
# Install PhantomJS
- cinst PhantomJS -Version 1.9.8
- set path=%path%;C:\tools\PhantomJS\
- dir C:\tools\PhantomJS
- choco install phantomjs --version 2.0.0 -y
- set path=%path%;C:\ProgramData\chocolatey\lib\PhantomJS\tools\
# Typical npm stuff.
- md C:\nc
- npm install -g npm@^2
Expand All @@ -25,16 +24,13 @@ install:
- npm config set cache C:\nc
- npm version
- npm install --no-optional

- npm run bower
# Post-install test scripts.
test_script:
# Output useful info for debugging.
- npm version
- npm run build
- cmd: npm run test
- cmd: npm run test:beta
- cmd: npm run test:canary
- cmd: npm run test:optional-features

# Don't actually build.
build: off
Expand Down
2 changes: 1 addition & 1 deletion bin/bower-ember-data-build
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ COMPONENTS_EMBER_REPO_SLUG="components/ember-data"
USER="rwjblue"

# This ensure that no directories within dist will be copied when script is run.
INCLUDED_FILES=`find dist -maxdepth 1 -type f`
INCLUDED_FILES=`find dist/globals -maxdepth 1 -type f`

CURRENT_BRANCH=$TRAVIS_BRANCH

Expand Down
21 changes: 13 additions & 8 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
{
"name": "ember-data",
"private": true,
"dependencies": {
"ember": "^2.0.0"
"ember": "components/ember#release",
"ember-cli-shims": "ember-cli/ember-cli-shims#0.0.3",
"ember-cli-test-loader": "ember-cli-test-loader#0.1.3",
"ember-load-initializers": "ember-cli/ember-load-initializers#0.1.5",
"ember-qunit": "0.4.9",
"ember-qunit-notifications": "0.0.7",
"ember-resolver": "~0.1.18",
"jquery": "^1.11.3",
"loader.js": "3.3.0",
"qunit": "~1.18.0"
},
"devDependencies": {
"qunit": "~1.17.0",
"jquery": "~1.10.x",
"loader.js": "~1.0.0",
"es5-shim": "~4.0.3"
"resolutions": {
"ember": "release"
}
}
}
14 changes: 0 additions & 14 deletions config/babel.js

This file was deleted.

Loading

0 comments on commit 1d5dfa1

Please sign in to comment.