Skip to content

Commit

Permalink
npm ready
Browse files Browse the repository at this point in the history
  • Loading branch information
Yehonal committed Aug 28, 2018
1 parent d9fd1a6 commit b0bb103
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 15 deletions.
2 changes: 1 addition & 1 deletion dist/hwc-class.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/hwc-class.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.node.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var hwc_requirejs=require("../js-kernel/node.require.js");

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

module.exports = hwc;

21 changes: 16 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,28 @@
{
"name": "@hw-core/js-lib-class",
"version": "2.0.0",
"version": "2.0.8",
"description": "Full featured module that aims to port the complete class logic of other OOP languages to javascript.",
"keywords": ["class", "oop", "javascript", "ES5", "ES6"],
"keywords": [
"class",
"oop",
"javascript",
"ES5",
"ES6"
],
"author": "hw-core, Yehonal",
"license" : "AGPL3",
"homepage" : "https://hw-core.github.io/js-lib-class/",
"license": "AGPL3",
"homepage": "https://hw-core.github.io/js-lib-class/",
"main": "index.node.js",
"scripts": {
"pub": "npm run build && npm publish --access public",
"build": "webpack --progress"
},
"dependencies": {
"@hw-core/js-kernel": "^2.0.3"
},
"devDependencies": {
"script-loader": "^0.7.2",
"webpack": "^4.17.1",
"webpack-cli": "^3.1.0"
}
}
}
8 changes: 1 addition & 7 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,7 @@ var current_path = __dirname || "./";
var kernel_file = current_path + "/../js-kernel/webpack.config.js";
var kernel_module = require(kernel_file);

var hwc_conf = __global.hwc_conf;

hwc_conf.paths.hwc_js_lib_class_index = hwc_conf.path_core + "js-lib-class/index";
hwc_conf.paths.hwc_js_lib_class_include = hwc_conf.path_core + "js-lib-class/include";
hwc_conf.paths.hwc_js_lib_class_class = hwc_conf.path_core + "js-lib-class/Class";
hwc_conf.paths.hwc_js_lib_class_fsyntax = hwc_conf.path_core + "js-lib-class/fSyntax";
hwc_conf.paths.hwc_js_lib_class_bootstrap = hwc_conf.path_core + "js-lib-class/bootstrap";
var hwc_conf = require("./webpack.paths");

if (typeof module !== 'undefined' && module.exports) {
// for nodejs environments
Expand Down
14 changes: 14 additions & 0 deletions webpack.paths.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
var p = require("path");
var current_path = __dirname || "./";

var kernel_file = current_path + "/../js-kernel/webpack.paths.js";

global.hwc_conf = require(kernel_file);

hwc_conf.paths.hwc_js_lib_class_index = hwc_conf.path_core + "js-lib-class/index";
hwc_conf.paths.hwc_js_lib_class_include = hwc_conf.path_core + "js-lib-class/include";
hwc_conf.paths.hwc_js_lib_class_class = hwc_conf.path_core + "js-lib-class/Class";
hwc_conf.paths.hwc_js_lib_class_fsyntax = hwc_conf.path_core + "js-lib-class/fSyntax";
hwc_conf.paths.hwc_js_lib_class_bootstrap = hwc_conf.path_core + "js-lib-class/bootstrap";

module.exports = hwc_conf;

0 comments on commit b0bb103

Please sign in to comment.