Refactored repo file structure in preparation for jsdoc tutorials.

This commit is contained in:
2022-04-18 07:39:59 -05:00
parent ba9e950556
commit 29b3b30586
46 changed files with 12 additions and 13826 deletions

63
Jenkinsfile vendored
View File

@@ -3,30 +3,24 @@ pipeline {
stages {
stage("install") {
steps {
dir('audioshowkit') {
nodejs('NodeJS (17.4.0)') {
sh "npm install"
}
nodejs('NodeJS (17.4.0)') {
sh "npm install"
}
}
}
stage("build") {
steps {
dir('audioshowkit') {
nodejs('NodeJS (17.4.0)') {
sh "npm run build:dev"
}
nodejs('NodeJS (17.4.0)') {
sh "npm run build:dev"
}
}
}
stage("test") {
steps {
dir('audioshowkit') {
nodejs('NodeJS (17.4.0)') {
sh "npm run test:junit"
}
junit 'junit/*.xml'
nodejs('NodeJS (17.4.0)') {
sh "npm run test:junit"
}
junit 'junit/*.xml'
}
}
stage("archive product") {
@@ -34,45 +28,12 @@ pipeline {
archiveArtifacts artifacts: 'audioshowkit/dist/audioshowkit.js', followSymlinks: false
}
}
stage("publish") {
parallel {
stage("setup showcase") {
stages {
stage("install showcase") {
steps {
dir('showcase') {
nodejs('NodeJS (17.4.0)') {
sh "npm i"
}
}
}
}
stage("build showcase") {
steps {
dir('showcase') {
nodejs('NodeJS (17.4.0)') {
sh "npm run build"
}
}
}
}
stage("deploy showcase") {
steps {
publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'showcase/dist', reportFiles: 'index.html', reportName: 'AudioShowKit Demo', reportTitles: ''])
}
}
}
}
stage("generate docs") {
steps {
dir('audioshowkit') {
nodejs('NodeJS (17.4.0)') {
sh "npm run docs"
}
}
publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'audioshowkit/docs', reportFiles: 'index.html', reportName: 'AudioShowKit JSDocs', reportTitles: ''])
}
stage("generate docs") {
steps {
nodejs('NodeJS (17.4.0)') {
sh "npm run docs"
}
publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'audioshowkit/docs', reportFiles: 'index.html', reportName: 'AudioShowKit JSDocs', reportTitles: ''])
}
}
}