Skip to content

Commit

Permalink
refactor(blank-typescript): remove nlp folder and fix dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Iru89 committed Feb 20, 2024
1 parent 755d8fe commit d09edc2
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 112 deletions.
2 changes: 0 additions & 2 deletions blank-typescript/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ module.exports = {
'@babel/typescript',
],
plugins: [
'@babel/plugin-proposal-object-rest-spread',
'@babel/plugin-proposal-class-properties',
'@babel/plugin-transform-runtime',
],
}
69 changes: 33 additions & 36 deletions blank-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
"version": "1.0.0",
"scripts": {
"build": "webpack --env target=all --mode=production",
"start": "webpack serve --env target=dev --mode=development",
"test": "jest",
"train:ner": "ts-node src/nlp/tasks/ner/train.ts",
"train:intent-classification": "ts-node src/nlp/tasks/intent-classification/train.ts"
"start": "webpack-dev-server --env target=dev --mode=development",
"deploy": "botonic deploy -c build",
"test": "jest"
},
"jest": {
"rootDir": "tests",
Expand All @@ -19,45 +18,43 @@
}
},
"dependencies": {
"@babel/runtime": "^7.12.5",
"@botonic/react": "~0.21.0"
"@babel/runtime": "^7.23.9",
"@botonic/react": "0.25.0-alpha.4"
},
"devDependencies": {
"@babel/core": "^7.12.10",
"@babel/plugin-proposal-class-properties": "^7.12.1",
"@babel/plugin-transform-runtime": "^7.12.10",
"@babel/preset-env": "^7.12.11",
"@babel/preset-react": "^7.12.10",
"@babel/preset-typescript": "^7.12.7",
"@hot-loader/react-dom": "^17.0.1",
"analytics-node": "^3.4.0-beta.3",
"babel-jest": "^26.6.3",
"babel-loader": "^8.2.2",
"chokidar": "^3.4.3",
"@babel/core": "^7.23.9",
"@babel/plugin-transform-runtime": "^7.23.9",
"@babel/preset-env": "^7.23.9",
"@babel/preset-react": "^7.23.3",
"@babel/preset-typescript": "^7.23.3",
"@hot-loader/react-dom": "^16.14.0",
"analytics-node": "^3.5.0",
"babel-jest": "^29.7.0",
"babel-loader": "^8.3.0",
"chokidar": "^3.6.0",
"clean-webpack-plugin": "^3.0.0",
"copy-webpack-plugin": "^7.0.0",
"css-loader": "^5.0.1",
"css-loader": "^5.2.7",
"file-loader": "^6.2.0",
"html-webpack-plugin": "^5.0.0-alpha.17",
"imagemin-gifsicle": "^6.0.0",
"html-webpack-plugin": "^5.6.0",
"imagemin-gifsicle": "^6.0.1",
"imagemin-jpegtran": "^6.0.0",
"imagemin-optipng": "^7.0.0",
"imagemin-svgo": "^7.0.0",
"imagemin-webpack": "^5.0.0",
"jest": "^26.6.3",
"node-sass": "^8.0.0",
"imagemin-optipng": "^7.1.0",
"imagemin-svgo": "^7.1.0",
"imagemin-webpack": "^5.1.1",
"jest": "^29.7.0",
"null-loader": "^4.0.1",
"process": "^0.11.10",
"react-hot-loader": "^4.13.0",
"sass": "^1.30.0",
"sass-loader": "^10.1.0",
"style-loader": "^2.0.0",
"terser": "^5.5.1",
"terser-webpack-plugin": "^5.0.3",
"ts-node": "^10.4.0",
"typescript": "^4.4.4",
"webpack": "^5.10.3",
"webpack-cli": "^4.2.0",
"webpack-dev-server": "4.13.3"
"react-hot-loader": "4.12.21",
"sass": "^1.71.0",
"sass-loader": "^10.5.2",
"style-loader": "^3.3.4",
"terser": "^5.27.2",
"terser-webpack-plugin": "^5.3.10",
"ts-node": "^10.9.2",
"typescript": "^4.9.5",
"webpack": "^5.90.3",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "5.0.2"
}
}
Empty file.
Empty file.
68 changes: 0 additions & 68 deletions blank-typescript/src/nlp/tasks/intent-classification/train.ts

This file was deleted.

8 changes: 4 additions & 4 deletions blank-typescript/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
//ERROR in [at-loader] ./node_modules/@botonic/react/node_modules/@types/react/index.d.ts:2814:14
//TS2300: Duplicate identifier 'LibraryManagedAttributes'.
"sourceMap": true,
"target": "es2015",
"module": "commonjs",
"target": "ES2022",
"module": "ES2015",
"baseUrl": "src",
"paths": {
"*": ["src/*", "lib/*", "types/*"]
},
"outDir": "lib",
"jsx": "react",
"jsx": "react-jsx",
"allowJs": true,
"lib": ["dom", "es2017"],
"lib": ["DOM", "ES2022"],
"allowSyntheticDefaultImports": true,
"esModuleInterop": true
},
Expand Down
2 changes: 0 additions & 2 deletions blank-typescript/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,6 @@ const babelTypescriptLoaderConfig = {
'@babel/typescript',
],
plugins: [
'@babel/plugin-proposal-object-rest-spread',
'@babel/plugin-proposal-class-properties',
'@babel/plugin-transform-runtime',
],
},
Expand Down

0 comments on commit d09edc2

Please sign in to comment.