Skip to content

Commit 136dd51

Browse files
lidongjiesqiji.ldj
authored and
qiji.ldj
committed
🎉 first commit
0 parents  commit 136dd51

23 files changed

+115580
-0
lines changed

Diff for: .editorconfig

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 4
7+
indent_style = space
8+
insert_final_newline = false
9+
max_line_length = 120
10+
tab_width = 4
11+
12+
[{*.ats,*.ts}]
13+
indent_size = 2
14+
15+
[*.json]
16+
indent_size = 2

Diff for: .eslintignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
dist
3+
example
4+
rollup.config.js

Diff for: .eslintrc

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"env": {
4+
"browser": true,
5+
"es6": true,
6+
"node": true,
7+
"commonjs": true
8+
},
9+
"extends": [
10+
"eslint:recommended",
11+
"plugin:@typescript-eslint/eslint-recommended",
12+
"plugin:@typescript-eslint/recommended",
13+
"prettier/@typescript-eslint"
14+
],
15+
"root": true,
16+
"globals": {
17+
"SharedArrayBuffer": "readonly"
18+
},
19+
"parserOptions": {
20+
"ecmaFeatures": {
21+
"expperimentalObjectRestSpread": true,
22+
"modules": true
23+
},
24+
"ecmaVersion": 2018,
25+
"sourceType": "module",
26+
"project": "./tsconfig.json",
27+
"tsconfigRootDir": "./"
28+
},
29+
"plugins": [
30+
"@typescript-eslint",
31+
"prettier"
32+
],
33+
"rules": {
34+
"@typescript-eslint/explicit-function-return-type": "off",
35+
"@typescript-eslint/explicit-member-accessibility": "off",
36+
"@typescript-eslint/no-explicit-any": "off",
37+
"@typescript-eslint/no-triple-slash-reference": "off",
38+
"@typescript-eslint/no-use-before-define": "off",
39+
"@typescript-eslint/no-var-requires": "off",
40+
"quotes": [
41+
"error",
42+
"single"
43+
]
44+
}
45+
}

Diff for: .gitignore

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# OS
2+
.DS_Store
3+
Thumbs.db
4+
Desktop.ini
5+
6+
# IDE
7+
*.swp
8+
*.swo
9+
.idea
10+
.project
11+
12+
# Dependency, Cache, Temporary
13+
node_modules/
14+
bower_components/
15+
.svn/
16+
.sass-cache/
17+
npm-debug.log
18+
selenium-debug.log
19+
*.bak
20+
/_*
21+
22+
# Distribution
23+
coverage/
24+
types/
25+
packages/**/dist/
26+
db.json
27+
coverage
28+
*-debug.log
29+
temp/
30+
api/
31+
stats.html

Diff for: .npmignore

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
doc/
2+
example/
3+
src/
4+
test/
5+
.editorconfig
6+
.eslintignore
7+
.eslintrc
8+
.gitignore
9+
.npmignore
10+
.prettierrc
11+
rollup.config.js
12+
tsconfig.json
13+
!*.d.ts

Diff for: .prettierrc

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"semi": true,
3+
"tabWidth": 2,
4+
"bracketSpacing": false,
5+
"singleQuote": true,
6+
"trailingComma": "all",
7+
"arrowParens": "avoid",
8+
"endOfLine": "lf",
9+
"printWidth": 130,
10+
"requirePragma": false
11+
}

Diff for: LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 Alibaba Group.
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.

Diff for: README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Eva.js plugin template

Diff for: api-extractor.json

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3+
4+
"mainEntryPointFilePath": "./dist/src/index.d.ts",
5+
6+
"apiReport": {
7+
"enabled": false
8+
},
9+
10+
"docModel": {
11+
"enabled": false
12+
},
13+
14+
"dtsRollup": {
15+
"enabled": true
16+
},
17+
18+
"tsdocMetadata": {
19+
"enabled": false
20+
},
21+
22+
"messages": {
23+
"compilerMessageReporting": {
24+
"default": {
25+
"logLevel": "warning"
26+
}
27+
},
28+
29+
"extractorMessageReporting": {
30+
"ae-forgotten-export": {
31+
"logLevel": "none"
32+
},
33+
34+
"ae-missing-release-tag": {
35+
"logLevel": "none"
36+
}
37+
},
38+
39+
"tsdocMessageReporting": {
40+
"default": {
41+
"logLevel": "warning"
42+
}
43+
}
44+
}
45+
}

Diff for: dist/eva-plugin-demo.d.ts

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
export declare function helloWorld(): string;
3+
4+
export { }
5+
6+
export declare function helloWorld(): string;

Diff for: dist/plugin.cjs.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
'use strict';
2+
3+
Object.defineProperty(exports, '__esModule', { value: true });
4+
5+
function helloWorld() {
6+
return 'hello world';
7+
}
8+
9+
exports.helloWorld = helloWorld;

Diff for: dist/plugin.cjs.prod.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.helloWorld=function(){return"hello world"};

Diff for: dist/plugin.esm.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
function helloWorld() {
2+
return 'hello world';
3+
}
4+
5+
export { helloWorld };

Diff for: dist/plugin.global.js

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
this.EVA = this.EVA || {};
2+
this.EVA.plugin = this.EVA.plugin || {};
3+
this.EVA.plugin.demo = (function (exports) {
4+
'use strict';
5+
6+
function helloWorld() {
7+
return 'hello world';
8+
}
9+
10+
exports.helloWorld = helloWorld;
11+
12+
Object.defineProperty(exports, '__esModule', { value: true });
13+
14+
return exports;
15+
16+
}({}));

Diff for: dist/plugin.global.min.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
this.EVA=this.EVA||{},this.EVA.plugin=this.EVA.plugin||{},this.EVA.plugin.demo=function(e){"use strict";return e.helloWorld=function(){return"hello world"},Object.defineProperty(e,"__esModule",{value:!0}),e}({});

Diff for: index.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
'use strict';
2+
3+
if (process.env.NODE_ENV === 'production') {
4+
return require('./dist/plugin.cjs.prod.js');
5+
} else {
6+
return require('./dist/plugin.cjs.js');
7+
}

0 commit comments

Comments
 (0)