This repository has been 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.
Merge pull request #204 from doktordirk/dep-update
Dep update aurelia-rc1
- Loading branch information
Showing
53 changed files
with
8,197 additions
and
7,947 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,6 @@ | ||
{ | ||
"extends": "./node_modules/aurelia-tools/.eslintrc.json", | ||
"rules": { | ||
"no-new-func": 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 |
---|---|---|
|
@@ -3,4 +3,4 @@ jspm_packages | |
bower_components | ||
.idea | ||
.DS_STORE | ||
build/reports | ||
build/reports |
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 |
---|---|---|
|
@@ -28,40 +28,73 @@ We've simplified installation and usage! This plugin should now be installed usi | |
|
||
## Installation | ||
|
||
### Jspm/SytemJs | ||
### Aureli-Cli | ||
|
||
Run `jspm i aurelia-authentication` from your project root. | ||
Run `npm i aurelia-authentication --save` from your project root. | ||
|
||
If install breaks your application, try resolving jspm forks: | ||
Add `aurelia-authentication` to the `build/bundles/dependencies` section of `aurelia-project/aurelia.json`. | ||
|
||
``` | ||
$ jspm inspect --forks | ||
$ jspm resolve --only registry:package-name@version | ||
Aurelia-authentication has submodules (currently only the authFilter). You need to add it to the aurelia build resources in your package.json. | ||
|
||
```js | ||
"aurelia": { | ||
"build": { | ||
"resources": ["aurelia-authentication/authFilterValueConverter"] | ||
} | ||
}, | ||
``` | ||
|
||
E.g. | ||
### Jspm | ||
|
||
Run `jspm i aurelia-authentication` | ||
|
||
If the installation results in having forks, try resolving them by running: | ||
|
||
```sh | ||
jspm inspect --forks | ||
jspm resolve --only registry:package-name@version | ||
``` | ||
$ jspm inspect --forks | ||
Installed Forks | ||
|
||
npm:aurelia-dependency-injection 1.0.0-beta.1.2.3 1.0.0-beta.2.1.0 | ||
E.g. | ||
|
||
```sh | ||
jspm inspect --forks | ||
> Installed Forks | ||
> npm:aurelia-dependency-injection 1.0.0-beta.1.2.3 1.0.0-beta.2.1.0 | ||
|
||
$ jspm resolve --only npm:[email protected] | ||
jspm resolve --only npm:[email protected] | ||
``` | ||
|
||
### Webpack | ||
|
||
Run `npm i aurelia-authentication` from your project root. | ||
Run `npm i aurelia-authentication --save` from your project root. | ||
|
||
Add `'aurelia-authentication'` in the `coreBundles.aurelia section` of your `webpack.config.js`. | ||
|
||
Aurelia-authentication has submodules (currently only the authFilter). So you need to add it to the AureliaWebpackPlugin includeSubModules list. | ||
Aurelia-authentication has submodules (currently only the authFilter). You need to add it to the aurelia build resources in your package.json. | ||
|
||
```js | ||
AureliaWebpackPlugin({ | ||
includeSubModules: [ | ||
{ moduleId: 'aurelia-authentication' } | ||
] | ||
}), | ||
"aurelia": { | ||
"build": { | ||
"resources": ["aurelia-authentication/authFilterValueConverter"] | ||
} | ||
}, | ||
``` | ||
|
||
### Typescript | ||
|
||
Add to your `typings.json` | ||
|
||
```js | ||
"aurelia-authentication": "github:spoonx/aurelia-authentication", | ||
``` | ||
|
||
and run `typings i` | ||
|
||
or run | ||
|
||
```sh | ||
typings i github:spoonx/aurelia-authentication | ||
``` | ||
|
||
## Documentation | ||
|
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,14 +1,13 @@ | ||
var yargs = require('yargs'); | ||
|
||
var argv = yargs.argv; | ||
var validBumpTypes = 'major|minor|patch|prerelease'.split('|'); | ||
var bump = (argv.bump || 'patch').toLowerCase(); | ||
var argv = yargs.argv, | ||
validBumpTypes = "major|minor|patch|prerelease".split("|"), | ||
bump = (argv.bump || 'patch').toLowerCase(); | ||
|
||
if (validBumpTypes.indexOf(bump) === -1) { | ||
if(validBumpTypes.indexOf(bump) === -1) { | ||
throw new Error('Unrecognized bump "' + bump + '".'); | ||
} | ||
|
||
module.exports = { | ||
bump: bump, | ||
depth: parseInt(argv.depth || '0') | ||
bump: bump | ||
}; |
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 |
---|---|---|
@@ -1,24 +1,35 @@ | ||
var path = require('path'); | ||
var fs = require('fs'); | ||
|
||
// hide warning // | ||
var emitter = require('events'); | ||
emitter.defaultMaxListeners = 20; | ||
|
||
var appRoot = 'src/'; | ||
var pkg = JSON.parse(fs.readFileSync('./package.json', 'utf-8')); | ||
// your main file which exports only configure and other modules. | ||
// usually packageName or 'index.js' | ||
var entryFileName = pkg.name + '.js'; | ||
|
||
module.exports = { | ||
var paths = { | ||
root: appRoot, | ||
source: appRoot + '**/*.js', | ||
tsSource: [ | ||
appRoot + '**/*.js', // list files to parse for d.ts | ||
'!' + appRoot + entryFileName // exclude entry file | ||
], | ||
resources: '*ValueConverter.js', // relative to root, resources can not that easily be bundled into a single file (due to naming conventions) | ||
resources: '*ValueConverter.*', // relative to root, resources can not that easily be bundled into a single file (due to naming conventions) | ||
html: appRoot + '**/*.html', | ||
style: 'styles/**/*.css', | ||
output: 'dist/', | ||
doc: './doc', | ||
test: './test/**/*.js', | ||
packageName: pkg.name | ||
doc:'./doc', | ||
test: 'test/**/*.js', | ||
exampleSource: 'doc/example/', | ||
exampleOutput: 'doc/example-dist/', | ||
packageName: pkg.name, | ||
ignore: [], | ||
useTypeScriptForDTS: false, | ||
importsToAdd: [], | ||
importsToIgnoreForDts: ['extend', 'jwt-decode'], | ||
sort: false | ||
}; | ||
|
||
paths.files = [ | ||
paths.source, | ||
'!' + paths.root + paths.resources | ||
]; | ||
|
||
module.exports = paths; |
Oops, something went wrong.