Skip to content

Commit c56dbcd

Browse files
committed
feat: add Scala support
update: dependency
1 parent ac885c2 commit c56dbcd

5 files changed

Lines changed: 77 additions & 76 deletions

File tree

.babelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"r",
1717
"ruby",
1818
"rust",
19+
"scala",
1920
"swift",
2021
// Web Development
2122
"css",

languages/lang.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Programming Languages:
1010
- r R
1111
- ruby Ruby
1212
- rust Rust
13+
- scala Scala
1314
- swift Swift
1415
Web Development:
1516
- css CSS

languages/samples/scala.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
val counter = Var(0)
2+
3+
// create a counter button that increments on-click
4+
def counterButton() = button(
5+
tpe := "button",
6+
"count is ",
7+
child.text <-- counter,
8+
onClick --> { event => counter.update(c => c + 1) },
9+
)
10+
val app = dom.document.getElementById("app")
11+
render(app, counterButton())

package-lock.json

Lines changed: 56 additions & 69 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"dev": "npm run build-dev && run-p watch:*",
2626
"sample": "python scripts/update_samples.py",
2727
"init": "shx touch src/views/components/notification.html src/views/components/support.html src/views/components/statistics.html",
28-
"lint": ".\\node_modules\\.bin\\eslint src\\** --fix"
28+
"lint": ".\\node_modules\\.bin\\eslint src\\** --fix",
29+
"deploy": "npm run build && pwsh deploy.ps1"
2930
},
3031
"keywords": [
3132
"highlighter",
@@ -41,25 +42,25 @@
4142
"@eslint/js": "^9.11.1",
4243
"babel-loader": "^9.2.1",
4344
"babel-plugin-module-resolver": "^5.0.2",
45+
"babel-plugin-prismjs": "^2.1.0",
4446
"css-loader": "^7.1.2",
47+
"cssnano": "^7.0.6",
4548
"eslint": "^9.11.1",
4649
"eslint-config-webpack": "^1.2.5",
50+
"eslint-webpack-plugin": "^4.2.0",
4751
"globals": "^15.9.0",
4852
"htmlnano": "^2.1.1",
4953
"npm-run-all": "^4.1.5",
5054
"onchange": "^7.1.0",
55+
"postcss": "^8.4.47",
56+
"postcss-cli": "^11.0.0",
5157
"posthtml": "^0.16.6",
5258
"posthtml-cli": "^0.7.7",
5359
"posthtml-modules": "^0.9.1",
5460
"rimraf": "^6.0.1",
5561
"shx": "^0.3.4",
5662
"webpack": "^5.95.0",
57-
"webpack-cli": "^5.1.4",
58-
"babel-plugin-prismjs": "^2.1.0",
59-
"eslint-webpack-plugin": "^4.2.0",
60-
"postcss": "^8.4.47",
61-
"postcss-cli": "^11.0.0",
62-
"cssnano": "^7.0.6"
63+
"webpack-cli": "^5.1.4"
6364
},
6465
"dependencies": {
6566
"alertifyjs": "^1.14.0",

0 commit comments

Comments
 (0)