Skip to content

Commit 6cba219

Browse files
ColinMorris83NepipenkoIgor
authored andcommitted
feat: convert to Angular CLI project structure for library and app (JsDaddy#588)
* feat: convert to Angular CLI project structure for library and app * feat: update to npm 6.9.0 and use ci script for Travis * feat: added helper scripts for npm pack and publish * docs: update * feat: copy the root readme and license to dist folder * docs: update * chore: doc updates * test: updates * chore: use prettier defaults for tab and semi colon * chore: run prettier on all ts files chore: a * fix: use special characters that user has specified JsDaddy#580 * chore: up version * chore: helper scripts for version updates and releasing * chore: up version and changelog * style: add bit of spacing and separate sections on the demo app * chore: manual merge of develop
1 parent f9f6a49 commit 6cba219

File tree

94 files changed

+6232
-4515
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+6232
-4515
lines changed

.angulardoc.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

.commitlintrc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": [
3+
"@commitlint/config-conventional"
4+
]
5+
}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,5 @@ Thumbs.db
3939
.ng_pkg_build/
4040
dist.tgz
4141
yarn.lock
42+
43+
test-reports/

.markdownlint.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"default": true,
3+
"MD013": false,
4+
"MD033": false,
5+
"MD041": false,
6+
"MD014": false,
7+
"MD024": false
8+
}

.npmignore

Lines changed: 0 additions & 12 deletions
This file was deleted.

.prettierrc

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
2-
"singleQuote": true,
3-
"tabWidth": 4,
4-
"semi": true,
5-
"trailingComma": "es5",
6-
"printWidth": 120
2+
"singleQuote": true,
3+
"trailingComma": "es5",
4+
"printWidth": 120
75
}

.travis.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,8 @@ git:
1717
depth: 3
1818

1919
before_install:
20-
- npm install -g npm@~5.3.0
21-
22-
install:
23-
- npm install
20+
- npm install -g npm@~6.9.0
2421

2522
script:
2623
- export CHROME_BIN=chromium-browser
27-
- npm run lint
28-
- npm run test
24+
- npm run ci

CHANGELOG.md

Lines changed: 35 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,73 @@
1+
<a name="8.1.4">
2+
3+
# [8.1.4 bugfix](2019-10-23)
4+
5+
Fix for #580 - honour the special characters that user may have specified, and prevent runtime exception occuring
6+
7+
Project folder structure converted over to follow Angular CLI way of libraries
8+
9+
<a name="8.1.3">
10+
11+
# [8.1.3 bugfix](2019-10-23)
12+
13+
Fix for #590 - Problem if prefix last char is not a number
14+
15+
<a name="8.1.2">
16+
17+
# [8.1.2 placeholder customisation](2019-10-11)
18+
19+
Placeholder can now be customised
20+
121
<a name="8.1.1">
222

3-
# [8.1.1 bugfix](2019-10-010)
23+
# [8.1.1 bugfix](2019-10-10)
24+
425
bugs fix
526

627
<a name="8.1.0">
728

829
# [8.1.0 separator update](2019-11-09)
9-
update separator
10-
<a name="8.1.0">
1130

31+
update separator
1232

1333
<a name="8.0.9">
1434

15-
# [8.0.7 bugfix](2019-10-07)
35+
# [8.0.8 bugfix](2019-10-07)
36+
1637
bugs fix [refs: #554, #580, #582]
1738
<a name="8.0.8">
1839

1940
# [8.0.7 bugfix](2019-10-04)
41+
2042
bugs fix [refs: #579, #576, #561]
2143
<a name="8.0.7">
2244

2345
# [8.0.7 update date and time](2019-10-02)
46+
2447
Update date and time masks [refs: #571, #567, #572, #564, #558, #573]
2548

2649
<a name="8.0.4">
2750

2851
# [8.0.4 bugfix](2019-09-09)
52+
2953
minor bug fixes
3054

3155
<a name="8.0.3">
3256

3357
# [8.0.3 cursor](2019-09-04)
34-
minor bug fixes
3558

59+
minor bug fixes
3660

3761
<a name="7.9.9">
3862

3963
# [7.9.9 cursor](2019-05-8)
64+
4065
Issues fix
4166

4267
<a name="7.9.2">
4368

4469
# [7.9.1 cursor](2019-04-15)
70+
4571
Bugs fix
4672

4773
<a name="7.9.1">
@@ -201,25 +227,25 @@ You can pass into mask pattern with brackets
201227

202228
<a name="6.4.14"></a>
203229

204-
# [6.4.14 fixed '\*' pattern in maskExpression ](2018-10-05)
230+
# [6.4.14 fixed '\*' pattern in maskExpression](2018-10-05)
205231

206232
Fixed pattern '\*'
207233

208234
<a name="6.4.13"></a>
209235

210-
# [6.4.13 selection of input value and deletion of it is fixed ](2018-10-05)
236+
# [6.4.13 selection of input value and deletion of it is fixed](2018-10-05)
211237

212238
You can select and delete value.
213239

214240
<a name="6.4.12"></a>
215241

216-
# [6.4.12 pipe with mask expression and custom Pattern ](2018-04-10)
242+
# [6.4.12 pipe with mask expression and custom Pattern](2018-04-10)
217243

218244
You can pass array of expression and custom Pattern to pipe
219245

220246
<a name="6.3.11"></a>
221247

222-
# [6.3.11 fixed mask visable ](2018-03-10)
248+
# [6.3.11 fixed mask visable](2018-03-10)
223249

224250
Fixed when page is loaded the mask is visible
225251

CONTRIBUTING.md

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,25 @@
1-
Contributing
2-
============
1+
# Contributing
32

4-
5-
Issues
6-
======
3+
## Issues
74

85
When submitting an issue, please include a reproducible case that we can actually run. Protractor has a test Angular application available at `http://www.protractortest.org/testapp` which you can use for the reproducible test case. If there's an error, please include the error text.
96

107
Please format code and markup in your issue using [github markdown](https://help.github.com/articles/github-flavored-markdown).
118

9+
## Contributing to Source Code (Pull Requests)
1210

13-
Contributing to Source Code (Pull Requests)
14-
===========================================
15-
16-
* If your PR changes any behavior or fixes an issue, it should have an associated test.
17-
* New features should be general and as simple as possible.
18-
* Breaking changes should be avoided if possible.
19-
* All pull requests require review. No PR will be merged without a comment from a team member stating LGTM (Looks good to me).
11+
* If your PR changes any behavior or fixes an issue, it should have an associated test.
12+
* New features should be general and as simple as possible.
13+
* Breaking changes should be avoided if possible.
14+
* All pull requests require review. No PR will be merged without a comment from a team member stating LGTM (Looks good to me).
2015

21-
Protractor specific rules
22-
-------------------------
16+
## Protractor specific rules
2317

24-
* JavaScript style should generally follow the [Google JS style guide](https://google.github.io/styleguide/javascriptguide.xml).
25-
* Document public methods with jsdoc.
26-
* Be consistent with the code around you!
18+
* JavaScript style should generally follow the [Google JS style guide](https://google.github.io/styleguide/javascriptguide.xml).
19+
* Document public methods with jsdoc.
20+
* Be consistent with the code around you!
2721

28-
Commit Messages
29-
---------------
22+
## Commit Messages
3023

3124
Please write meaningful commit messages - they are used to generate the changelog, so the commit message should tell a user everything they need to know about a commit. Protractor follows AngularJS's [commit message format](https://docs.google.com/a/google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/edit#heading=h.z8a3t6ehl060).
3225

@@ -39,8 +32,7 @@ In summary, this style is
3932
Where `<type>` is one of [feat, fix, docs, refactor, test, chore, deps] and
4033
`<scope>` is a quick descriptor of the location of the change, such as cli, clientSideScripts, element.
4134

42-
Testing your changes
43-
--------------------
35+
## Testing your changes
4436

4537
When you submit a PR, tests will also be run on the Continuous Integration environment
4638
through Travis. If your tests fail on Travis, take a look at the logs.

0 commit comments

Comments
 (0)