-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(package): implement Angular Package format
This allows for better support of various lib consumers (including Ivy use case) BREAKING CHANGE: * `ng-recaptcha/forms` entry point has been removed. `RecaptchaFormsModule` and `RecaptchaValueAccessorDirective` should now be imported directly from `ng-recaptcha` * `tslib` is now a package dependency to ensure minimum possible bundle size. If your project doesn't yet have a dependency on `tslib`, run `npm install -D tslib@^1.9.0` (or `yarn add -D tslib@^1.9.0` if you use yarn)
- Loading branch information
Showing
12 changed files
with
2,178 additions
and
36 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 |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
.DS_Store | ||
|
||
# compiled sources | ||
/dist | ||
/*.js | ||
/*.d.ts | ||
/recaptcha/**/*.js | ||
|
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
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 |
---|---|---|
|
@@ -4,13 +4,14 @@ | |
"description": "Angular component for Google reCAPTCHA", | ||
"scripts": { | ||
"demo": "yarn demo:serve", | ||
"demo:clean": "cd demo-all && yarn clean:all", | ||
"demo:serve": "cd demo && yarn start", | ||
"demo:build": "cd demo && yarn build", | ||
"demo:publish": "yarn demo:publish-gh-pages", | ||
"demo:publish-gh-pages": "gh-pages -d demo/dist/ng-recaptcha", | ||
"pack-latest": "yarn clean && yarn transpile && mv \"$(npm pack)\" ng-recaptcha-latest.tgz", | ||
"transpile": "ngc -p ./tsconfig.json", | ||
"clean": "del-cli './{recaptcha/,index,forms}*.{js,d.ts,js.map,metadata.json}' 'ng-recaptcha-*.tgz'", | ||
"pack-latest": "yarn clean && yarn transpile && cd dist && mv \"$(npm pack)\" ../ng-recaptcha-latest.tgz", | ||
"transpile": "ng-packagr -p ./tsconfig.json", | ||
"clean": "del-cli 'ng-recaptcha-*.tgz' && yarn demo:clean", | ||
"changelog": "conventional-changelog --preset angular --infile CHANGELOG.md --same-file", | ||
"github-release": "conventional-github-releaser --preset angular", | ||
"prepare-release": "npm whoami && yarn build && npm version $1", | ||
|
@@ -35,9 +36,17 @@ | |
], | ||
"author": "Ruslan Arkhipau <[email protected]>", | ||
"license": "MIT", | ||
"ngPackage": { | ||
"lib": { | ||
"entryFile": "index.ts" | ||
} | ||
}, | ||
"optionalDependencies": { | ||
"@types/grecaptcha": "^2.0.33" | ||
}, | ||
"dependencies": { | ||
"tslib": "^1.9.0" | ||
}, | ||
"peerDependencies": { | ||
"@angular/core": "^6.0.0 || ^7.0.0 || ^8.0.0" | ||
}, | ||
|
@@ -56,6 +65,7 @@ | |
"del-cli": "^0.2.1", | ||
"gh-pages": "^0.12.0", | ||
"husky": "^0.13.3", | ||
"ng-packagr": "^5.2.0", | ||
"npm-run-all": "^4.1.2", | ||
"rxjs": "^6.1.0", | ||
"tslint": "~5.7.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
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
Oops, something went wrong.