Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(fixes #101): add husky and commitlint
- Loading branch information
1 parent
0956108
commit 48f0b45
Showing
4 changed files
with
1,297 additions
and
625 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn commitlint --edit $1 |
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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
'use strict'; | ||
const path = require('path'); | ||
const assert = require('yeoman-assert'); | ||
const helpers = require('yeoman-test'); | ||
"use strict"; | ||
const path = require("path"); | ||
const assert = require("yeoman-assert"); | ||
const helpers = require("yeoman-test"); | ||
|
||
describe('generator-kashmir:app', () => { | ||
beforeAll(() => { | ||
return helpers | ||
.run(path.join(__dirname, '../generators/app')) | ||
.withPrompts({ someAnswer: true }); | ||
}); | ||
describe("generator-kashmir:app", () => { | ||
beforeAll(() => | ||
helpers | ||
.run(path.join(__dirname, "../generators/app")) | ||
.withPrompts({ someAnswer: true }) | ||
); | ||
|
||
it('creates files', () => { | ||
assert.file(['dummyfile.txt']); | ||
it("creates files", () => { | ||
assert.file(["dummyfile.txt"]); | ||
}); | ||
}); |
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.