-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from edmcouncil/master
Merge changes from edmcouncil/html-pages
- Loading branch information
Showing
144 changed files
with
100,172 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
> 1% | ||
last 2 versions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[*.{js,jsx,ts,tsx,vue}] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
max_line_length = 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
module.exports = { | ||
root: true, | ||
env: { | ||
node: true, | ||
}, | ||
extends: [ | ||
'plugin:vue/essential', | ||
'@vue/airbnb', | ||
], | ||
rules: { | ||
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', | ||
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', | ||
}, | ||
parserOptions: { | ||
parser: 'babel-eslint', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
.DS_Store | ||
node_modules | ||
/dist | ||
|
||
# local env files | ||
.env.local | ||
.env.*.local | ||
|
||
# Log files | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Editor directories and files | ||
.idea | ||
.vscode | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
#!/usr/bin/env groovy | ||
// | ||
// The main Jenkinsfile for html-pages | ||
// | ||
// Note that this file is in the so called "Declarative Pipeline" syntax | ||
// | ||
// See https://jenkins.io/doc/book/pipeline/jenkinsfile/ | ||
// | ||
// | ||
// Jenkins requirements: | ||
// * "pipeline-npm" plugin + "home" Npm config file | ||
|
||
env.ONTPUB_FAMILY='' | ||
env.ONTPUB_SPEC_HOST='spec.edmcouncil.org' | ||
env.ONTPUB_IS_DARK_MODE='1' | ||
env.LC_ALL='en_US.UTF-8' | ||
env.LANG='en_US.UTF-8' | ||
env.LANGUAGE='en_US.UTF-8' | ||
env.NGINX_SPEC_ROOT='/opt/html-pages' | ||
|
||
properties([ | ||
buildDiscarder( | ||
logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '30') | ||
), | ||
// | ||
// We let each stage running on each jenkins slave / agent decide what to check out or not | ||
// | ||
// skipDefaultCheckout(), | ||
// | ||
// Skip stages once the build status has gone to UNSTABLE. | ||
// | ||
// skipStagesAfterUnstable(), | ||
// | ||
// There must be SOME limit, if it hangs or whatever then that's a bug and therefore cancel the job. | ||
// | ||
// timeout(time: 23, unit: 'HOURS'), | ||
// | ||
// Prepend all console output generated by the Pipeline run with the time at which the line was emitted | ||
// | ||
//timestamps() | ||
// ansiColor('xterm') | ||
]) | ||
|
||
node { | ||
ansiColor('xterm') { | ||
stage('Build') { | ||
node('master') { | ||
try { | ||
echo "Branch is ${env.BRANCH_NAME}..." | ||
checkout scm | ||
dir('home') { | ||
withNPM(npmrcConfig:'home') { | ||
sh "set &>${env.BUILD_TAG}.log" | ||
echo "Performing npm install..." | ||
sh "npm --no-progress --no-color install &>>${env.BUILD_TAG}.log" | ||
echo "Performing npm build..." | ||
sh "npm --no-progress --no-color run build &>>${env.BUILD_TAG}.log" | ||
sh "mv -vf ${env.BUILD_TAG}.log dist/" | ||
echo 'Stashing dist/**' | ||
dir('dist') { | ||
stash name: "home", includes: "htmlpages/**,*.log" | ||
} | ||
} | ||
} | ||
} catch (e) { | ||
currentBuild.result = "FAILURE" | ||
echo "Failed the \"${STAGE_NAME}\" stage: ${e}" | ||
throw e | ||
} finally { | ||
deleteDir() | ||
dir("${workspace}@tmp") { | ||
deleteDir() | ||
} | ||
// slackScript.notifyStage() | ||
} | ||
} // end of node('master') | ||
} // end of stage "Publish" | ||
stage('Publish') { | ||
node('master') { | ||
try { | ||
dir("${NGINX_SPEC_ROOT}") { | ||
echo 'Unstashing the output of the publish stage' | ||
unstash 'home' | ||
archiveArtifacts artifacts: '*.log', allowEmptyArchive: true | ||
} | ||
} catch (e) { | ||
currentBuild.result = "FAILURE" | ||
echo "Failed the \"${STAGE_NAME}\" stage: ${e}" | ||
throw e | ||
} finally { | ||
deleteDir() | ||
dir("${workspace}@tmp") { | ||
deleteDir() | ||
} | ||
// slackScript.notifyStage() | ||
} | ||
} // end of node('master') | ||
} // end of stage "Publish" | ||
} // end of ansiColor('xterm') | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<img src="https://vuejs.org/images/logo.png" width="50" align="right"/> | ||
|
||
# OKG Home Vue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module.exports = { | ||
presets: [ | ||
'@vue/app', | ||
], | ||
}; |
Oops, something went wrong.