Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(prepare-release): release 0.2.0
- updated to babel 6 - updated build steps - ran prepare-release - fixed linting errors
- Loading branch information
1 parent
b3bd4cc
commit 2dd4a6c
Showing
459 changed files
with
15,727 additions
and
8,582 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 |
---|---|---|
@@ -1,35 +1,61 @@ | ||
var path = require('path'); | ||
var paths = require('./paths'); | ||
|
||
module.exports = { | ||
filename: '', | ||
filenameRelative: '', | ||
modules: '', | ||
sourceMap: true, | ||
sourceMapName: '', | ||
sourceRoot: '', | ||
moduleRoot: path.resolve('src').replace(/\\/g, '/'), | ||
moduleIds: false, | ||
experimental: false, | ||
comments: false, | ||
compact: false, | ||
code:true, | ||
stage:2, | ||
loose: "all", | ||
optional: [ | ||
"es7.decorators", | ||
"es7.classProperties" | ||
], | ||
plugins: [ | ||
"babel-dts-generator" | ||
], | ||
extra: { | ||
dts: { | ||
exports.base = function() { | ||
return { | ||
filename: '', | ||
filenameRelative: '', | ||
sourceMap: true, | ||
sourceRoot: '', | ||
moduleRoot: path.resolve('src').replace(/\\/g, '/'), | ||
moduleIds: false, | ||
// experimental: false, | ||
comments: false, | ||
compact: false, | ||
code:true, | ||
presets: [ 'es2015-loose', 'stage-1' ], | ||
plugins: [ | ||
"syntax-flow", | ||
"transform-decorators-legacy", | ||
"transform-flow-strip-types" | ||
] | ||
}; | ||
}; | ||
|
||
exports.commonjs = function() { | ||
var options = exports.base(); | ||
options.plugins.push('transform-es2015-modules-commonjs'); | ||
return options; | ||
}; | ||
|
||
exports.amd = function() { | ||
var options = exports.base(); | ||
options.plugins.push('transform-es2015-modules-amd'); | ||
return options; | ||
}; | ||
|
||
exports.system = function() { | ||
var options = exports.base(); | ||
options.plugins.push('transform-es2015-modules-systemjs'); | ||
return options; | ||
}; | ||
|
||
exports.es2015 = function() { | ||
var options = exports.base(); | ||
options.presets = ['tage-1']; | ||
return options; | ||
}; | ||
|
||
exports.babelDtsGenerator = function() { | ||
var options = exports.base(); | ||
options.plugins.push([ | ||
'babel-dts-generator', { | ||
packageName: paths.packageName, | ||
typings: '', | ||
suppressModulePath: true, | ||
suppressComments: false, | ||
memberOutputFilter: /^_.*/ | ||
} | ||
} | ||
]); | ||
return options; | ||
}; |
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,23 +1,38 @@ | ||
var path = require('path'); | ||
var fs = require('fs'); | ||
|
||
var emitter = require('events'); | ||
emitter.defaultMaxListeners = 20; | ||
|
||
var appRoot = 'src/'; | ||
var pkg = JSON.parse(fs.readFileSync('./package.json', 'utf-8')); | ||
|
||
module.exports = { | ||
var paths = { | ||
root: appRoot, | ||
source: appRoot + '**/*.js', | ||
html: appRoot + '**/*.html', | ||
style: appRoot + '**/*.css', | ||
json: appRoot + '**/*.json', | ||
output: 'devbuild/', | ||
releaseOutput: 'dist/', | ||
sample: 'sample', | ||
sampleSrc: './sample/src/**/*.js', | ||
sampleStyle: './sample/styles/**/*.css', | ||
sampleHtml: './sample/src/**/*.html', | ||
|
||
|
||
doc:'./doc', | ||
tests: 'test/unit/**/*.js', | ||
unit: 'test/unit/**/*.js', | ||
e2eSpecsSrc: 'test/e2e/src/*.js', | ||
e2eSpecsDist: 'test/e2e/dist/', | ||
packageName: pkg.name, | ||
ignore: [], | ||
useTypeScriptForDTS: false, | ||
importsToAdd: [], | ||
sort: false | ||
}; | ||
|
||
|
||
paths.files = [ | ||
"src/**/*.js" | ||
]; | ||
|
||
module.exports = paths; |
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,9 @@ | ||
var tsconfig = require('../tsconfig.json'); | ||
var assign = Object.assign || require('object.assign'); | ||
|
||
module.exports = function(override) { | ||
return assign(tsconfig.compilerOptions, { | ||
"target": override && override.target || "es5", | ||
"typescript": require('typescript') | ||
}, override || {}); | ||
} |
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,29 +1,55 @@ | ||
define(['exports', '../common/common', 'ej.accordion.min'], function (exports, _commonCommon, _ejAccordionMin) { | ||
define(['exports', '../common/common', 'ej.accordion.min'], function (exports, _common) { | ||
'use strict'; | ||
|
||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.ejAccordion = undefined; | ||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } | ||
function _classCallCheck(instance, Constructor) { | ||
if (!(instance instanceof Constructor)) { | ||
throw new TypeError("Cannot call a class as a function"); | ||
} | ||
} | ||
|
||
function _possibleConstructorReturn(self, call) { | ||
if (!self) { | ||
throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | ||
} | ||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } | ||
return call && (typeof call === "object" || typeof call === "function") ? call : self; | ||
} | ||
|
||
function _inherits(subClass, superClass) { | ||
if (typeof superClass !== "function" && superClass !== null) { | ||
throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); | ||
} | ||
|
||
var ejAccordion = (function (_WidgetBase) { | ||
subClass.prototype = Object.create(superClass && superClass.prototype, { | ||
constructor: { | ||
value: subClass, | ||
enumerable: false, | ||
writable: true, | ||
configurable: true | ||
} | ||
}); | ||
if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; | ||
} | ||
|
||
var _dec, _dec2, _dec3, _dec4, _class; | ||
|
||
var ejAccordion = exports.ejAccordion = (_dec = (0, _common.customElement)(_common.constants.elementPrefix + 'accordion'), _dec2 = (0, _common.inlineView)('' + _common.constants.aureliaTemplateString), _dec3 = (0, _common.generateBindables)('ejAccordion', ['ajaxSettings', 'allowKeyboardNavigation', 'collapseSpeed', 'collapsible', 'cssClass', 'customIcon', 'disabledItems', 'enableAnimation', 'enabled', 'enabledItems', 'enableMultipleOpen', 'enablePersistence', 'enableRTL', 'events', 'expandSpeed', 'headerSize', 'height', 'heightAdjustMode', 'htmlAttributes', 'selectedItemIndex', 'selectedItems', 'showCloseButton', 'showRoundedCorner', 'width'], [], { 'enableRTL': 'enableRtl' }), _dec4 = (0, _common.inject)(Element), _dec(_class = _dec2(_class = _dec3(_class = _dec4(_class = function (_WidgetBase) { | ||
_inherits(ejAccordion, _WidgetBase); | ||
|
||
function ejAccordion(element) { | ||
_classCallCheck(this, _ejAccordion); | ||
_classCallCheck(this, ejAccordion); | ||
|
||
_WidgetBase.call(this); | ||
this.element = element; | ||
var _this = _possibleConstructorReturn(this, _WidgetBase.call(this)); | ||
|
||
_this.element = element; | ||
return _this; | ||
} | ||
|
||
var _ejAccordion = ejAccordion; | ||
ejAccordion = _commonCommon.inject(Element)(ejAccordion) || ejAccordion; | ||
ejAccordion = _commonCommon.generateBindables('ejAccordion', ['ajaxSettings', 'allowKeyboardNavigation', 'collapseSpeed', 'collapsible', 'cssClass', 'customIcon', 'disabledItems', 'enableAnimation', 'enabled', 'enabledItems', 'enableMultipleOpen', 'enablePersistence', 'enableRTL', 'events', 'expandSpeed', 'headerSize', 'height', 'heightAdjustMode', 'htmlAttributes', 'selectedItemIndex', 'selectedItems', 'showCloseButton', 'showRoundedCorner', 'width'], [], { 'enableRTL': 'enableRtl' })(ejAccordion) || ejAccordion; | ||
ejAccordion = _commonCommon.inlineView('' + _commonCommon.constants.aureliaTemplateString)(ejAccordion) || ejAccordion; | ||
ejAccordion = _commonCommon.customElement(_commonCommon.constants.elementPrefix + 'accordion')(ejAccordion) || ejAccordion; | ||
return ejAccordion; | ||
})(_commonCommon.WidgetBase); | ||
|
||
exports.ejAccordion = ejAccordion; | ||
}(_common.WidgetBase)) || _class) || _class) || _class) || _class); | ||
}); |
Oops, something went wrong.