Commit dafbeb1a authored by Bernardo Sunderhus's avatar Bernardo Sunderhus

modificando tudo para LF

parent 35d28236
{
"presets": ["env"]
}
*.js text eol=lf
/node_modules /node_modules
/dist
/.vscode
registry=http://nexus.conexops.com.br/repository/npm/
init.author.name = admin
init.author.email = suporte@evologica.com.br
# an email is required to publish npm packages
email=suporte@evologica.com.br
always-auth=true
_auth=YWRtaW46YWRtaW4xMjM=
import gulp from 'gulp'
import {exec} from 'child_process'
gulp.task('copy-package', () => (
gulp.src(['./package.json', './README.md'])
.pipe(gulp.dest('./dist'))
))
gulp.task('release', ['copy-package'], (cb) => {
exec('npm publish ./dist', (err, stdout, stderr) => {
console.log(stdout)
console.log(stderr)
cb(err)
})
})
{ {
"name": "ponto", "name": "siscon-cli",
"version": "0.0.1", "version": "0.0.1",
"description": "CLI para bater o ponto", "description": "siscon-cli",
"main": "index.js", "main": "./siscon-cli.js",
"bin": {
"siscon-cli": "./index.js"
},
"publishConfig": {
"registry": "http://nexus.conexops.com.br/repository/npm-internal/"
},
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "compile": "rimraf ./dist && tsc -p . --module commonjs --outDir ./dist && gulp copy-package",
"release": "npm run compile && gulp release",
"copy-package": "gulp copy-package",
"clean": "rimraf ./dist"
}, },
"author": "", "author": "Bernardo Sunderhus",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"appdata": "^1.1.0", "appdata": "^1.1.0",
"chalk": "^2.1.0", "chalk": "^2.1.0",
"cli-table": "^0.3.1", "cli-table": "^0.3.1",
"commander": "^2.11.0", "commander": "^2.11.0",
"curiojs": "^2.0.0-alpha",
"figlet": "^1.2.0", "figlet": "^1.2.0",
"fuzzy": "^0.1.3", "fuzzy": "^0.1.3",
"inquirer": "^3.3.0", "inquirer": "^3.3.0",
...@@ -26,6 +36,9 @@ ...@@ -26,6 +36,9 @@
"@types/inquirer": "0.0.35", "@types/inquirer": "0.0.35",
"@types/moment-range": "^3.0.3", "@types/moment-range": "^3.0.3",
"@types/ora": "^1.3.1", "@types/ora": "^1.3.1",
"babel-core": "^6.26.0",
"babel-preset-env": "^1.6.0",
"babel-register": "^6.26.0",
"gulp": "^3.9.1", "gulp": "^3.9.1",
"rimraf": "^2.6.2", "rimraf": "^2.6.2",
"ts-node": "^3.3.0", "ts-node": "^3.3.0",
......
...@@ -7,7 +7,15 @@ const path = join(process.env.HOMEPATH, '.siscon-cli.json') ...@@ -7,7 +7,15 @@ const path = join(process.env.HOMEPATH, '.siscon-cli.json')
if (!fs.existsSync(path)) writeDefaultConfigFile() if (!fs.existsSync(path)) writeDefaultConfigFile()
function writeDefaultConfigFile () { function writeDefaultConfigFile () {
fs.writeFileSync(path, JSON.stringify(require('./default.json'), null, 2)) const defaultConfig = {
'service': {
'url': 'http://dev.conexops.com.br/cxClient/cxIsapiClient.dll/gatewayJSON',
'system': 0,
'server': 'srp1vp1.conexops.com.br',
'port': 7266
}
}
fs.writeFileSync(path, JSON.stringify(defaultConfig, null, 2))
} }
export default function getConfigFile (): ConfigFile { export default function getConfigFile (): ConfigFile {
......
{
"service": {
"url": "http://dev.conexops.com.br/cxClient/cxIsapiClient.dll/gatewayJSON",
"system": 0,
"server": "srp1vp1.conexops.com.br",
"port": 7266
}
}
#!/usr/bin/env node
import * as program from 'commander' import * as program from 'commander'
import './views/ponto' import './views/ponto'
import './views/servico' import './views/servico'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment