Skip to content
Open

Dev2 #188

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 19 additions & 20 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,35 +1,34 @@
plugins {
//inlude the nodeJS plugin to execute nodejs and npm tasks
id "com.moowork.node" version "1.2.0"
id "com.github.node-gradle.node" version "3.5.1"
}

node {
download = true
version = "9.11.1"
npmVersion = "5.6.0"
download = true
version = "9.11.1"
npmVersion = "5.6.0"
}

//declare a build task
// Declare a build task
task build

//declare a task to create a zip of the app
// Declare a task to create a zip of the app
task zip(type: Zip) {
from ('.') {
include "*"
include "bin/**"
include "data/**"
include "node_modules/**"
include "public/**"
include "routes/**"
include "views/**"
}
destinationDir(file("dist"))
baseName "trainSchedule"
from('.') {
include "*"
include "bin/**"
include "data/**"
include "node_modules/**"
include "public/**"
include "routes/**"
include "views/**"
}
destinationDirectory.set(file("dist")) // ✅ FIXED
archiveBaseName.set("trainSchedule") // ✅ FIXED
}

//declare task dependencies
// Declare task dependencies
build.dependsOn zip
zip.dependsOn npm_build
npm_build.dependsOn npm_test
npm_test.dependsOn npmInstall
npm_build.dependsOn npmInstall
npm_build.dependsOn npmInstall
1 change: 1 addition & 0 deletions chi.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hi i'm chiii
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-bin.zip
distributionUrl=https://services.gradle.org/distributions/gradle-8.14.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
zipStorePath=wrapper/dists
4 changes: 2 additions & 2 deletions views/index.jade
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
extends layout

block content
h1 Find your train!
h1 Find your train! Welvome to pornhub! What kinda train do u want ran on u?!
p Select your train below to see its current schedule.
#wrapper
#trainList
Expand All @@ -10,4 +10,4 @@ block content
#trainInfo
strong <span id='trainName'></span>
#trainSchedule
strong Select a train to view its current schedule.
strong Select a train to view its current schedule.