Comparing version 1.0.3 to 1.1.0
@@ -8,2 +8,7 @@ #!/usr/bin/env node | ||
if (!process.argv[2]) { | ||
console.error("Please provide path to configuration file."); | ||
process.exit(); | ||
} | ||
const js2yamlConfig = require(path.resolve(process.argv[2])); | ||
@@ -10,0 +15,0 @@ js2yamlConfig.forEach((config) => { |
{ | ||
"name": "js2yaml", | ||
"description": "Create configurations with the power of Javascript and convert it to YAML.", | ||
"version": "1.0.3", | ||
"version": "1.1.0", | ||
"license": "MIT", | ||
@@ -20,5 +20,2 @@ "author": "Maik Jablonski <jablonski@neoskop.de> (https://www.neoskop.de)", | ||
}, | ||
"scripts": { | ||
"start": "node index.js js2yaml.config.js" | ||
}, | ||
"dependencies": { | ||
@@ -25,0 +22,0 @@ "chokidar": "3.5.1", |
@@ -7,3 +7,3 @@ # js2yaml | ||
To get started, you have to provide a configuration file (e.g. `js2yaml.config.js`). E.g. the following configuration converts Javascript to YAML for Magnolia CMS and is provided as an example in the project: | ||
To get started, you have to provide a configuration file (e.g. `js2yaml.config.js`). E.g. the following configuration converts Javascript to YAML for Magnolia CMS: | ||
@@ -41,3 +41,3 @@ ```js | ||
```sh | ||
node js2yaml.js js2yaml.config.js | ||
node index.js js2yaml.config.js | ||
``` |
4744
6
60