- Created a new VSCode Extension subproject - Created a new Bolt CLI subproject - Created a new Bolt Language Server subproject - Created a new Bolt Compiler subproject - Moved most existing code to the new Compiler subproject - Added a small language server - Laid the foundations for a Hindley-Milner type checker - Fixed some bugs and type errors in the compiler - Removed the unused testing infrastructure - Added an example parser test that should be run with Ava
37 lines
750 B
JavaScript
37 lines
750 B
JavaScript
|
|
const path = require('path');
|
|
const webpack = require('webpack');
|
|
|
|
module.exports = {
|
|
target: 'node',
|
|
entry: {
|
|
'bolt': './src/main.ts'
|
|
},
|
|
output: {
|
|
filename: 'bin/[name].js',
|
|
path: path.resolve(__dirname),
|
|
devtoolModuleFilenameTemplate: '[absolute-resource-path]'
|
|
},
|
|
resolve: {
|
|
extensions: [".ts", ".js"],
|
|
},
|
|
plugins: [
|
|
new webpack.BannerPlugin({ banner: '#!/usr/bin/env node', raw: true }),
|
|
],
|
|
devtool: 'source-map',
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.ts$/,
|
|
exclude: /node_modules/,
|
|
loader: "ts-loader",
|
|
options: { transpileOnly: true }
|
|
},
|
|
{
|
|
test: /\.m?js$/,
|
|
exclude: /node_modules/,
|
|
loader: 'babel-loader'
|
|
},
|
|
]
|
|
}
|
|
};
|