Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 78 additions & 0 deletions .cz-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
module.exports = {
types: [
{ value: 'feat', name: 'feat: A new feature or functionality' },
{ value: 'fix', name: 'fix: A bug fix' },
{ value: 'docs', name: 'docs: Documentation only changes' },
{
value: 'style',
name: 'style: Changes that do not affect the meaning of the code\n (white-space, formatting, missing semi-colons, etc)',
},
{
value: 'refactor',
name: 'refactor: A code change that neither fixes a bug nor adds a feature',
},
{
value: 'perf',
name: 'perf: A code change that improves performance',
},
{ value: 'test', name: 'test: Adding missing tests or correcting existing tests' },
{
value: 'build',
name: 'build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)',
},
{
value: 'ci',
name: 'ci: Changes to our CI configuration files and scripts (example scopes: Github Actions, BrowserStack, SauceLabs)',
},
{
value: 'chore',
name: 'chore: Other changes that dont modify src or test files',
},
{ value: 'revert', name: 'revert: Reverts a previous commit' },
{ value: 'WIP', name: 'WIP: Work in progress' },
],

scopes: [{ name: 'core' }, { name: 'helper' }, { name: 'journeys' }, { name: 'other' }],

usePreparedCommit: false, // to re-use commit from ./.git/COMMIT_EDITMSG
allowTicketNumber: false,
isTicketNumberRequired: false,
ticketNumberPrefix: 'SDK-',
ticketNumberRegExp: '\\d{1,5}',

// it needs to match the value for field type. Eg.: 'fix'
/*
scopeOverrides: {
fix: [

{name: 'merge'},
{name: 'style'},
{name: 'e2eTest'},
{name: 'unitTest'}
]
},
*/
// override the messages, defaults are as follows
messages: {
type: "Select the type of change that you're committing:",
scope: '\nDenote the SCOPE of this change (optional):',
// used if allowCustomScopes is true
customScope: 'Denote the SCOPE of this change:',
subject: 'Write a SHORT, IMPERATIVE tense description of the change:\n',
body: 'Provide a LONGER description of the change (optional). Use "|" to break new line:\n',
breaking: 'List any BREAKING CHANGES (optional):\n',
footer: 'List any ISSUES CLOSED by this change (optional). E.g.: #31, #34:\n',
confirmCommit: 'Are you sure you want to proceed with the commit above?',
},

allowCustomScopes: true,
allowBreakingChanges: ['feat', 'fix'],
// skip any questions you want
// skipQuestions: ['scope', 'body'],

// limit subject length
subjectLimit: 100,
// breaklineChar: '|', // It is supported for fields body and footer.
// footerPrefix : 'ISSUES CLOSED:'
// askForBreakingChangeFirst : true, // default is false
};
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ build/Release
compiler
compiler-latest.zip
coverage
dist/web/build.min.js.gz
docs/1_onpage.md
docs/3_branch.md
lib-cov
Expand All @@ -32,3 +33,4 @@ local-testbench
index.html
dist
.nyc_output
test-results.json
7 changes: 3 additions & 4 deletions .jshintrc-test
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
"predef": [
"ActiveXObject",
"app_id",
"randomized_device_token",
"browser_fingerprint_id",
"console",
"define",
"goog",
"randomized_bundle_token",
"identity_id",
"module",
"session_id",
"sinon",
Expand All @@ -32,6 +32,5 @@
"sub": true,
"trailing": true,
"undef": true,
"unused": true,
"esnext": true
"unused": true
}
2 changes: 1 addition & 1 deletion .mocharc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@

module.exports = {
require: ['./node_modules/google-closure-library', './test/branch-deps.js', './node_modules/jsdom-global/register.js', './test/test-utils.js', './node_modules/sinon/lib/sinon.js'],
spec: ['./test/1_utils.js']
spec: ['./test/0_config.js','./test/0_queue.js','./test/1_utils.js','./test/6_branch_new.js']
};
3 changes: 2 additions & 1 deletion .nycrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
"reporter": [
"text-summary",
"html",
"lcovonly"
"lcov"
],
"all": true,
"include": [
"src/**"
],
Expand Down
158 changes: 0 additions & 158 deletions Gruntfile.js

This file was deleted.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ test/branch-deps.js: $(SOURCES)
--f node_modules/google-closure-library/closure/goog/deps.js \
--root src \
--root test \
--exclude src/0_config.js \
--exclude test/web-config.js \
--exclude test/branch-deps.js > test/branch-deps.js.tmp
echo "// jscs:disable" | cat - test/branch-deps.js.tmp | sed -e 's#src/0_config.js#test/web-config.js#' > test/branch-deps.js && \
rm test/branch-deps.js.tmp
Expand Down
Loading