second try in fixing github actions

This commit is contained in:
Estevao Soares dos Santos 2022-03-09 14:47:44 +00:00
parent 1a3b8db8cd
commit 54a54271ec
5 changed files with 65 additions and 81 deletions

View File

@ -1,4 +1,4 @@
# ROADMAP TO VERSION 2.0 # ROADMAP TO VERSION 3.0
## Options ## Options
@ -47,7 +47,7 @@
- Drop support for 2 space indentation (and make a lot of users confused since GFM, CommonMark and others allow this) - Drop support for 2 space indentation (and make a lot of users confused since GFM, CommonMark and others allow this)
- Create a new list subparser that can be turned on with an option, like gfmListStyle - Create a new list subparser that can be turned on with an option, like gfmListStyle
(but postpones even more the alpha 2.0 release since the list subparser is probably the hardest thing to rewrite) (but postpones even more the alpha 3.0 release since the list subparser is probably the hardest thing to rewrite)
Tough choices... Tough choices...

Binary file not shown.

118
package-lock.json generated
View File

@ -33,6 +33,10 @@
"quiet-grunt": "^0.2.0", "quiet-grunt": "^0.2.0",
"sinon": "*", "sinon": "*",
"source-map-support": "^0.5.21" "source-map-support": "^0.5.21"
},
"funding": {
"type": "individual",
"url": "https://www.paypal.me/tiviesantos"
} }
}, },
"node_modules/@eslint/eslintrc": { "node_modules/@eslint/eslintrc": {
@ -112,9 +116,9 @@
} }
}, },
"node_modules/@sinonjs/fake-timers": { "node_modules/@sinonjs/fake-timers": {
"version": "9.1.0", "version": "9.1.1",
"resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-9.1.0.tgz", "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-9.1.1.tgz",
"integrity": "sha512-M8vapsv9qQupMdzrVzkn5rb9jG7aUTEPAZdMtME2PuBaefksFZVE2C1g4LBRTkF/k3nRDNbDc5tp5NFC1PEYxA==", "integrity": "sha512-Wp5vwlZ0lOqpSYGKqr53INws9HLkt6JDc/pDZcPf7bchQnrXJMXPns8CXx0hFikMSGSWfvtvvpb2gtMVfkWagA==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@sinonjs/commons": "^1.7.0" "@sinonjs/commons": "^1.7.0"
@ -815,15 +819,6 @@
"conventional-changelog-writer": "cli.js" "conventional-changelog-writer": "cli.js"
} }
}, },
"node_modules/conventional-changelog-writer/node_modules/semver": {
"version": "5.7.1",
"resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
"integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",
"dev": true,
"bin": {
"semver": "bin/semver"
}
},
"node_modules/conventional-commits-filter": { "node_modules/conventional-commits-filter": {
"version": "1.1.6", "version": "1.1.6",
"resolved": "https://registry.npmjs.org/conventional-commits-filter/-/conventional-commits-filter-1.1.6.tgz", "resolved": "https://registry.npmjs.org/conventional-commits-filter/-/conventional-commits-filter-1.1.6.tgz",
@ -971,15 +966,6 @@
"node": ">=0.10.0" "node": ">=0.10.0"
} }
}, },
"node_modules/conventional-github-releaser/node_modules/semver": {
"version": "5.7.1",
"resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
"integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",
"dev": true,
"bin": {
"semver": "bin/semver"
}
},
"node_modules/conventional-github-releaser/node_modules/strip-indent": { "node_modules/conventional-github-releaser/node_modules/strip-indent": {
"version": "1.0.1", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-1.0.1.tgz", "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-1.0.1.tgz",
@ -1826,6 +1812,20 @@
"integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=",
"dev": true "dev": true
}, },
"node_modules/fsevents": {
"version": "2.3.2",
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",
"integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
"dev": true,
"hasInstallScript": true,
"optional": true,
"os": [
"darwin"
],
"engines": {
"node": "^8.16.0 || ^10.6.0 || >=11.0.0"
}
},
"node_modules/function-bind": { "node_modules/function-bind": {
"version": "1.1.1", "version": "1.1.1",
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
@ -2033,15 +2033,6 @@
"git-semver-tags": "cli.js" "git-semver-tags": "cli.js"
} }
}, },
"node_modules/git-semver-tags/node_modules/semver": {
"version": "5.7.1",
"resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
"integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",
"dev": true,
"bin": {
"semver": "bin/semver"
}
},
"node_modules/gitconfiglocal": { "node_modules/gitconfiglocal": {
"version": "1.0.0", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/gitconfiglocal/-/gitconfiglocal-1.0.0.tgz", "resolved": "https://registry.npmjs.org/gitconfiglocal/-/gitconfiglocal-1.0.0.tgz",
@ -4038,15 +4029,6 @@
"validate-npm-package-license": "^3.0.1" "validate-npm-package-license": "^3.0.1"
} }
}, },
"node_modules/normalize-package-data/node_modules/semver": {
"version": "5.7.1",
"resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
"integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",
"dev": true,
"bin": {
"semver": "bin/semver"
}
},
"node_modules/normalize-path": { "node_modules/normalize-path": {
"version": "3.0.0", "version": "3.0.0",
"resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
@ -4812,6 +4794,15 @@
"node": ">=10" "node": ">=10"
} }
}, },
"node_modules/semver": {
"version": "5.7.1",
"resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
"integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",
"dev": true,
"bin": {
"semver": "bin/semver"
}
},
"node_modules/semver-regex": { "node_modules/semver-regex": {
"version": "1.0.0", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/semver-regex/-/semver-regex-1.0.0.tgz", "resolved": "https://registry.npmjs.org/semver-regex/-/semver-regex-1.0.0.tgz",
@ -5617,9 +5608,9 @@
} }
}, },
"@sinonjs/fake-timers": { "@sinonjs/fake-timers": {
"version": "9.1.0", "version": "9.1.1",
"resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-9.1.0.tgz", "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-9.1.1.tgz",
"integrity": "sha512-M8vapsv9qQupMdzrVzkn5rb9jG7aUTEPAZdMtME2PuBaefksFZVE2C1g4LBRTkF/k3nRDNbDc5tp5NFC1PEYxA==", "integrity": "sha512-Wp5vwlZ0lOqpSYGKqr53INws9HLkt6JDc/pDZcPf7bchQnrXJMXPns8CXx0hFikMSGSWfvtvvpb2gtMVfkWagA==",
"dev": true, "dev": true,
"requires": { "requires": {
"@sinonjs/commons": "^1.7.0" "@sinonjs/commons": "^1.7.0"
@ -6197,14 +6188,6 @@
"semver": "^5.5.0", "semver": "^5.5.0",
"split": "^1.0.0", "split": "^1.0.0",
"through2": "^2.0.0" "through2": "^2.0.0"
},
"dependencies": {
"semver": {
"version": "5.7.1",
"resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
"integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",
"dev": true
}
} }
}, },
"conventional-commits-filter": { "conventional-commits-filter": {
@ -6320,12 +6303,6 @@
"strip-indent": "^1.0.1" "strip-indent": "^1.0.1"
} }
}, },
"semver": {
"version": "5.7.1",
"resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
"integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",
"dev": true
},
"strip-indent": { "strip-indent": {
"version": "1.0.1", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-1.0.1.tgz", "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-1.0.1.tgz",
@ -6980,6 +6957,13 @@
"integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=",
"dev": true "dev": true
}, },
"fsevents": {
"version": "2.3.2",
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",
"integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
"dev": true,
"optional": true
},
"function-bind": { "function-bind": {
"version": "1.1.1", "version": "1.1.1",
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
@ -7136,14 +7120,6 @@
"requires": { "requires": {
"meow": "^4.0.0", "meow": "^4.0.0",
"semver": "^5.5.0" "semver": "^5.5.0"
},
"dependencies": {
"semver": {
"version": "5.7.1",
"resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
"integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",
"dev": true
}
} }
}, },
"gitconfiglocal": { "gitconfiglocal": {
@ -8688,14 +8664,6 @@
"resolve": "^1.10.0", "resolve": "^1.10.0",
"semver": "2 || 3 || 4 || 5", "semver": "2 || 3 || 4 || 5",
"validate-npm-package-license": "^3.0.1" "validate-npm-package-license": "^3.0.1"
},
"dependencies": {
"semver": {
"version": "5.7.1",
"resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
"integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",
"dev": true
}
} }
}, },
"normalize-path": { "normalize-path": {
@ -9278,6 +9246,12 @@
"xmlchars": "^2.2.0" "xmlchars": "^2.2.0"
} }
}, },
"semver": {
"version": "5.7.1",
"resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
"integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",
"dev": true
},
"semver-regex": { "semver-regex": {
"version": "1.0.0", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/semver-regex/-/semver-regex-1.0.0.tgz", "resolved": "https://registry.npmjs.org/semver-regex/-/semver-regex-1.0.0.tgz",

View File

@ -25,6 +25,10 @@
"Pascal Deschênes", "Pascal Deschênes",
"Estevão Santos" "Estevão Santos"
], ],
"funding": {
"type" : "individual",
"url" : "https://www.paypal.me/tiviesantos"
},
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/showdownjs/showdown.git", "url": "https://github.com/showdownjs/showdown.git",

View File

@ -2,24 +2,30 @@
* Created by tivie * Created by tivie
*/ */
var fs = require('fs'), var fs = require('fs'),
json = JSON.parse(fs.readFileSync('package.json', 'utf8')), path = require('path'),
version = json.version,
Command = require('commander').Command, Command = require('commander').Command,
program = new Command(), program = new Command(),
showdown; path1 = path.resolve(__dirname + '/../dist/showdown.js'),
path2 = path.resolve(__dirname + '/../../.build/showdown.js'),
showdown,
version;
// require shodown. We use conditional loading for each use case // require shodown. We use conditional loading for each use case
if (fs.existsSync('../dist/showdown.js')) { if (fs.existsSync(path1)) {
// production. File lives in bin directory // production. File lives in bin directory
showdown = require('../dist/showdown.js'); showdown = require(path1);
} else if (fs.existsSync('../../.build/showdown.js')) { version = require(path.resolve(__dirname + '/../package.json')).version;
} else if (fs.existsSync(path2)) {
// testing envo, uses the concatenated stuff for testing // testing envo, uses the concatenated stuff for testing
showdown = require('../../.build/showdown.js'); showdown = require(path2);
version = require(path.resolve(__dirname + '/../../package.json')).version;
} else { } else {
// cold testing (manual) of cli.js in the src file. We load the dist file // cold testing (manual) of cli.js in the src file. We load the dist file
showdown = require('../../dist/showdown'); showdown = require('../../dist/showdown');
version = require('../../package.json');
} }
program program
.name('showdown') .name('showdown')
.description('CLI to Showdownjs markdown parser v' + version) .description('CLI to Showdownjs markdown parser v' + version)