-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make javascript library free of dependencies
- Loading branch information
1 parent
5e5a64d
commit e491820
Showing
15 changed files
with
2,204 additions
and
1,184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Hal9: Effortlessly create AI coworkers</title> | ||
<meta charset="utf-8" /> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
<script type="module" src="/src/main.js"></script> | ||
<script src="./dist/hal9.js"></script> | ||
<script> | ||
debugger; | ||
h9.init() | ||
</script> | ||
</body> | ||
</html> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,29 @@ | ||
{ | ||
"name": "hal9", | ||
"version": "2.1.0", | ||
"scripts": { | ||
"clean": "rm -rf node_modules", | ||
"dev": "vite", | ||
"build": "vite build", | ||
"preview": "vite preview" | ||
}, | ||
"version": "1.3.0", | ||
"license": "MIT", | ||
"dependencies": { | ||
"vue": "^2.7.14" | ||
"description": "Hal9: Create and Share Generative Apps", | ||
"main": "dist/hal9.js", | ||
"repository": "https://github.com/hal9ai/hal9", | ||
"author": "Hal9 Inc", | ||
"scripts": { | ||
"build": "webpack --mode=production", | ||
"dev": "webpack-dev-server --config src/web/web.config.js --mode development --history-api-fallback", | ||
"build:dev": "webpack --mode=development", | ||
"build:prod": "webpack --mode=production" | ||
}, | ||
"keywords": [ | ||
"javascript", | ||
"chatbot", | ||
"langchain", | ||
"chatgpt" | ||
], | ||
"devDependencies": { | ||
"@vitejs/plugin-vue2": "^2.2.0", | ||
"autoprefixer": "^10.4.16", | ||
"eslint": "^8.50.0", | ||
"postcss": "^8.4.30", | ||
"postcss-extend-rule": "^4.0.0", | ||
"prettier": "^3.0.3", | ||
"prettier-plugin-css-order": "^2.0.0", | ||
"prettier-plugin-tailwindcss": "^0.5.4", | ||
"rollup-plugin-copy": "^3.5.0", | ||
"sass": "^1.70.0", | ||
"tailwindcss": "^3.3.3", | ||
"terser": "^5.20.0", | ||
"vite": "^4.4.9", | ||
"vite-plugin-environment": "^1.1.3" | ||
} | ||
"uglifyjs-webpack-plugin": "^2.2.0", | ||
"webpack": "^5.70.0", | ||
"webpack-bundle-analyzer": "^4.5.0", | ||
"webpack-cli": "^4.9.2", | ||
"webpack-dev-server": "^5.0.4" | ||
}, | ||
"dependencies": {} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
export function init () { | ||
console.log('Hal9 Init') | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
const path = require('path'); | ||
const UglifyJsPlugin = require('uglifyjs-webpack-plugin'); | ||
|
||
module.exports = { | ||
entry: { | ||
'hal9': './src/index.js', | ||
'hal9.min': './src/index.js', | ||
}, | ||
devtool: "source-map", | ||
output: { | ||
filename: '[name].js', | ||
path: path.resolve(__dirname, 'dist'), | ||
globalObject: 'this', | ||
library: { | ||
name: 'h9', | ||
type: 'umd', | ||
}, | ||
}, | ||
optimization: { | ||
minimize: false, | ||
minimizer: [new UglifyJsPlugin({ | ||
include: /\.min\.js$/ | ||
})] | ||
} | ||
} |
Oops, something went wrong.