Skip to content

Commit

Permalink
Merge pull request #45 from w3nl/feature/update-readme
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
w3nl authored Mar 3, 2022
2 parents 5ff36ec + 90e05ac commit 6c80a20
Show file tree
Hide file tree
Showing 9 changed files with 6,116 additions and 11,956 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

strategy:
matrix:
node-version: [14.x]
node-version: [14.x, 16.x, 17.x]

steps:
- uses: actions/checkout@v1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
node-version: 16
- run: npm ci

publish:
Expand All @@ -24,7 +24,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
node-version: 16
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run build
Expand Down
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ addons:
language: node_js
node_js:
- "14"
- "16"
- "17"
python:
- "2.7"
before_script:
Expand Down
41 changes: 0 additions & 41 deletions example/promise.js

This file was deleted.

23 changes: 14 additions & 9 deletions example/test.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,28 @@
var Converter = require('../js/convert.js');
var {
Ppt2PngConverter
} = require('../dist/converter.js');
var glob = require('glob');

// options is optional
glob('input/test/*.ppt*', {}, function(error, files) {
glob('test/*.ppt*', {}, function(error, files) {
console.log('files: ', files);
if (files) {
new Converter({
const converter = Ppt2PngConverter.create({
files: files,
output: 'output/test/',
output: 'output/',
invert: true,
greyscale: true,
deletePdfFile: false,
outputType: 'png',
logLevel: 5,
fileNameFormat: '_vers_%d',
documentConvert: 'libreoffice --headless --convert-to pdf --outdir',
callback: function(data) {
console.log(data);
}
}).run();
documentConvert: 'libreoffice --headless --convert-to pdf --outdir'
});

const result = converter.convert();

console.log({
result
});
}
});
8 changes: 4 additions & 4 deletions jest.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ module.exports = {
moduleFileExtensions: ['js', 'jsx', 'json'],

transform: {
'^.+\\.js?$': 'babel-jest',
'^.+\\.js?$': 'babel-jest'
},

transformIgnorePatterns: ['/node_modules/'],

moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
'^@/(.*)$': '<rootDir>/src/$1'
},

testMatch: ['**/__tests__/*.js'],

testURL: 'http://localhost/',

collectCoverage: true,
collectCoverageFrom: ['src/**/*.js'],
collectCoverage: true,
collectCoverageFrom: ['src/**/*.js']
};
Loading

0 comments on commit 6c80a20

Please sign in to comment.