Skip to content

Commit d09edc2

Browse files
committed
refactor(blank-typescript): remove nlp folder and fix dependencies
1 parent 755d8fe commit d09edc2

7 files changed

Lines changed: 37 additions & 112 deletions

File tree

blank-typescript/babel.config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ module.exports = {
2424
'@babel/typescript',
2525
],
2626
plugins: [
27-
'@babel/plugin-proposal-object-rest-spread',
28-
'@babel/plugin-proposal-class-properties',
2927
'@babel/plugin-transform-runtime',
3028
],
3129
}

blank-typescript/package.json

Lines changed: 33 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
"version": "1.0.0",
44
"scripts": {
55
"build": "webpack --env target=all --mode=production",
6-
"start": "webpack serve --env target=dev --mode=development",
7-
"test": "jest",
8-
"train:ner": "ts-node src/nlp/tasks/ner/train.ts",
9-
"train:intent-classification": "ts-node src/nlp/tasks/intent-classification/train.ts"
6+
"start": "webpack-dev-server --env target=dev --mode=development",
7+
"deploy": "botonic deploy -c build",
8+
"test": "jest"
109
},
1110
"jest": {
1211
"rootDir": "tests",
@@ -19,45 +18,43 @@
1918
}
2019
},
2120
"dependencies": {
22-
"@babel/runtime": "^7.12.5",
23-
"@botonic/react": "~0.21.0"
21+
"@babel/runtime": "^7.23.9",
22+
"@botonic/react": "0.25.0-alpha.4"
2423
},
2524
"devDependencies": {
26-
"@babel/core": "^7.12.10",
27-
"@babel/plugin-proposal-class-properties": "^7.12.1",
28-
"@babel/plugin-transform-runtime": "^7.12.10",
29-
"@babel/preset-env": "^7.12.11",
30-
"@babel/preset-react": "^7.12.10",
31-
"@babel/preset-typescript": "^7.12.7",
32-
"@hot-loader/react-dom": "^17.0.1",
33-
"analytics-node": "^3.4.0-beta.3",
34-
"babel-jest": "^26.6.3",
35-
"babel-loader": "^8.2.2",
36-
"chokidar": "^3.4.3",
25+
"@babel/core": "^7.23.9",
26+
"@babel/plugin-transform-runtime": "^7.23.9",
27+
"@babel/preset-env": "^7.23.9",
28+
"@babel/preset-react": "^7.23.3",
29+
"@babel/preset-typescript": "^7.23.3",
30+
"@hot-loader/react-dom": "^16.14.0",
31+
"analytics-node": "^3.5.0",
32+
"babel-jest": "^29.7.0",
33+
"babel-loader": "^8.3.0",
34+
"chokidar": "^3.6.0",
3735
"clean-webpack-plugin": "^3.0.0",
3836
"copy-webpack-plugin": "^7.0.0",
39-
"css-loader": "^5.0.1",
37+
"css-loader": "^5.2.7",
4038
"file-loader": "^6.2.0",
41-
"html-webpack-plugin": "^5.0.0-alpha.17",
42-
"imagemin-gifsicle": "^6.0.0",
39+
"html-webpack-plugin": "^5.6.0",
40+
"imagemin-gifsicle": "^6.0.1",
4341
"imagemin-jpegtran": "^6.0.0",
44-
"imagemin-optipng": "^7.0.0",
45-
"imagemin-svgo": "^7.0.0",
46-
"imagemin-webpack": "^5.0.0",
47-
"jest": "^26.6.3",
48-
"node-sass": "^8.0.0",
42+
"imagemin-optipng": "^7.1.0",
43+
"imagemin-svgo": "^7.1.0",
44+
"imagemin-webpack": "^5.1.1",
45+
"jest": "^29.7.0",
4946
"null-loader": "^4.0.1",
5047
"process": "^0.11.10",
51-
"react-hot-loader": "^4.13.0",
52-
"sass": "^1.30.0",
53-
"sass-loader": "^10.1.0",
54-
"style-loader": "^2.0.0",
55-
"terser": "^5.5.1",
56-
"terser-webpack-plugin": "^5.0.3",
57-
"ts-node": "^10.4.0",
58-
"typescript": "^4.4.4",
59-
"webpack": "^5.10.3",
60-
"webpack-cli": "^4.2.0",
61-
"webpack-dev-server": "4.13.3"
48+
"react-hot-loader": "4.12.21",
49+
"sass": "^1.71.0",
50+
"sass-loader": "^10.5.2",
51+
"style-loader": "^3.3.4",
52+
"terser": "^5.27.2",
53+
"terser-webpack-plugin": "^5.3.10",
54+
"ts-node": "^10.9.2",
55+
"typescript": "^4.9.5",
56+
"webpack": "^5.90.3",
57+
"webpack-cli": "^5.1.4",
58+
"webpack-dev-server": "5.0.2"
6259
}
6360
}

blank-typescript/src/nlp/data/en/.gitkeep

Whitespace-only changes.

blank-typescript/src/nlp/tasks/intent-classification/models/en/.gitkeep

Whitespace-only changes.

blank-typescript/src/nlp/tasks/intent-classification/train.ts

Lines changed: 0 additions & 68 deletions
This file was deleted.

blank-typescript/tsconfig.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@
77
//ERROR in [at-loader] ./node_modules/@botonic/react/node_modules/@types/react/index.d.ts:2814:14
88
//TS2300: Duplicate identifier 'LibraryManagedAttributes'.
99
"sourceMap": true,
10-
"target": "es2015",
11-
"module": "commonjs",
10+
"target": "ES2022",
11+
"module": "ES2015",
1212
"baseUrl": "src",
1313
"paths": {
1414
"*": ["src/*", "lib/*", "types/*"]
1515
},
1616
"outDir": "lib",
17-
"jsx": "react",
17+
"jsx": "react-jsx",
1818
"allowJs": true,
19-
"lib": ["dom", "es2017"],
19+
"lib": ["DOM", "ES2022"],
2020
"allowSyntheticDefaultImports": true,
2121
"esModuleInterop": true
2222
},

blank-typescript/webpack.config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,6 @@ const babelTypescriptLoaderConfig = {
122122
'@babel/typescript',
123123
],
124124
plugins: [
125-
'@babel/plugin-proposal-object-rest-spread',
126-
'@babel/plugin-proposal-class-properties',
127125
'@babel/plugin-transform-runtime',
128126
],
129127
},

0 commit comments

Comments
 (0)