Skip to content

Commit 1bd5388

Browse files
committed
updated packages and docs
1 parent 594db2d commit 1bd5388

File tree

6 files changed

+587
-1117
lines changed

6 files changed

+587
-1117
lines changed

.babelrc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,12 @@
99
]
1010
}
1111
},
12-
"compact": false
12+
"plugins": [
13+
"html-tag-js/jsx/jsx-to-tag.js",
14+
"html-tag-js/jsx/syntax-parser.js",
15+
[
16+
"@babel/plugin-transform-runtime"
17+
]
18+
],
19+
"compact": true
1320
}

dist/main.js

Lines changed: 95 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,17 @@
77
"author": "Ajit <me@ajitkumar.dev>",
88
"license": "MIT",
99
"dependencies": {
10-
"html-tag-js": "^1.1.6"
10+
"html-tag-js": "^1.1.22"
1111
},
1212
"devDependencies": {
1313
"@babel/cli": "^7.18.10",
1414
"@babel/core": "^7.18.13",
15+
"@babel/plugin-transform-runtime": "^7.19.6",
1516
"@babel/preset-env": "^7.18.10",
16-
"autoprefixer": "^10.4.8",
17-
"babel-loader": "^8.2.5",
18-
"css-loader": "^6.7.1",
17+
"babel-loader": "^9.1.0",
1918
"live-server": "^1.2.2",
20-
"mini-css-extract-plugin": "^2.6.1",
21-
"postcss": "^8.4.16",
22-
"postcss-loader": "^7.0.1",
23-
"raw-loader": "^4.0.2",
24-
"sass": "^1.54.5",
25-
"sass-loader": "^13.0.2",
26-
"style-loader": "^3.3.1",
2719
"webpack": "^5.74.0",
28-
"webpack-cli": "^4.10.0"
20+
"webpack-cli": "^5.0.0"
2921
},
3022
"scripts": {
3123
"build": "webpack",
@@ -39,4 +31,4 @@
3931
"terser": ">=5.14.2 ",
4032
"glob-parent": ">=5.1.2"
4133
}
42-
}
34+
}

readme.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,20 @@ The global variables that you can use them directly in your plugin.
154154
- `setPluginUnmount(id: string, unmountFunction(): void)`
155155
- `registerFormatter(id: string, externsions: Array<string>, format():Promise<void>)`
156156
- `fsOperation(file: string): FsOperation`
157+
- `require(moduleName): Module` **Available modules**
158+
159+
- [fs](https://github.com/deadlyjack/Acode/blob/main/src/fileSystem/fsOperation.js)
160+
- [projects](https://github.com/deadlyjack/Acode/blob/main/src/lib/projects.js)
161+
- [selectionMenu](https://github.com/deadlyjack/Acode/blob/main/src/lib/selectionMenu.js)
162+
- [alert](https://github.com/deadlyjack/Acode/blob/main/src/components/dialogboxes/alert.js)
163+
- [confirm](https://github.com/deadlyjack/Acode/blob/main/src/components/dialogboxes/confirm.js)
164+
- [multiPrompt](https://github.com/deadlyjack/Acode/blob/main/src/components/dialogboxes/multiprompt.js)
165+
- [prompt](https://github.com/deadlyjack/Acode/blob/main/src/components/dialogboxes/prompt.js)
166+
- [select](https://github.com/deadlyjack/Acode/blob/main/src/components/dialogboxes/select.js)
167+
- [loader](https://github.com/deadlyjack/Acode/blob/main/src/components/dialogs.js#L10)
168+
- [fileBrowser](https://github.com/deadlyjack/Acode/blob/main/src/pages/fileBrowser/fileBrowser.include.js#L46)
169+
- [toInternalUrl](https://github.com/deadlyjack/Acode/blob/main/src/utils/helpers.js#L793)
170+
- [Url](https://github.com/deadlyjack/Acode/blob/main/src/utils/Url.js)
157171

158172
### actionStack
159173

@@ -224,7 +238,7 @@ To get more info api provided by these plugins see there `js` files in `www` dir
224238
[:arrow_up: TOC](#toc)
225239

226240
- `lsDir(): Promise<Array<Entry>>`
227-
- `readFile(encoding: string | ArrayBuffer): Promise<string | ArrayBuffer>`
241+
- `readFile(encoding: string): Promise<string | ArrayBuffer>`
228242
- `createFile(name: string, content?: string): Promise<string>`
229243
- `writeFile(content: string | ArrayBuffer): Promise<void>`
230244
- `createDirectory(name: string): Promise<string>`

webpack.config.js

Lines changed: 4 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,20 @@
11
const path = require('path');
2-
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
32

43
module.exports = (env, options) => {
54
const { mode = 'development' } = options;
65
const rules = [
7-
{
8-
test: /\.hbs$/,
9-
use: ['raw-loader'],
10-
},
116
{
127
test: /\.m?js$/,
13-
use: {
14-
loader: 'babel-loader',
15-
options: {
16-
presets: ['@babel/preset-env'],
17-
},
18-
},
19-
},
20-
{
21-
test: /\.(sa|sc|c)ss$/,
228
use: [
9+
'html-tag-js/jsx/tag-loader.js',
2310
{
24-
loader: MiniCssExtractPlugin.loader,
11+
loader: 'babel-loader',
2512
options: {
26-
publicPath: '../../',
13+
presets: ['@babel/preset-env'],
2714
},
2815
},
29-
{
30-
loader: 'css-loader',
31-
options: {
32-
url: false,
33-
},
34-
},
35-
'postcss-loader',
36-
'sass-loader',
3716
],
38-
}
17+
},
3918
];
4019

4120
const main = {
@@ -51,11 +30,6 @@ module.exports = (env, options) => {
5130
module: {
5231
rules,
5332
},
54-
plugins: [
55-
new MiniCssExtractPlugin({
56-
filename: '[name].css',
57-
}),
58-
],
5933
};
6034

6135
return [main];

0 commit comments

Comments
 (0)