Skip to content

Commit

Permalink
heta-compiler to v0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgeny Metelkin committed Nov 14, 2023
1 parent 4318f3c commit 2336333
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 132 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change Log

## 0.1.5

- update heta-compiler to v0.7.0
- update templates

## 0.1.4

- update buttons
Expand Down
2 changes: 2 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# TODO list

- not to display output.log
- hot keys for InfoPage
- switch monaco themes
- nice css styles
- support of smartphones
- load files with full path
- dot files visualization
- use JSZip for storing in localStorage
- optimize XLSX deps for smaller size
? Matlab language support
? dot language support
? platform.yml
Expand Down
1 change: 1 addition & 0 deletions nunjucks.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// NOT USED
// this can be removed for futute versions of heta-compiler
let xxx = require('heta-compiler/src/nunjucks-env');

Expand Down
135 changes: 20 additions & 115 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "heta-online",
"version": "0.1.4",
"version": "0.1.5",
"description": "Web tool for converting Heta code to different languages.",
"main": "src/index.js",
"scripts": {
Expand Down Expand Up @@ -37,7 +37,6 @@
"css-minify": "^2.0.0",
"css-minimizer-webpack-plugin": "^5.0.1",
"html-webpack-plugin": "^5.5.3",
"lodash-webpack-plugin": "^0.11.6",
"mini-css-extract-plugin": "^2.7.6",
"monaco-editor-webpack-plugin": "^7.1.0",
"node-polyfill-webpack-plugin": "^2.0.1",
Expand All @@ -52,7 +51,7 @@
"dependencies": {
"@viz-js/viz": "^3.2.3",
"ajv": "^8.12.0",
"heta-compiler": "^0.6.20",
"heta-compiler": "^0.7.0",
"jquery": "^3.7.0",
"jszip": "^3.10.1",
"monaco-editor": "^0.41.0",
Expand Down
22 changes: 12 additions & 10 deletions src/heta-templates/index.heta.template.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@ export default `/*
p1 @Record .= 1;
// exports
#export { format: JSON, filepath: output };
//#export { format: YAML, filepath: output };
//#export { format: XLSX, filepath: table, omitRows: 3, splitByClass: true };
//#export { format: SBML, filepath: sbml, version: L2V4 };
//#export { format: SLV, filepath: model, eventsOff: false };
#export { format: DBSolve, filepath: dbsolve };
//#export { format: Simbio, filepath: simbio };
//#export { format: Mrgsolve, filepath: mrgsolve };
//#export { format: Matlab, filepath: matlab };
#export { format: Julia, filepath: julia };
#export { format: JSON };
#export { format: YAML };
#export { format: XLSX, omitRows: 3, splitByClass: true };
#export { format: SBML, version: L2V4 };
//#export { format: SLV, eventsOff: false };
//#export { format: DBSolve };
//#export { format: Simbio };
//#export { format: Mrgsolve };
//#export { format: Matlab };
//#export { format: HetaCode };
#export { format: Dot };
#export { format: Julia };
`;
2 changes: 1 addition & 1 deletion src/heta-templates/platform.json.template.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default `{
"keywords": [],
"license": "UNLICENSED",
"contributors": [],
"builderVersion": "^0.6.19",
"builderVersion": "^0.7.0",
"options": {
"debug": false,
"logs": "output.log",
Expand Down
4 changes: 1 addition & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
const NodePolyfillPlugin = require("node-polyfill-webpack-plugin");
const LodashModuleReplacementPlugin = require('lodash-webpack-plugin');
const TerserPlugin = require("terser-webpack-plugin");
const CssMinimizerPlugin = require("css-minimizer-webpack-plugin");

Expand Down Expand Up @@ -40,7 +39,6 @@ const config = {
languages: ['json', 'plaintext', 'yaml', 'xml', 'markdown', 'c', 'julia', 'cpp', 'r', 'html']
}),
new NodePolyfillPlugin(),
new LodashModuleReplacementPlugin(),
new webpack.ProvidePlugin({
$: 'jquery'
}),
Expand All @@ -64,7 +62,7 @@ const config = {
test: /\.(njk|nunjucks)$/,
loader: 'nunjucks-loader',
options: {
config: __dirname + '/nunjucks.config.js', // '/node_modules/heta-compiler/src/nunjucks-env',
config: __dirname + '/node_modules/heta-compiler/src/nunjucks-env', // '/nunjucks.config.js'
//quiet: true // Don't show the 'Cannot configure nunjucks environment before precompile'
}
}
Expand Down

0 comments on commit 2336333

Please sign in to comment.