This commit is contained in:
parent
b5364f05e1
commit
0fa904bed2
@ -1,5 +1,9 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 1.4.x
|
||||||
|
|
||||||
|
switching projects from ava to jasmine test framework
|
||||||
|
|
||||||
## 1.3.x
|
## 1.3.x
|
||||||
|
|
||||||
using custom image to simplify node module deployment
|
using custom image to simplify node module deployment
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# @sapphirecode/standard
|
# @sapphirecode/standard
|
||||||
|
|
||||||
version: 1.3.x
|
version: 1.4.x
|
||||||
|
|
||||||
standard files and scripts for sapphirecode modules
|
standard files and scripts for sapphirecode modules
|
||||||
|
|
||||||
|
13
assets/index.js
Normal file
13
assets/index.js
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
/*
|
||||||
|
* 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>, September 2020
|
||||||
|
*/
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
const drone = require ('./drone');
|
||||||
|
const jasmine = require ('./jasmine');
|
||||||
|
|
||||||
|
module.exports = { drone, jasmine };
|
22
assets/jasmine.js
Normal file
22
assets/jasmine.js
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
/*
|
||||||
|
* 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>, September 2020
|
||||||
|
*/
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
module.exports = `
|
||||||
|
{
|
||||||
|
"spec_dir": "test",
|
||||||
|
"spec_files": [
|
||||||
|
"spec/*.js"
|
||||||
|
],
|
||||||
|
"helpers": [
|
||||||
|
"helpers/*.js"
|
||||||
|
],
|
||||||
|
"stopSpecOnExpectationFailure": false,
|
||||||
|
"random": false
|
||||||
|
}
|
||||||
|
`;
|
8
index.js
8
index.js
@ -7,15 +7,13 @@
|
|||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const drone = require ('./asset_drone');
|
const files = require ('./assets');
|
||||||
|
|
||||||
const files = { drone };
|
|
||||||
|
|
||||||
const scripts = {
|
const scripts = {
|
||||||
lint: 'eslint . --ext .js,.jsx,.ts,.tsx,.vue,.mjs',
|
lint: 'eslint . --ext .js,.jsx,.ts,.tsx,.vue,.mjs',
|
||||||
test: {
|
test: {
|
||||||
common: 'nyc ava',
|
common: 'nyc jasmine --config="jasmine.json"',
|
||||||
ts: 'tsc && nyc ava',
|
ts: 'tsc && nyc jasmine --config="jasmine.json"',
|
||||||
no: 'echo "no test"'
|
no: 'echo "no test"'
|
||||||
},
|
},
|
||||||
compile: {
|
compile: {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@sapphirecode/standard",
|
"name": "@sapphirecode/standard",
|
||||||
"version": "1.3.1",
|
"version": "1.4.0",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Timo Hocker",
|
"name": "Timo Hocker",
|
||||||
@ -28,6 +28,7 @@
|
|||||||
"files": [
|
"files": [
|
||||||
"LICENSE",
|
"LICENSE",
|
||||||
"*.js",
|
"*.js",
|
||||||
"*.d.ts"
|
"*.d.ts",
|
||||||
|
"assets/*.js"
|
||||||
]
|
]
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user