2020-05-04 20:47:01 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) SapphireCode - All Rights Reserved
|
|
|
|
* This file is part of Standard which is released under MIT.
|
|
|
|
* See file 'LICENSE' for full license details.
|
|
|
|
* Created by Timo Hocker <timo@scode.ovh>, May 2020
|
|
|
|
*/
|
|
|
|
|
2020-05-04 12:00:18 +02:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
const jenkins = require ('./asset_jenkins');
|
2020-05-04 12:20:14 +02:00
|
|
|
const jenkinsfile = require ('./asset_jenkinsfile');
|
2020-05-04 12:00:18 +02:00
|
|
|
|
2020-05-04 12:20:14 +02:00
|
|
|
const files = { jenkins, jenkinsfile };
|
2020-05-04 12:15:41 +02:00
|
|
|
|
|
|
|
const scripts = {
|
|
|
|
lint: 'eslint . --ext .js,.jsx,.ts,.tsx,.vue,.mjs',
|
|
|
|
test: {
|
|
|
|
common: 'nyc ava',
|
|
|
|
ts: 'tsc && nyc ava',
|
|
|
|
no: 'echo "no test"'
|
|
|
|
},
|
|
|
|
compile: {
|
|
|
|
common: 'tsc --allowJs --declaration --emitDeclarationOnly index.js',
|
|
|
|
ts: 'tsc'
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = { files, scripts };
|