Skip to content

Commit 7a3e9ba

Browse files
committedApr 21, 2022
✨ feat: initial setup
·
v1.1.4v1.0.0
0 parents  commit 7a3e9ba

File tree

10 files changed

+14230
-0
lines changed

10 files changed

+14230
-0
lines changed
 

‎.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
7+
jobs:
8+
build:
9+
name: Build and test
10+
if: "! contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-node@v1
16+
with:
17+
node-version: '16.x'
18+
19+
- name: 🔧 Install
20+
run: npm ci
21+
22+
- name: 🧪 Tests
23+
run: npm run test
24+
25+
- name: 🚀 Release
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
29+
run: npm run semantic-release

‎.gitignore

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# Editor
2+
.vscode/
3+
4+
5+
6+
# Logs
7+
logs
8+
*.log
9+
npm-debug.log*
10+
yarn-debug.log*
11+
yarn-error.log*
12+
lerna-debug.log*
13+
14+
# Diagnostic reports (https://nodejs.org/api/report.html)
15+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
16+
17+
# Directory for instrumented libs generated by jscoverage/JSCover
18+
lib-cov
19+
20+
# Coverage directory used by tools like istanbul
21+
coverage
22+
*.lcov
23+
24+
# nyc test coverage
25+
.nyc_output
26+
27+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
28+
.grunt
29+
30+
# Bower dependency directory (https://bower.io/)
31+
bower_components
32+
33+
# node-waf configuration
34+
.lock-wscript
35+
36+
# Compiled binary addons (https://nodejs.org/api/addons.html)
37+
build/Release
38+
39+
# Dependency directories
40+
node_modules/
41+
dist/
42+
jspm_packages/
43+
44+
# Snowpack dependency directory (https://snowpack.dev/)
45+
web_modules/
46+
47+
# TypeScript cache
48+
*.tsbuildinfo
49+
50+
# Optional npm cache directory
51+
.npm
52+
53+
# Optional eslint cache
54+
.eslintcache
55+
56+
# Microbundle cache
57+
.rpt2_cache/
58+
.rts2_cache_cjs/
59+
.rts2_cache_es/
60+
.rts2_cache_umd/
61+
62+
# Optional REPL history
63+
.node_repl_history
64+
65+
# Output of 'npm pack'
66+
*.tgz
67+
68+
# Yarn Integrity file
69+
.yarn-integrity
70+
71+
# dotenv environment variables file
72+
.env
73+
.env.test
74+
75+
# parcel-bundler cache (https://parceljs.org/)
76+
.cache
77+
.parcel-cache
78+
79+
# Gatsby files
80+
.cache/
81+
82+
# yarn v2
83+
.yarn/cache
84+
.yarn/unplugged
85+
.yarn/build-state.yml
86+
.yarn/install-state.gz
87+
.pnp.*

‎.prettierrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"trailingComma": "none",
3+
"endOfLine": "auto",
4+
"singleQuote": true
5+
}

‎LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2022
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

‎commitlint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = { extends: ['gitmoji'] };

‎package-lock.json

Lines changed: 14016 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"name": "@ngx-devs/commitlint-plugin-imperative-test",
3+
"version": "1.0.0",
4+
"description": "commitlint plugin to ensure that commits are made using imperative mood",
5+
"main": "dist/index.js",
6+
"types": "dist/index.d.ts",
7+
"files": [
8+
"dist/**/!(*.test).{js,d.ts}"
9+
],
10+
"scripts": {
11+
"test": "c8 ava"
12+
},
13+
"keywords": [
14+
"commitlint",
15+
"commitlintplugin",
16+
"plugin",
17+
"rules",
18+
"imperative"
19+
],
20+
"author": "Gleison de Almeida",
21+
"license": "MIT",
22+
"devDependencies": {
23+
"@ava/typescript": "^3.0.1",
24+
"@commitlint/types": "^16.2.1",
25+
"ava": "^4.2.0",
26+
"c8": "^7.11.2",
27+
"semantic-release": "^19.0.2",
28+
"semantic-release-gitmoji": "^1.4.4",
29+
"typescript": "^4.6.3"
30+
},
31+
"ava": {
32+
"typescript": {
33+
"rewritePaths": {
34+
"src/": "dist/"
35+
},
36+
"compile": "tsc"
37+
}
38+
},
39+
"c8": {
40+
"reporter": [
41+
"cobertura",
42+
"lcovonly",
43+
"text"
44+
],
45+
"include": [
46+
"dist/**/*.js"
47+
]
48+
}
49+
}

‎src/index.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import test from 'ava';
2+
3+
import * as plugin from './';
4+
5+
test("exports a CommonJS module", (executionContext) => {
6+
executionContext.is(typeof plugin, "object");
7+
});

‎src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export {};

‎tsconfig.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"compilerOptions": {
3+
"declaration": true,
4+
"esModuleInterop": true,
5+
"module": "CommonJS",
6+
"moduleResolution": "node",
7+
"outDir": "dist",
8+
"sourceMap": true,
9+
"strict": true,
10+
"target": "ES2018"
11+
},
12+
"exclude": ["node_modules"],
13+
"include": ["src/**/*.ts"]
14+
}

0 commit comments

Comments
 (0)
Please sign in to comment.