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

32
Jenkinsfile vendored
View File

@ -3,29 +3,35 @@ pipeline {
stages {
stage("install") {
steps {
nodejs('NodeJS (17.4.0)') {
sh "npm install"
dir('audioshowkit') {
nodejs('NodeJS (17.4.0)') {
sh "npm install"
}
}
}
}
stage("build") {
steps {
nodejs('NodeJS (17.4.0)') {
sh "npm run build:dev"
dir('audioshowkit') {
nodejs('NodeJS (17.4.0)') {
sh "npm run build:dev"
}
}
}
}
stage("test") {
steps {
nodejs('NodeJS (17.4.0)') {
sh "npm run test"
dir('audioshowkit') {
nodejs('NodeJS (17.4.0)') {
sh "npm run test"
}
junit 'junit/*.xml'
}
junit 'junit/*.xml'
}
}
stage("archive product") {
steps {
archiveArtifacts artifacts: 'dist/audioshowkit.js', followSymlinks: false
archiveArtifacts artifacts: 'audioshowkit/dist/audioshowkit.js', followSymlinks: false
}
}
stage("publish") {
@ -34,7 +40,7 @@ pipeline {
stages {
stage("install showcase") {
steps {
dir('./showcase/') {
dir('showcase') {
nodejs('NodeJS (17.4.0)') {
sh "npm i"
}
@ -43,7 +49,7 @@ pipeline {
}
stage("build showcase") {
steps {
dir('./showcase/') {
dir('showcase') {
nodejs('NodeJS (17.4.0)') {
sh "npm run build"
}
@ -59,8 +65,10 @@ pipeline {
}
stage("generate docs") {
steps {
nodejs('NodeJS (17.4.0)') {
sh "npm run docs"
dir('audioshowkit') {
nodejs('NodeJS (17.4.0)') {
sh "npm run docs"
}
}
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",
"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",
@ -111,6 +112,64 @@
"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": {
"version": "7.17.9",
"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": {
"version": "7.17.9",
"resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.17.9.tgz",

View File

@ -16,6 +16,7 @@
"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",

View File

@ -9,7 +9,7 @@
"version": "1.0.0",
"license": "ISC",
"dependencies": {
"audioshowkit": "file:.."
"audioshowkit": "file:../audioshowkit"
},
"devDependencies": {
"copy-webpack-plugin": "^10.2.4",
@ -48,6 +48,29 @@
"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": {
"version": "0.5.7",
"resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz",
@ -627,7 +650,7 @@
}
},
"node_modules/audioshowkit": {
"resolved": "..",
"resolved": "../audioshowkit",
"link": true
},
"node_modules/balanced-match": {
@ -4709,25 +4732,24 @@
}
},
"audioshowkit": {
"version": "file:..",
"version": "file:../audioshowkit",
"requires": {
"@babel/core": "^7.17.9",
"@babel/eslint-parser": "^7.17.0",
"@babel/preset-env": "^7.16.11",
"@ckeditor/jsdoc-plugins": "^20.0.0",
"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-plugin-jsdoc": "^39.2.1",
"html-loader": "^3.1.0",
"jsdoc": "^3.6.10",
"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-dev-server": "^4.8.1",
"webpack-merge": "^5.8.0"
}
},

View File

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