@cycjimmy/hello-github-package-npm 6.1.0 → 6.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.babelrc ADDED
@@ -0,0 +1,8 @@
1
+ {
2
+ "presets": [
3
+ [
4
+ "@babel/preset-env"
5
+ ]
6
+ ],
7
+ "plugins": []
8
+ }
@@ -0,0 +1,12 @@
1
+ [production staging]
2
+ ie >= 10
3
+ ie_mob >= 10
4
+ ff >= 30
5
+ chrome >= 40
6
+ safari >= 8
7
+ opera >= 23
8
+ ios >= 8
9
+ android >= 4.4
10
+
11
+ [development]
12
+ last 2 versions
package/.editorconfig ADDED
@@ -0,0 +1,12 @@
1
+ root = true
2
+
3
+ [*]
4
+ charset = utf-8
5
+ indent_style = space
6
+ indent_size = 2
7
+ end_of_line = lf
8
+ insert_final_newline = true
9
+ trim_trailing_whitespace = true
10
+
11
+ [*.md]
12
+ trim_trailing_whitespace = false
package/.eslintignore ADDED
@@ -0,0 +1,3 @@
1
+ dist/*
2
+ coverage/*
3
+ package/*
package/.eslintrc ADDED
@@ -0,0 +1,9 @@
1
+ {
2
+ "root": true,
3
+ "extends": "airbnb-base",
4
+ "env": {
5
+ "browser": true,
6
+ "node": true
7
+ },
8
+ "rules": {}
9
+ }
package/.gitattributes ADDED
@@ -0,0 +1,2 @@
1
+ # Auto detect text files and perform LF normalization
2
+ * text=auto
@@ -0,0 +1,41 @@
1
+ ---
2
+ name: Bug report
3
+ about: Create a report to help us improve
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Describe the bug**
11
+ A clear and concise description of what the bug is.
12
+
13
+ **To Reproduce**
14
+ Steps to reproduce the behavior:
15
+ 1. Go to '...'
16
+ 2. Click on '....'
17
+ 3. Scroll down to '....'
18
+ 4. See error
19
+
20
+ **Expected behavior**
21
+ A clear and concise description of what you expected to happen.
22
+
23
+ **Screenshots**
24
+ If applicable, add screenshots to help explain your problem.
25
+
26
+ **Desktop (please complete the following information):**
27
+ - OS: [e.g. iOS]
28
+ - Browser [e.g. chrome, safari]
29
+ - Version [e.g. 22]
30
+
31
+ **Smartphone (please complete the following information):**
32
+ - Device: [e.g. iPhone6]
33
+ - OS: [e.g. iOS8.1]
34
+ - Browser [e.g. stock browser, safari]
35
+ - Version [e.g. 22]
36
+
37
+ **Online demo**
38
+ If applicable, provide an online demo to help explain your problem.
39
+
40
+ **Additional context**
41
+ Add any other context about the problem here.
@@ -0,0 +1,20 @@
1
+ ---
2
+ name: Feature request
3
+ about: Suggest an idea for this project
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Is your feature request related to a problem? Please describe.**
11
+ A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12
+
13
+ **Describe the solution you'd like**
14
+ A clear and concise description of what you want to happen.
15
+
16
+ **Describe alternatives you've considered**
17
+ A clear and concise description of any alternative solutions or features you've considered.
18
+
19
+ **Additional context**
20
+ Add any other context or screenshots about the feature request here.
@@ -0,0 +1,17 @@
1
+ **Type of Change**
2
+ <!-- What type of change does your code introduce? -->
3
+ - [ ] feat: A new feature
4
+ - [ ] fix: A bug fix
5
+ - [ ] docs: Documentation only changes
6
+ - [ ] style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
7
+ - [ ] refactor: A code change that neither fixes a bug nor adds a feature
8
+ - [ ] perf: A code change that improves performance
9
+ - [ ] test: Adding missing or correcting existing tests
10
+ - [ ] chore: Changes to the build process or auxiliary tools and libraries such as documentation generation
11
+
12
+ **Resolves**
13
+ - Fixes #[Add issue number here.]
14
+
15
+ **Describe Changes**
16
+ <!-- Describe your changes in detail, if applicable. -->
17
+ _Describe what this Pull Request does_
@@ -0,0 +1,11 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: github-actions
4
+ directory: /
5
+ schedule:
6
+ interval: daily
7
+
8
+ - package-ecosystem: npm
9
+ directory: /
10
+ schedule:
11
+ interval: daily
@@ -0,0 +1,35 @@
1
+ name: Coveralls
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ - main
8
+
9
+ pull_request:
10
+ branches:
11
+ - master
12
+ - main
13
+
14
+ jobs:
15
+ coveralls:
16
+ name: coveralls
17
+ runs-on: ubuntu-latest
18
+ steps:
19
+ - name: Checkout
20
+ uses: actions/checkout@v3
21
+
22
+ - name: Setup Node.js
23
+ uses: actions/setup-node@v3
24
+ with:
25
+ node-version: '16'
26
+
27
+ - name: Install dependencies and make test-coverage
28
+ run: |
29
+ npm ci
30
+ npm run coveralls
31
+
32
+ - name: Coveralls GitHub Action
33
+ uses: coverallsapp/github-action@1.1.3
34
+ with:
35
+ github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,30 @@
1
+ name: Deploy To gh-pages
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ - main
8
+ jobs:
9
+ deploy:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Checkout
13
+ uses: actions/checkout@v3
14
+
15
+ - name: Setup Node.js
16
+ uses: actions/setup-node@v3
17
+ with:
18
+ node-version: '16'
19
+
20
+ - name: Pre-built
21
+ run: |
22
+ npm ci
23
+ npm run build:deployment
24
+
25
+ - name: Deploy to GitHub Pages
26
+ uses: JamesIves/github-pages-deploy-action@releases/v4
27
+ with:
28
+ branch: gh-pages
29
+ folder: .publish
30
+ token: ${{ secrets.ACCESS_TOKEN }}
@@ -0,0 +1,59 @@
1
+ name: Test CI
2
+ on:
3
+ push:
4
+
5
+ pull_request:
6
+ branches:
7
+ - master
8
+ - main
9
+ - next
10
+ - next-major
11
+ - alpha
12
+ - beta
13
+
14
+ schedule:
15
+ - cron: 0 2 * * 0
16
+
17
+ jobs:
18
+ test:
19
+ runs-on: ${{ matrix.os }}
20
+ strategy:
21
+ matrix:
22
+ node: [ '16' ]
23
+ os: [ubuntu-latest, windows-latest, macOS-latest]
24
+
25
+ steps:
26
+ - uses: actions/checkout@v3
27
+ - uses: actions/setup-node@v3
28
+ with:
29
+ node-version: ${{ matrix.node }}
30
+ - run: npm ci
31
+ - run: npm test
32
+ - run: npm run package
33
+
34
+ - name: Semantic Release Test
35
+ uses: cycjimmy/semantic-release-action@v3
36
+ with:
37
+ dry_run: true
38
+ branches: |
39
+ [
40
+ 'master',
41
+ 'main',
42
+ 'next',
43
+ 'next-major',
44
+ {
45
+ name: 'beta',
46
+ prerelease: true
47
+ },
48
+ {
49
+ name: 'alpha',
50
+ prerelease: true
51
+ }
52
+ ]
53
+ extra_plugins: |
54
+ @semantic-release/git
55
+ @semantic-release/changelog
56
+ @semantic-release/exec
57
+ env:
58
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -0,0 +1,93 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ - main
8
+ - next
9
+ - next-major
10
+ - alpha
11
+ - beta
12
+
13
+ jobs:
14
+ test:
15
+ name: test
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - name: Checkout
19
+ uses: actions/checkout@v3
20
+
21
+ - name: Setup Node.js
22
+ uses: actions/setup-node@v3
23
+ with:
24
+ node-version: '16'
25
+
26
+ - name: Install dependencies
27
+ run: npm ci
28
+
29
+ - run: npm run test
30
+ - run: npm run package
31
+
32
+ release:
33
+ name: release
34
+ runs-on: ubuntu-latest
35
+ needs: test
36
+ steps:
37
+ - name: Checkout
38
+ uses: actions/checkout@v3
39
+
40
+ - name: Setup Node.js
41
+ uses: actions/setup-node@v3
42
+ with:
43
+ node-version: '16'
44
+
45
+ - name: Install dependencies
46
+ run: npm ci
47
+
48
+ - name: Semantic Release
49
+ uses: cycjimmy/semantic-release-action@v3
50
+ id: semantic
51
+ with:
52
+ branches: |
53
+ [
54
+ '+([0-9])?(.{+([0-9]),x}).x',
55
+ 'master',
56
+ 'main',
57
+ 'next',
58
+ 'next-major',
59
+ {
60
+ name: 'beta',
61
+ prerelease: true
62
+ },
63
+ {
64
+ name: 'alpha',
65
+ prerelease: true
66
+ }
67
+ ]
68
+ extra_plugins: |
69
+ @semantic-release/git
70
+ @semantic-release/changelog
71
+ @semantic-release/exec
72
+ env:
73
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
74
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
75
+
76
+ - name: Setup Node.js with GitHub Package Registry
77
+ uses: actions/setup-node@v3
78
+ with:
79
+ node-version: 16
80
+ registry-url: 'https://npm.pkg.github.com'
81
+ scope: 'cycjimmy'
82
+
83
+ - name: Publish To GitHub Package Registry
84
+ if: steps.semantic.outputs.new_release_published == 'true'
85
+ run: npm publish
86
+ env:
87
+ NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
88
+
89
+ - name: Push updates to branch for major version
90
+ if: steps.semantic.outputs.new_release_published == 'true'
91
+ run: git push https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD:refs/heads/v${{steps.semantic.outputs.new_release_major_version}}
92
+ env:
93
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,76 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, sex characteristics, gender identity and expression,
9
+ level of experience, education, socio-economic status, nationality, personal
10
+ appearance, race, religion, or sexual identity and orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at cycjimmy@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72
+
73
+ [homepage]: https://www.contributor-covenant.org
74
+
75
+ For answers to common questions about this code of conduct, see
76
+ https://www.contributor-covenant.org/faq
@@ -0,0 +1,2 @@
1
+ # Contributing
2
+ The repository is released under the MIT license, and follows a standard Github development process, using Github tracker for issues and merging pull requests into main.
@@ -0,0 +1 @@
1
+ export default 'test-file-stub';
@@ -0,0 +1 @@
1
+ export default {};
@@ -0,0 +1,8 @@
1
+ /* eslint no-undef: off */
2
+ import helloWorld from '../src/index';
3
+
4
+ describe('helloWorld', () => {
5
+ test('helloWorld() return string', () => {
6
+ expect(typeof helloWorld.helloWorld()).toBe('string');
7
+ });
8
+ });