Skip to content

Commit 322970a

Browse files
Merge pull request #1 from dutchenkoOleg/master
1.0.0
2 parents 64bb3e7 + ed00777 commit 322970a

File tree

6 files changed

+86
-1
lines changed

6 files changed

+86
-1
lines changed

.editorconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# http://EditorConfig.org
2+
root = true
3+
charset = utf-8
4+
indent_style = tab
5+
indent_size = 4
6+
trim_trailing_whitespace = true
7+
end_of_line = crlf
8+
insert_final_new_line = true
9+
10+
[{*.sass, *.js}]
11+
indent_style = tab
12+
13+
[*.md]
14+
trim_trailing_whitespace = false
15+
16+
# 2 spaces
17+
[{package.json, package-lock.json, composer.json, composer.lock, *.yml}]
18+
indent_style = space
19+
indent_size = 2

.eslintrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
extends: [
3+
'wezom-relax'
4+
]
5+
};

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.idea
2+
13
# Logs
24
logs
35
*.log
@@ -35,6 +37,7 @@ build/Release
3537
# Dependency directories
3638
node_modules/
3739
jspm_packages/
40+
package-lock.json
3841

3942
# TypeScript v1 declaration files
4043
typings/

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 Wezom
3+
Copyright (c) 2019 WezomAgency
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

index.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
'use strict';
2+
3+
/**
4+
* @module WebPluginInterface
5+
* @author OlegDutchenko <[email protected]>
6+
*/
7+
8+
/**
9+
* @interface
10+
*/
11+
export class WebPluginInterface {
12+
constructor () {
13+
console.log('implement abstract constructor');
14+
}
15+
16+
bootstrap () {
17+
// code
18+
}
19+
20+
beforeInitialize () {
21+
// code
22+
}
23+
24+
initialize () {
25+
// code
26+
}
27+
28+
afterInitialize () {
29+
// code
30+
}
31+
32+
get defaults () {
33+
return {};
34+
}
35+
}

package.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "web-plugin-interface",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "eslint ./index.js --fix"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/dutchenkoOleg/web-plugin-interface.git"
12+
},
13+
"keywords": [],
14+
"author": "Oleg Dutchenko <[email protected]>",
15+
"license": "MIT",
16+
"bugs": {
17+
"url": "https://github.com/dutchenkoOleg/web-plugin-interface/issues"
18+
},
19+
"homepage": "https://github.com/dutchenkoOleg/web-plugin-interface#readme",
20+
"dependencies": {
21+
"eslint-config-wezom-relax": "^1.1.0"
22+
}
23+
}

0 commit comments

Comments
 (0)