Added babel to showcase project.
This commit is contained in:
parent
2c8f3a49c4
commit
b5a4a7dcb4
56
Jenkinsfile
vendored
56
Jenkinsfile
vendored
@ -29,44 +29,48 @@ pipeline {
|
||||
}
|
||||
}
|
||||
}
|
||||
stage("generate docs") {
|
||||
stage("archive product") {
|
||||
steps {
|
||||
dir('audioshowkit') {
|
||||
nodejs('NodeJS (17.4.0)') {
|
||||
sh "npm run docs"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stage("publish") {
|
||||
steps {
|
||||
publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'audioshowkit/docs', reportFiles: 'index.html', reportName: 'AudioShowKit JSDocs', reportTitles: ''])
|
||||
archiveArtifacts artifacts: 'audioshowkit/dist/audioshowkit.js', followSymlinks: false
|
||||
}
|
||||
}
|
||||
stage("setup showcase") {
|
||||
stages {
|
||||
stage("install showcase") {
|
||||
steps {
|
||||
dir('showcase') {
|
||||
nodejs('NodeJS (17.4.0)') {
|
||||
sh "npm i"
|
||||
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("build showcase") {
|
||||
stage("generate docs") {
|
||||
steps {
|
||||
dir('showcase') {
|
||||
dir('audioshowkit') {
|
||||
nodejs('NodeJS (17.4.0)') {
|
||||
sh "npm run build"
|
||||
sh "npm run docs"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stage("deploy showcase") {
|
||||
steps {
|
||||
publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'showcase/dist', reportFiles: 'index.html', reportName: 'AudioShowKit Demo', reportTitles: ''])
|
||||
publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'audioshowkit/docs', reportFiles: 'index.html', reportName: 'AudioShowKit JSDocs', reportTitles: ''])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
3
showcase/.eslintignore
Normal file
3
showcase/.eslintignore
Normal file
@ -0,0 +1,3 @@
|
||||
webpack.*.js
|
||||
webpack.*.cjs
|
||||
**/prism.js
|
36
showcase/.eslintrc.json
Normal file
36
showcase/.eslintrc.json
Normal file
@ -0,0 +1,36 @@
|
||||
{
|
||||
"env": {
|
||||
"browser": true,
|
||||
"es2021": true
|
||||
},
|
||||
"extends": [
|
||||
"eslint:recommended",
|
||||
"plugin:import/recommended"
|
||||
],
|
||||
"parserOptions": {
|
||||
"ecmaVersion": "latest",
|
||||
"sourceType": "module"
|
||||
},
|
||||
"rules": {
|
||||
"indent": [
|
||||
"error",
|
||||
4
|
||||
],
|
||||
"linebreak-style": [
|
||||
"error",
|
||||
"unix"
|
||||
],
|
||||
"quotes": [
|
||||
"error",
|
||||
"double"
|
||||
],
|
||||
"semi": [
|
||||
"error",
|
||||
"always"
|
||||
],
|
||||
"import/extensions": [
|
||||
"error",
|
||||
"ignorePackages"
|
||||
]
|
||||
}
|
||||
}
|
4
showcase/babel.config.json
Normal file
4
showcase/babel.config.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"presets": [],
|
||||
"plugins": []
|
||||
}
|
6159
showcase/package-lock.json
generated
6159
showcase/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -12,8 +12,15 @@
|
||||
"author": "",
|
||||
"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",
|
||||
"copy-webpack-plugin": "^10.2.4",
|
||||
"css-loader": "^6.7.1",
|
||||
"eslint": "^8.13.0",
|
||||
"eslint-plugin-import": "^2.26.0",
|
||||
"eslint-webpack-plugin": "^3.1.1",
|
||||
"html-loader": "^3.1.0",
|
||||
"html-webpack-plugin": "^5.5.0",
|
||||
"style-loader": "^3.3.1",
|
||||
|
@ -1,6 +1,7 @@
|
||||
const path = require("path");
|
||||
const HtmlWebpackPlugin = require("html-webpack-plugin");
|
||||
const CopyPlugin = require("copy-webpack-plugin");
|
||||
const ESLintPlugin = require("eslint-webpack-plugin");
|
||||
|
||||
module.exports = {
|
||||
entry: {
|
||||
@ -33,6 +34,7 @@ module.exports = {
|
||||
path: path.resolve("./dist")
|
||||
},
|
||||
plugins: [
|
||||
new ESLintPlugin(),
|
||||
new HtmlWebpackPlugin({
|
||||
template: path.resolve("./src/index.html"),
|
||||
}),
|
||||
|
Loading…
Reference in New Issue
Block a user