Skip to content
Permalink
Browse files

Change project to use validation project pattern

  • Loading branch information...
DrSammyD committed Jul 2, 2019
1 parent 587de79 commit e5e277dfa74d99ee9952f0b731eae4ec30e628ea
Showing with 7,107 additions and 14,206 deletions.
  1. +45 −0 .circleci/config.yml
  2. +7 −2 .editorconfig
  3. +0 −8 .eslintrc.json
  4. +7 −1 .gitignore
  5. +15 −4 .npmignore
  6. +5 −0 .vscode/extensions.json
  7. +7 −0 .vscode/settings.json
  8. +27 −37 README.md
  9. +1 −1 bower.json
  10. +0 −13 build/args.js
  11. +0 −65 build/babel-options.js
  12. +0 −32 build/paths.js
  13. +0 −130 build/tasks/build.js
  14. +0 −9 build/tasks/clean.js
  15. +0 −10 build/tasks/dev.js
  16. +0 −46 build/tasks/doc.js
  17. +0 −10 build/tasks/lint.js
  18. +0 −33 build/tasks/prepare-release.js
  19. +0 −40 build/tasks/test.js
  20. +0 −9 build/typescript-options.js
  21. +0 −83 config.js
  22. +0 −753 dist/amd/aurelia-dependency-injection.js
  23. +0 −16 dist/amd/index.js
  24. +0 −511 dist/aurelia-dependency-injection.d.ts
  25. +0 −1,138 dist/aurelia-dependency-injection.js
  26. +0 −756 dist/commonjs/aurelia-dependency-injection.js
  27. +0 −17 dist/commonjs/index.js
  28. +0 −647 dist/es2015/aurelia-dependency-injection.js
  29. +0 −1 dist/es2015/index.js
  30. +0 −740 dist/native-modules/aurelia-dependency-injection.js
  31. +0 −1 dist/native-modules/index.js
  32. +0 −811 dist/system/aurelia-dependency-injection.js
  33. +0 −18 dist/system/index.js
  34. +18 −0 doc/CHANGELOG.md
  35. +6 −1 doc/api.json
  36. +52 −0 doc/shape-defs.js
  37. +24 −0 doc/shape-doc.js
  38. +0 −1 gulpfile.js
  39. +15 −39 karma.conf.js
  40. +3,302 −5,234 package-lock.json
  41. +52 −45 package.json
  42. +112 −0 rollup.config.js
  43. +6 −0 src/aurelia-dependency-injection.ts
  44. +0 −484 src/container.js
  45. +585 −0 src/container.ts
  46. +0 −44 src/injection.js
  47. +60 −0 src/injection.ts
  48. +19 −0 src/internal.d.ts
  49. +0 −97 src/invokers.js
  50. +126 −0 src/invokers.ts
  51. +0 −105 src/registrations.js
  52. +147 −0 src/registrations.ts
  53. +0 −420 src/resolvers.js
  54. +574 −0 src/resolvers.ts
  55. +44 −0 src/types.d.ts
  56. +0 −252 test/container.spec.js
  57. +273 −0 test/container.spec.ts
  58. +0 −593 test/injection.spec.js
  59. +598 −0 test/injection.spec.ts
  60. +7 −0 test/jasmine.d.ts
  61. +50 −0 test/main.ts
  62. +11 −11 test/{metadata.spec.js → metadata.spec.ts}
  63. +4 −0 test/reflect.d.ts
  64. +0 −137 test/registration.spec.js
  65. +142 −0 test/registration.spec.ts
  66. +0 −786 test/resolver.spec.js
  67. +701 −0 test/resolver.spec.ts
  68. 0 test/{setup.js → setup.ts}
  69. +27 −0 tsconfig.build.json
  70. +17 −15 tsconfig.json
  71. +21 −0 tslint.json
@@ -0,0 +1,45 @@
version: 2.1

map-1: &filter_only_develop
filters:
branches:
only: develop

map-2: &filter_only_tag
filters:
branches:
ignore: /.*/
tags:
only: /^v?[0-9]+(\.[0-9]+)*$/

orbs:
v1: aurelia/v1@volatile

workflows:
main:
jobs:
- v1/build_test
- v1/build_merge:
<<: *filter_only_develop
requires:
- v1/build_test
- v1/npm_publish:
<<: *filter_only_tag
name: npm_publish_dry
args: "--dry-run"
- request_publish_latest:
<<: *filter_only_tag
type: approval
requires:
- npm_publish_dry
- v1/npm_publish:
<<: *filter_only_tag
name: npm_publish
context: Aurelia
requires:
- request_publish_latest
- v1/merge_back:
<<: *filter_only_tag
requires:
- npm_publish

@@ -5,10 +5,15 @@ root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
end_of_line = crlf
insert_final_newline = true

# 2 space indentation
[**.*]
indent_style = space
indent_size = 2
indent_size = 2

[node_modules/**/*,dist/**/*]
insert_final_newline = false
indent_style = none
indent_size = none

This file was deleted.

@@ -3,4 +3,10 @@ jspm_packages
bower_components
.idea
.DS_STORE
build/reports
*.swp
npm-debug.log*
.test
.rollupcache
dist/doc-temp
dist/test
dist
@@ -1,4 +1,15 @@
jspm_packages
bower_components
.idea
build/reports
.vscode
doc
src
test
.editorconfig
.gitignore
.npmignore
circle.yml
CONTRIBUTING.md
ISSUE_TEMPLATE.md
karma.conf.js
rollup.config.js
tsconfig.build.json
tsconfig.json
tslint.json
@@ -0,0 +1,5 @@
{
"recommendations": [
"eg2.tslint"
]
}
@@ -0,0 +1,7 @@
{
"typescript.tsdk": "node_modules/typescript/lib",
"tslint.nodePath": "./node_modules/tslint/bin/tslint",
"editor.formatOnSave": false,
"json.format.enable": false,
"typescript.format.enable": true
}
@@ -17,52 +17,42 @@ You can read documentation on dependency injection [here](https://aurelia.io/doc

This library can be used in the **browser** as well as on the **server**.

## Building The Code
## Reporting Issues

To build the code, follow these steps.
Please refer to the [issue template](ISSUE_TEMPLATE.md). Accompany any bug report with a demo of the issue using a [runnable Gist](https://gist.run/?id=381fdb1a4b0865a4c25026187db865ce).

1. Ensure that [NodeJS](http://nodejs.org/) is installed. This provides the platform on which the build tooling runs.
2. From the project folder, execute the following command:
## Building

```shell
npm install
```
3. Ensure that [Gulp](http://gulpjs.com/) is installed. If you need to install it, use the following command:
```shell
npm run build
```

```shell
npm install -g gulp
```
4. To build the code, you can now run:
## Tests

```shell
gulp build
```
5. You will find the compiled code in the `dist` folder, available in three module formats: AMD, CommonJS and ES6.
```shell
npm run test
```

6. See `gulpfile.js` for other tasks related to generating the docs and linting.
## Developing

## Running The Tests
Run the tests in watch mode:

To run the unit tests, first ensure that you have followed the steps above in order to install all dependencies and successfully build the library. Once you have done that, proceed with these additional steps:
```shell
npm run develop
```

1. Ensure that the [Karma](http://karma-runner.github.io/) CLI is installed. If you need to install it, use the following command:
## Publishing

```shell
npm install -g karma-cli
```
2. Ensure that [jspm](http://jspm.io/) is installed. If you need to install it, use the following commnand:
1. Bump the version

```shell
npm run bump-version [<newversion> | major | minor | patch]
```

```shell
npm install -g jspm
```
3. Install the client-side dependencies with jspm:
2. Prepare the release (run tests, run build, docs, release notes)

```shell
npm run prepare-release
```

```shell
jspm install
```

4. You can now run the tests with this command:

```shell
karma start
```
3. Commit, tag, npm publish (not automated)
@@ -1,6 +1,6 @@
{
"name": "aurelia-dependency-injection",
"version": "1.4.2",
"version": "1.4.4",
"description": "A lightweight, extensible dependency injection container for JavaScript.",
"keywords": [
"aurelia",

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit e5e277d

Please sign in to comment.
You can’t perform that action at this time.