Refactored repo file structure.

This commit is contained in:
Harrison Deng 2022-04-17 21:54:43 -05:00
parent 8856980532
commit 0d77276572
33 changed files with 157 additions and 22 deletions

14
Jenkinsfile vendored
View File

@ -3,29 +3,35 @@ pipeline {
stages { stages {
stage("install") { stage("install") {
steps { steps {
dir('audioshowkit') {
nodejs('NodeJS (17.4.0)') { nodejs('NodeJS (17.4.0)') {
sh "npm install" sh "npm install"
} }
} }
} }
}
stage("build") { stage("build") {
steps { steps {
dir('audioshowkit') {
nodejs('NodeJS (17.4.0)') { nodejs('NodeJS (17.4.0)') {
sh "npm run build:dev" sh "npm run build:dev"
} }
} }
} }
}
stage("test") { stage("test") {
steps { steps {
dir('audioshowkit') {
nodejs('NodeJS (17.4.0)') { nodejs('NodeJS (17.4.0)') {
sh "npm run test" sh "npm run test"
} }
junit 'junit/*.xml' junit 'junit/*.xml'
} }
} }
}
stage("archive product") { stage("archive product") {
steps { steps {
archiveArtifacts artifacts: 'dist/audioshowkit.js', followSymlinks: false archiveArtifacts artifacts: 'audioshowkit/dist/audioshowkit.js', followSymlinks: false
} }
} }
stage("publish") { stage("publish") {
@ -34,7 +40,7 @@ pipeline {
stages { stages {
stage("install showcase") { stage("install showcase") {
steps { steps {
dir('./showcase/') { dir('showcase') {
nodejs('NodeJS (17.4.0)') { nodejs('NodeJS (17.4.0)') {
sh "npm i" sh "npm i"
} }
@ -43,7 +49,7 @@ pipeline {
} }
stage("build showcase") { stage("build showcase") {
steps { steps {
dir('./showcase/') { dir('showcase') {
nodejs('NodeJS (17.4.0)') { nodejs('NodeJS (17.4.0)') {
sh "npm run build" sh "npm run build"
} }
@ -59,9 +65,11 @@ pipeline {
} }
stage("generate docs") { stage("generate docs") {
steps { steps {
dir('audioshowkit') {
nodejs('NodeJS (17.4.0)') { nodejs('NodeJS (17.4.0)') {
sh "npm run docs" sh "npm run docs"
} }
}
publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'docs', reportFiles: 'index.html', reportName: 'AudioShowKit JSDocs', reportTitles: '']) publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'docs', reportFiles: 'index.html', reportName: 'AudioShowKit JSDocs', reportTitles: ''])
} }
} }

View File

@ -0,0 +1,4 @@
{
"presets": [],
"plugins": []
}

View File

@ -10,6 +10,7 @@
"license": "ISC", "license": "ISC",
"devDependencies": { "devDependencies": {
"@babel/core": "^7.17.9", "@babel/core": "^7.17.9",
"@babel/eslint-parser": "^7.17.0",
"@babel/preset-env": "^7.16.11", "@babel/preset-env": "^7.16.11",
"babel-loader": "^8.2.4", "babel-loader": "^8.2.4",
"chai": "^4.3.6", "chai": "^4.3.6",
@ -111,6 +112,64 @@
"semver": "bin/semver.js" "semver": "bin/semver.js"
} }
}, },
"node_modules/@babel/eslint-parser": {
"version": "7.17.0",
"resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.17.0.tgz",
"integrity": "sha512-PUEJ7ZBXbRkbq3qqM/jZ2nIuakUBqCYc7Qf52Lj7dlZ6zERnqisdHioL0l4wwQZnmskMeasqUNzLBFKs3nylXA==",
"dev": true,
"dependencies": {
"eslint-scope": "^5.1.1",
"eslint-visitor-keys": "^2.1.0",
"semver": "^6.3.0"
},
"engines": {
"node": "^10.13.0 || ^12.13.0 || >=14.0.0"
},
"peerDependencies": {
"@babel/core": ">=7.11.0",
"eslint": "^7.5.0 || ^8.0.0"
}
},
"node_modules/@babel/eslint-parser/node_modules/eslint-scope": {
"version": "5.1.1",
"resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz",
"integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==",
"dev": true,
"dependencies": {
"esrecurse": "^4.3.0",
"estraverse": "^4.1.1"
},
"engines": {
"node": ">=8.0.0"
}
},
"node_modules/@babel/eslint-parser/node_modules/eslint-visitor-keys": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz",
"integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==",
"dev": true,
"engines": {
"node": ">=10"
}
},
"node_modules/@babel/eslint-parser/node_modules/estraverse": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz",
"integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==",
"dev": true,
"engines": {
"node": ">=4.0"
}
},
"node_modules/@babel/eslint-parser/node_modules/semver": {
"version": "6.3.0",
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
"integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
"dev": true,
"bin": {
"semver": "bin/semver.js"
}
},
"node_modules/@babel/generator": { "node_modules/@babel/generator": {
"version": "7.17.9", "version": "7.17.9",
"resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.17.9.tgz", "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.17.9.tgz",
@ -7672,6 +7731,47 @@
} }
} }
}, },
"@babel/eslint-parser": {
"version": "7.17.0",
"resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.17.0.tgz",
"integrity": "sha512-PUEJ7ZBXbRkbq3qqM/jZ2nIuakUBqCYc7Qf52Lj7dlZ6zERnqisdHioL0l4wwQZnmskMeasqUNzLBFKs3nylXA==",
"dev": true,
"requires": {
"eslint-scope": "^5.1.1",
"eslint-visitor-keys": "^2.1.0",
"semver": "^6.3.0"
},
"dependencies": {
"eslint-scope": {
"version": "5.1.1",
"resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz",
"integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==",
"dev": true,
"requires": {
"esrecurse": "^4.3.0",
"estraverse": "^4.1.1"
}
},
"eslint-visitor-keys": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz",
"integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==",
"dev": true
},
"estraverse": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz",
"integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==",
"dev": true
},
"semver": {
"version": "6.3.0",
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
"integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
"dev": true
}
}
},
"@babel/generator": { "@babel/generator": {
"version": "7.17.9", "version": "7.17.9",
"resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.17.9.tgz", "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.17.9.tgz",

View File

@ -16,6 +16,7 @@
"license": "ISC", "license": "ISC",
"devDependencies": { "devDependencies": {
"@babel/core": "^7.17.9", "@babel/core": "^7.17.9",
"@babel/eslint-parser": "^7.17.0",
"@babel/preset-env": "^7.16.11", "@babel/preset-env": "^7.16.11",
"babel-loader": "^8.2.4", "babel-loader": "^8.2.4",
"chai": "^4.3.6", "chai": "^4.3.6",

View File

@ -9,7 +9,7 @@
"version": "1.0.0", "version": "1.0.0",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"audioshowkit": "file:.." "audioshowkit": "file:../audioshowkit"
}, },
"devDependencies": { "devDependencies": {
"copy-webpack-plugin": "^10.2.4", "copy-webpack-plugin": "^10.2.4",
@ -48,6 +48,29 @@
"webpack-merge": "^5.8.0" "webpack-merge": "^5.8.0"
} }
}, },
"../audioshowkit": {
"version": "1.0.0",
"license": "ISC",
"devDependencies": {
"@babel/core": "^7.17.9",
"@babel/eslint-parser": "^7.17.0",
"@babel/preset-env": "^7.16.11",
"babel-loader": "^8.2.4",
"chai": "^4.3.6",
"css-loader": "^6.7.1",
"esdoc": "^1.1.0",
"esdoc-standard-plugin": "^1.0.0",
"eslint": "^8.13.0",
"eslint-plugin-import": "^2.26.0",
"eslint-webpack-plugin": "^3.1.1",
"mocha": "^9.2.2",
"mocha-junit-reporter": "^2.0.2",
"style-loader": "^3.3.1",
"webpack": "^5.72.0",
"webpack-cli": "^4.9.2",
"webpack-merge": "^5.8.0"
}
},
"node_modules/@discoveryjs/json-ext": { "node_modules/@discoveryjs/json-ext": {
"version": "0.5.7", "version": "0.5.7",
"resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz", "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz",
@ -627,7 +650,7 @@
} }
}, },
"node_modules/audioshowkit": { "node_modules/audioshowkit": {
"resolved": "..", "resolved": "../audioshowkit",
"link": true "link": true
}, },
"node_modules/balanced-match": { "node_modules/balanced-match": {
@ -4709,25 +4732,24 @@
} }
}, },
"audioshowkit": { "audioshowkit": {
"version": "file:..", "version": "file:../audioshowkit",
"requires": { "requires": {
"@babel/core": "^7.17.9", "@babel/core": "^7.17.9",
"@babel/eslint-parser": "^7.17.0",
"@babel/preset-env": "^7.16.11", "@babel/preset-env": "^7.16.11",
"@ckeditor/jsdoc-plugins": "^20.0.0",
"babel-loader": "^8.2.4", "babel-loader": "^8.2.4",
"chai": "^4.3.6", "chai": "^4.3.6",
"css-loader": "^6.7.1", "css-loader": "^6.7.1",
"esdoc": "^1.1.0",
"esdoc-standard-plugin": "^1.0.0",
"eslint": "^8.13.0", "eslint": "^8.13.0",
"eslint-plugin-import": "^2.26.0", "eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsdoc": "^39.2.1", "eslint-webpack-plugin": "^3.1.1",
"html-loader": "^3.1.0",
"jsdoc": "^3.6.10",
"mocha": "^9.2.2", "mocha": "^9.2.2",
"mocha-junit-reporter": "^2.0.2", "mocha-junit-reporter": "^2.0.2",
"style-loader": "^3.3.1", "style-loader": "^3.3.1",
"webpack": "^5.72.0", "webpack": "^5.72.0",
"webpack-cli": "^4.9.2", "webpack-cli": "^4.9.2",
"webpack-dev-server": "^4.8.1",
"webpack-merge": "^5.8.0" "webpack-merge": "^5.8.0"
} }
}, },

View File

@ -23,6 +23,6 @@
"webpack-merge": "^5.8.0" "webpack-merge": "^5.8.0"
}, },
"dependencies": { "dependencies": {
"audioshowkit": "file:.." "audioshowkit": "file:../audioshowkit"
} }
} }