Move to Webpack
This commit is contained in:
parent
39ca9aecb5
commit
b65eb0b01f
9
packages/components/.npmignore
Normal file
9
packages/components/.npmignore
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
node_modules
|
||||||
|
storybook-static
|
||||||
|
public
|
||||||
|
build
|
||||||
|
.storybook
|
||||||
|
.direnv
|
||||||
|
.envrc
|
||||||
|
webpack.config.js
|
||||||
|
index.html
|
|
@ -69,7 +69,6 @@
|
||||||
"@storybook/preset-create-react-app": "^4.0.0",
|
"@storybook/preset-create-react-app": "^4.0.0",
|
||||||
"@storybook/react": "^6.4.18",
|
"@storybook/react": "^6.4.18",
|
||||||
"@types/webpack": "^5.28.0",
|
"@types/webpack": "^5.28.0",
|
||||||
"react-ace": "^9.5.0",
|
|
||||||
"react-codejar": "^1.1.2",
|
"react-codejar": "^1.1.2",
|
||||||
"ts-loader": "^9.2.8",
|
"ts-loader": "^9.2.8",
|
||||||
"webpack": "^5.70.0",
|
"webpack": "^5.70.0",
|
||||||
|
@ -79,7 +78,7 @@
|
||||||
"@types/react": "17.0.39"
|
"@types/react": "17.0.39"
|
||||||
},
|
},
|
||||||
"source": "./src/index.ts",
|
"source": "./src/index.ts",
|
||||||
"module": "dist/bundle.js",
|
"module": "dist/index.js",
|
||||||
"main": "dist/bundle.js",
|
"main": "dist/bundle.js",
|
||||||
"types": "dist/index.d.ts"
|
"types": "dist/index.d.ts"
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,11 +2,11 @@
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"module": "commonjs",
|
"module": "commonjs",
|
||||||
"jsx": "react",
|
"jsx": "react",
|
||||||
|
"resolveJsonModule": true,
|
||||||
"noImplicitAny": false,
|
"noImplicitAny": false,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"removeComments": true,
|
"removeComments": true,
|
||||||
"preserveConstEnums": true,
|
"preserveConstEnums": true,
|
||||||
"resolveJsonModule": true,
|
|
||||||
"outDir": "./dist",
|
"outDir": "./dist",
|
||||||
"declarationDir": "./dist",
|
"declarationDir": "./dist",
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
|
|
26
packages/components/webpack.config.js
Normal file
26
packages/components/webpack.config.js
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
const path = require('path');
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
mode: 'production',
|
||||||
|
entry: './src/index.ts',
|
||||||
|
module: {
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
test: /\.tsx?$/,
|
||||||
|
use: 'ts-loader',
|
||||||
|
exclude: /node_modules/,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
resolve: {
|
||||||
|
extensions: ['.js', '.tsx', '.ts'],
|
||||||
|
},
|
||||||
|
output: {
|
||||||
|
filename: 'bundle.js',
|
||||||
|
path: path.resolve(__dirname, 'dist'),
|
||||||
|
library: {
|
||||||
|
name: 'squiggle_components',
|
||||||
|
type: 'umd',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
11
packages/squiggle-lang/.npmignore
Normal file
11
packages/squiggle-lang/.npmignore
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
node_modules
|
||||||
|
shell.nix
|
||||||
|
.cache
|
||||||
|
.direnv
|
||||||
|
src
|
||||||
|
__tests__
|
||||||
|
lib
|
||||||
|
examples
|
||||||
|
yarn.nix
|
||||||
|
bsconfig.json
|
||||||
|
tsconfig.json
|
1368
packages/squiggle-lang/dist/index.js
vendored
1368
packages/squiggle-lang/dist/index.js
vendored
File diff suppressed because one or more lines are too long
393
packages/squiggle-lang/dist/report.html
vendored
393
packages/squiggle-lang/dist/report.html
vendored
File diff suppressed because one or more lines are too long
|
@ -12,5 +12,5 @@
|
||||||
},
|
},
|
||||||
"target": "ES6",
|
"target": "ES6",
|
||||||
"include": ["src/**/*"],
|
"include": ["src/**/*"],
|
||||||
"exclude": ["node_modules", "**/*.spec.ts"]
|
"exclude": ["node_modules", "**/*.spec.ts", "webpack.config.js"]
|
||||||
}
|
}
|
||||||
|
|
26
packages/squiggle-lang/webpack.config.js
Normal file
26
packages/squiggle-lang/webpack.config.js
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
const path = require('path');
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
mode: 'production',
|
||||||
|
entry: './src/js/index.ts',
|
||||||
|
module: {
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
test: /\.tsx?$/,
|
||||||
|
use: 'ts-loader',
|
||||||
|
exclude: /node_modules/,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
resolve: {
|
||||||
|
extensions: ['.tsx', '.ts', '.js'],
|
||||||
|
},
|
||||||
|
output: {
|
||||||
|
filename: 'bundle.js',
|
||||||
|
path: path.resolve(__dirname, 'dist'),
|
||||||
|
library: {
|
||||||
|
name: 'squiggle_lang',
|
||||||
|
type: 'umd',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user