This repository was archived by the owner on Nov 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(authUtils): make authUtils a named export, export authUtils from…
… index -- breaking change! -- * update to babel 6 * maybe jspm17 ready * add lint-md task * remove unused doc task * renamed index.js to aurelia-authentication * make d.ts defs as aurelia does * depenency update Breaking change
- Loading branch information
1 parent
55895dd
commit 7de0aa2
Showing
25 changed files
with
349 additions
and
419 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,24 @@ | ||
{ | ||
"output": true, | ||
"plugins": { | ||
"lint": { | ||
"maximum-line-length": false, | ||
"heading-style": "atx", | ||
"no-duplicate-headings": false, | ||
"no-undefined-references": false, | ||
"no-shortcut-reference-link": false, | ||
"no-heading-punctuation": ".,;:!", | ||
"list-item-indent": false | ||
} | ||
}, | ||
"settings": { | ||
"gfm": true, | ||
"bullet": "*", | ||
"closeAtx": false, | ||
"fences": true, | ||
"listItemIndent": "1", | ||
"rule": "-", | ||
"ruleRepetition": 10, | ||
"ruleSpaces": 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"rules": { | ||
"no-var": 0, | ||
"no-console": 0 | ||
} | ||
} |
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,11 +1,60 @@ | ||
module.exports = { | ||
modules: 'system', | ||
moduleIds: false, | ||
comments: false, | ||
compact: false, | ||
stage:2, | ||
optional: [ | ||
"es7.decorators", | ||
"es7.classProperties" | ||
] | ||
var path = require('path'); | ||
var paths = require('./paths'); | ||
|
||
exports.base = function() { | ||
return { | ||
filename: '', | ||
filenameRelative: '', | ||
sourceMap: true, | ||
sourceRoot: '', | ||
moduleRoot: path.resolve('src').replace(/\\/g, '/'), | ||
moduleIds: false, | ||
comments: false, | ||
compact: false, | ||
code:true, | ||
presets: [ 'es2015-loose', 'stage-1'], | ||
plugins: [ | ||
'syntax-flow', | ||
'transform-decorators-legacy', | ||
'transform-flow-strip-types' | ||
] | ||
}; | ||
} | ||
|
||
exports['plugin-dts'] = ['babel-dts-generator', { | ||
packageName: paths.packageName, | ||
typings: '', | ||
suppressModulePath: true, | ||
suppressComments: false, | ||
memberOutputFilter: /^_.*/ | ||
}]; | ||
|
||
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 = ['stage-1'] | ||
return options; | ||
}; | ||
|
||
exports.dts = function() { | ||
var options = exports.base(); | ||
options.plugins.push(exports['plugin-dts']); | ||
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
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 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,10 +1,26 @@ | ||
var gulp = require('gulp'); | ||
var paths = require('../paths'); | ||
var gulp = require('gulp'); | ||
var paths = require('../paths'); | ||
var eslint = require('gulp-eslint'); | ||
var mdlint = require('gulp-remark'); | ||
var squeezeParagraphs = require('remark-squeeze-paragraphs'); | ||
var remarkNormalizeHeadings = require('remark-normalize-headings'); | ||
var remarkValidateLinks = require('remark-validate-links'); | ||
var remarkToc = require('remark-toc'); | ||
|
||
|
||
gulp.task('lint', function() { | ||
return gulp.src(paths.source) | ||
.pipe(eslint()) | ||
.pipe(eslint.format()) | ||
.pipe(eslint.failOnError()); | ||
}); | ||
|
||
gulp.task('lint-md', function() { | ||
gulp.src(['*.md', paths.doc + '/*.md', '!' + paths.doc + '/CHANGELOG.md'], {base: './'}) | ||
.pipe(mdlint() | ||
.use(squeezeParagraphs) | ||
.use(remarkNormalizeHeadings) | ||
.use(remarkValidateLinks) | ||
.use(remarkToc, {tight: true, maxDepth: 2}) | ||
).pipe(gulp.dest('./')); | ||
}); |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.