Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit 214c791b
authored
Sep 27, 2018
by
Sushant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: updated husky@1.0.0
1 parent
057e5356
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
4 deletions
package.json
scripts/teaser
package.json
View file @
214c791
...
...
@@ -57,7 +57,7 @@
"eslint-plugin-jsdoc"
:
"^3.7.1"
,
"eslint-plugin-mocha"
:
"^5.0.0"
,
"hints"
:
"^1.x"
,
"husky"
:
"^
0.14.3
"
,
"husky"
:
"^
1.0.0
"
,
"istanbul"
:
"^0.x"
,
"lcov-result-merger"
:
"^3.0.0"
,
"lint-staged"
:
"^7.3.0"
,
...
...
@@ -93,6 +93,12 @@
"lint-staged"
:
{
"*.js"
:
"eslint"
},
"husky"
:
{
"hooks"
:
{
"pre-commit"
:
"lint-staged"
,
"commit-msg"
:
"commitlint -E HUSKY_GIT_PARAMS"
}
},
"scripts"
:
{
"lint"
:
"eslint lib test --quiet"
,
"test"
:
"npm run teaser && npm run test-unit && npm run test-integration"
,
...
...
@@ -100,7 +106,7 @@
"test-docker-unit"
:
"npm run test-unit"
,
"test-docker-integration"
:
"env-cmd $npm_package_options_env_cmd npm run test-integration"
,
"docs"
:
"esdoc && cp docs/ROUTER esdoc/ROUTER"
,
"teaser"
:
"node
-e
\"
console.log('#'.repeat(process.env.DIALECT.length + 22) + '
\\
n# Running tests for ' + process.env.DIALECT + ' #
\\
n' + '#'.repeat(process.env.DIALECT.length + 22))
\"
"
,
"teaser"
:
"node
scripts/teaser
"
,
"test-unit"
:
"mocha --require scripts/mocha-bootload --globals setImmediate,clearImmediate --ui tdd --exit --check-leaks --colors -t 30000 --reporter spec
\"
test/unit/**/*.js
\"
"
,
"test-unit-mysql"
:
"cross-env DIALECT=mysql npm run test-unit"
,
"test-unit-postgres"
:
"cross-env DIALECT=postgres npm run test-unit"
,
...
...
@@ -131,7 +137,6 @@
"sscce-mysql"
:
"cross-env DIALECT=mysql npm run sscce"
,
"sscce-postgres"
:
"cross-env DIALECT=postgres npm run sscce"
,
"sscce-sqlite"
:
"cross-env DIALECT=sqlite npm run sscce"
,
"commitmsg"
:
"commitlint -E GIT_PARAMS"
,
"precommit"
:
"lint-staged"
"sscce-mssql"
:
"cross-env DIALECT=mssql npm run sscce"
}
}
scripts/teaser
0 → 100644
View file @
214c791
#!/usr/bin/env node
if
(
!
process
.
env
.
DIALECT
)
{
throw
new
Error
(
'Environment variable DIALECT is undefined'
);
}
const
DIALECT
=
process
.
env
.
DIALECT
;
const
header
=
'#'
.
repeat
(
DIALECT
.
length
+
22
);
const
message
=
`
${
header
}
\n# Running tests for
${
DIALECT
}
#\n
${
header
}
`
;
console
.
log
(
message
);
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment