Skip to content

Commit b0bb103

Browse files
committed
npm ready
1 parent d9fd1a6 commit b0bb103

File tree

6 files changed

+34
-15
lines changed

6 files changed

+34
-15
lines changed

dist/hwc-class.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/hwc-class.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var hwc_requirejs=require("../js-kernel/node.require.js");
22

3-
var hwc=require("./index.js");
3+
requirejs(__dirname+"/index.js");
44

55
module.exports = hwc;
66

package.json

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,28 @@
11
{
22
"name": "@hw-core/js-lib-class",
3-
"version": "2.0.0",
3+
"version": "2.0.8",
44
"description": "Full featured module that aims to port the complete class logic of other OOP languages to javascript.",
5-
"keywords": ["class", "oop", "javascript", "ES5", "ES6"],
5+
"keywords": [
6+
"class",
7+
"oop",
8+
"javascript",
9+
"ES5",
10+
"ES6"
11+
],
612
"author": "hw-core, Yehonal",
7-
"license" : "AGPL3",
8-
"homepage" : "https://hw-core.github.io/js-lib-class/",
13+
"license": "AGPL3",
14+
"homepage": "https://hw-core.github.io/js-lib-class/",
15+
"main": "index.node.js",
916
"scripts": {
17+
"pub": "npm run build && npm publish --access public",
1018
"build": "webpack --progress"
1119
},
20+
"dependencies": {
21+
"@hw-core/js-kernel": "^2.0.3"
22+
},
1223
"devDependencies": {
1324
"script-loader": "^0.7.2",
1425
"webpack": "^4.17.1",
1526
"webpack-cli": "^3.1.0"
1627
}
17-
}
28+
}

webpack.config.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,7 @@ var current_path = __dirname || "./";
66
var kernel_file = current_path + "/../js-kernel/webpack.config.js";
77
var kernel_module = require(kernel_file);
88

9-
var hwc_conf = __global.hwc_conf;
10-
11-
hwc_conf.paths.hwc_js_lib_class_index = hwc_conf.path_core + "js-lib-class/index";
12-
hwc_conf.paths.hwc_js_lib_class_include = hwc_conf.path_core + "js-lib-class/include";
13-
hwc_conf.paths.hwc_js_lib_class_class = hwc_conf.path_core + "js-lib-class/Class";
14-
hwc_conf.paths.hwc_js_lib_class_fsyntax = hwc_conf.path_core + "js-lib-class/fSyntax";
15-
hwc_conf.paths.hwc_js_lib_class_bootstrap = hwc_conf.path_core + "js-lib-class/bootstrap";
9+
var hwc_conf = require("./webpack.paths");
1610

1711
if (typeof module !== 'undefined' && module.exports) {
1812
// for nodejs environments

webpack.paths.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
var p = require("path");
2+
var current_path = __dirname || "./";
3+
4+
var kernel_file = current_path + "/../js-kernel/webpack.paths.js";
5+
6+
global.hwc_conf = require(kernel_file);
7+
8+
hwc_conf.paths.hwc_js_lib_class_index = hwc_conf.path_core + "js-lib-class/index";
9+
hwc_conf.paths.hwc_js_lib_class_include = hwc_conf.path_core + "js-lib-class/include";
10+
hwc_conf.paths.hwc_js_lib_class_class = hwc_conf.path_core + "js-lib-class/Class";
11+
hwc_conf.paths.hwc_js_lib_class_fsyntax = hwc_conf.path_core + "js-lib-class/fSyntax";
12+
hwc_conf.paths.hwc_js_lib_class_bootstrap = hwc_conf.path_core + "js-lib-class/bootstrap";
13+
14+
module.exports = hwc_conf;

0 commit comments

Comments
 (0)