Skip to content

Commit

Permalink
adding frontend build system with bucklescript and webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
shawn-mcginty committed Jun 4, 2020
1 parent 7e10ec1 commit e6e9f8e
Show file tree
Hide file tree
Showing 13 changed files with 3,914 additions and 11 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@
build
gradle
out
stale_outputs_checked
stale_outputs_checked
src/main/resources/public/dist
src/main/js/**/*.js
node_modules
lib
3 changes: 3 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions bsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "bs",
"version": "0.1.0",
"sources": {
"dir" : "src/main/js",
"subdirs" : true
},
"package-specs": {
"module": "commonjs",
"in-source": true
},
"suffix": ".bs.js",
"bs-dependencies": [
],
"warnings": {
"error" : "+101"
},
"reason": {
"react-jsx": 3
},
"refmt": 3
}
8 changes: 7 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,10 @@ dependencies {
testImplementation 'org.scalatest:scalatest_0.24:3.1.2'
}

mainClassName = 'org.bringo.server.Main'
mainClassName = 'org.bringo.server.Main'

task webpack(type: Exec) {
commandLine "npm", "run", "build"
}

compileScala.dependsOn webpack
Loading

0 comments on commit e6e9f8e

Please sign in to comment.