Skip to content

Commit 40b5858

Browse files
authored
Fix/strict typeing all classes (#409)
* Webpack config adjusted * NPM packages checked * js folder should contain only files if build
1 parent 65cbf6d commit 40b5858

File tree

5 files changed

+8
-10
lines changed

5 files changed

+8
-10
lines changed

.gitignore

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
.DS_Store
22
.idea/
3-
.phpunit.result.cache
43
.phpunit.cache
4+
.phpunit.result.cache
55
composer.lock
66
composer.phar
7-
multisite-language-switcher/
7+
js/msls-widget-block/
8+
js/msls.js
89
multisite-language-switcher.zip
10+
multisite-language-switcher/
11+
node_modules/
12+
out/
913
package-lock.json
1014
phpunit.xml.bak
1115
tests/coverage/
12-
tests/playwright-results/
1316
tests/playwright-report/
17+
tests/playwright-results/
1418
tests/playwright/.env.local
15-
node_modules/
16-
out/
1719
vendor/
18-

js/msls-widget-block/index.asset.php

Lines changed: 0 additions & 1 deletion
This file was deleted.

js/msls-widget-block/index.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

js/msls.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"scripts": {
33
"uglify": "uglifyjs src/msls.js > js/msls.js",
44
"less": "lessc css/msls.less css/msls.css --clean-css=\"--s1 --advanced\"",
5-
"build-msls-block": "wp-scripts build src/msls-widget-block/index.js --output-path=js/msls-widget-block",
5+
"build-msls-block": "wp-scripts build --webpack-src-dir=src/msls-widget-block --output-path=js/msls-widget-block",
66
"build": "npm run uglify && npm run less && npm run build-msls-block"
77
},
88
"dependencies": {

0 commit comments

Comments
 (0)