Skip to content

Commit 699d509

Browse files
committed
feat: init version2
1 parent 799157a commit 699d509

30 files changed

+1030
-495
lines changed

.editorconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ indent_style = space
1212
trim_trailing_whitespace = true
1313

1414
[*.md]
15-
trim_trailing_whitespace = false
15+
trim_trailing_whitespace = false

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ coverage
22
dist
33
node_modules
44
example
5+
*.test.js

.eslintrc.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ module.exports = {
3636
'id-length': [
3737
'error',
3838
{
39-
min: 2,
39+
min: 1,
4040
max: 50,
4141
properties: 'never',
4242
exceptions: ['e', 'i', 'n', 't', 'x', 'y', 'z', '_', '$']
4343
}
4444
],
4545
'no-alert': 'error',
46-
'no-console': 'error',
46+
'no-console': 'off',
4747
'no-const-assign': 'error',
4848
'no-else-return': 'error',
4949
'no-empty': 'off',
@@ -66,7 +66,7 @@ module.exports = {
6666
],
6767
semi: ['error', 'never'],
6868
'spaced-comment': 'error',
69-
strict: ['error', 'never'],
69+
strict: ['error', 'global'],
7070
'prettier/prettier': 'error'
7171
}
7272
}

.gitignore

+19-9
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,23 @@
11
.DS_Store
2-
.eslintcache
2+
*.sublime-project
3+
*.sublime-workspace
4+
*.log
5+
.serverless
6+
v8-compile-cache-*
7+
jest/*
8+
coverage
9+
.serverless_plugins
10+
testProjects/*/package-lock.json
11+
testProjects/*/yarn.lock
12+
.serverlessUnzipped
313
node_modules
4-
npm-debug.log
5-
6-
yarn.lock
7-
package-lock.json
8-
9-
tmp/
10-
14+
.vscode/
15+
.eslintcache
16+
dist
17+
.idea
18+
build/
1119
.env*
1220
env.js
13-
.serverless
21+
package-lock.json
22+
test
23+
yarn.lock

.npmignore

+1-22
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,2 @@
1-
components
2-
examples
3-
example
4-
.idea
5-
.serverless
6-
coverage
7-
.env*
8-
env.js
9-
tmp
101
test
11-
*.test.js
12-
.vscode
13-
yarn.lock
14-
package-lock.json
15-
docs
16-
.editorconfig
17-
.eslintignore
18-
.eslintrc.js
19-
.prettierignore
20-
commitlint.config.js
21-
prettier.config.js
22-
node_modules
23-
**/*/node_modules
2+
example

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock=false

.prettierignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
coverage
2+
dist
3+
node_modules
4+
CHANGELOG.md
5+
*.test.js

.travis.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
language: node_js
2+
3+
node_js:
4+
- 8
5+
- 10
6+
7+
install:
8+
- npm install
9+
10+
# should change to serverless registry publish
11+
jobs:
12+
include:
13+
# Define the release stage that runs semantic-release
14+
- stage: release
15+
node_js: 10.18
16+
# Advanced: optionally overwrite your default `script` step to skip the tests
17+
# script: skip
18+
deploy:
19+
provider: script
20+
skip_cleanup: true
21+
script:
22+
- npm run release

CHANGELOG.md

-116
This file was deleted.

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 Serverless, Inc. http://www.serverless.com
3+
Copyright (c) 2020 Tencent Cloud Inc.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

RELEASE_PROCESS.md

-45
This file was deleted.

commitlint.config.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@ const Configuration = {
33
* Resolve and load @commitlint/config-conventional from node_modules.
44
* Referenced packages must be installed
55
*/
6-
extends: ['@commitlint/config-conventional'],
7-
rules: {
8-
'subject-case': [2, 'never', ['start-case', 'pascal-case', 'upper-case']]
9-
}
6+
extends: ['@commitlint/config-conventional']
107
}
118

129
module.exports = Configuration

0 commit comments

Comments
 (0)