Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
41c99de4d8 | |||
a91f56dacf | |||
f60f17f91e | |||
d154cf0d0f |
@ -8,6 +8,7 @@ cache:
|
|||||||
|
|
||||||
stages:
|
stages:
|
||||||
- mirror
|
- mirror
|
||||||
|
- security
|
||||||
- test
|
- test
|
||||||
- release
|
- release
|
||||||
- trigger
|
- trigger
|
||||||
@ -20,6 +21,12 @@ mirror:
|
|||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
|
|
||||||
|
security:
|
||||||
|
stage: security
|
||||||
|
script:
|
||||||
|
- npmci command yarn gobal add snyk
|
||||||
|
- npmci command snyk test
|
||||||
|
|
||||||
testLEGACY:
|
testLEGACY:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
|
@ -1,16 +1,13 @@
|
|||||||
{
|
{
|
||||||
"name": "smartcli",
|
"name": "smartcli",
|
||||||
"version": "2.0.8",
|
"version": "2.0.10",
|
||||||
"description": "nodejs wrapper for CLI related tasks",
|
"description": "nodejs wrapper for CLI related tasks",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"typings": "dist/index.d.ts",
|
"typings": "dist/index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "(npmts)",
|
"test": "(npmts)",
|
||||||
"testm": "(cd ts/compile && gulp) && (node test.js jazz jam --awesome)",
|
"testm": "(cd ts/compile && gulp) && (node test.js jazz jam --awesome)",
|
||||||
"devTest": "(npm test) && (node test.js --test true)",
|
"security": "snyk test"
|
||||||
"reinstall": "(rm -r node_modules && npm install)",
|
|
||||||
"release": "(git pull origin master && npm version patch && git push origin master && git checkout release && git merge master && git push origin release && git checkout master)",
|
|
||||||
"startdev": "(git checkout master && git pull origin master)"
|
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@ -11,7 +11,7 @@ tap.test('should create a new Smartcli', async () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
tap.test('should add an command', async () => {
|
tap.test('should add an command', async () => {
|
||||||
expect(smartCliTestObject.addCommand('awesome')).to.not.throw()
|
expect(smartCliTestObject.addCommand('awesome')).to.be.instanceOf(Promise)
|
||||||
})
|
})
|
||||||
|
|
||||||
tap.test('should start parsing a standardTask', async () => {
|
tap.test('should start parsing a standardTask', async () => {
|
||||||
@ -39,7 +39,7 @@ tap.test('should execute when triggered', async () => {
|
|||||||
|
|
||||||
tap.test('should start parsing the CLI input', async () => {
|
tap.test('should start parsing the CLI input', async () => {
|
||||||
smartCliTestObject.startParse()
|
smartCliTestObject.startParse()
|
||||||
expect(await smartCliTestObject.parseStarted.promise).to.not.throw()
|
expect(smartCliTestObject.parseStarted.promise).to.be.instanceOf(Promise)
|
||||||
})
|
})
|
||||||
|
|
||||||
tap.start()
|
tap.start()
|
||||||
|
Reference in New Issue
Block a user