Skip to content

Commit

Permalink
moved from !ninja to neocotic
Browse files Browse the repository at this point in the history
  • Loading branch information
neocotic committed Nov 22, 2018
1 parent 7935495 commit ad5aa55
Show file tree
Hide file tree
Showing 35 changed files with 110 additions and 119 deletions.
5 changes: 0 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,3 @@ script:
- npm test
notifications:
email: false
slack:
rooms:
- secure: sXYAo0YqAkdu4ZC0hnmnt0qpuZP7cOFtXf8MZA4a8CSJ/DyzzERF8B4lihEmHMXqXoDmHIMGOUGwQQ6SbG4kSRGWIJGGMiPC8yHhPbkbVBECnb2NxRc72KY7pD7Q2fYpieCGXBwh3ZukDPcUhFoiEddMdAKX1yTZsxYBR6xrIPUf3xGXq4e/T72bmxGono1NmUFD499uCdtPc6vYqQkXAo0vt79yGKaEMtCUoUeJcq6cPWaCzE9beMkKDb8XVjhLlJrJMXAqxuH3aIlKhGCgtwJfReomUNXRbmZGujTM4qi8yqi4f51F6jHp+1PiQbpcPW5bcGOOFlPcrtw6NVl1gcWe4Vz7hxBBeTq3Ut2B/pTLvkr91ow4tYy1g6sIS+R7cqPQNJ8MJsAtyydM3345yhj00EbxtiXxN/4by7GNMDJvWqQMIlhpBL+GA95ikh9rdOmafVjyUOSbGun048RHSdZav+rMGyQBLA9ncDAvTcPkJwDpkh/Ri2vRs41/SXHcdB/lOQfIeWLtZbSB63VtjlmCgxaPnr8ErglqBUEEBvK2/SyJshdCV94l+43v2eog0K8gN+5JkhwzNCY7hJjQOxpAqeghVPCr00QBw4HJcjb6A8b5LIKbgpIRHd6X9gD/NBJQuMTSPq+KIFQ8IgQjRr4+PyeXmvBH8OSzma8R9Uc=
on_failure: change
on_success: change
32 changes: 16 additions & 16 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
## Version 0.4.0, 2018.02.05

* Bump Puppeteer to v1 [#32](https://github.com/NotNinja/convert-svg/issues/32)
* Replace chai with assert [#34](https://github.com/NotNinja/convert-svg/issues/34)
* Bump Puppeteer to v1 [#32](https://github.com/neocotic/convert-svg/issues/32)
* Replace chai with assert [#34](https://github.com/neocotic/convert-svg/issues/34)

## Version 0.3.3, 2017.12.08

* Add puppeteer.launch options available into CLI [#29](https://github.com/NotNinja/convert-svg/issues/29)
* Add puppeteer.launch options available into CLI [#29](https://github.com/neocotic/convert-svg/issues/29)

## Version 0.3.2, 2017.11.21

* Error being thrown caused by lost context for CLI [#24](https://github.com/NotNinja/convert-svg/issues/24)
* Pass custom arguments to puppeteer [#25](https://github.com/NotNinja/convert-svg/issues/25) [#27](https://github.com/NotNinja/convert-svg/issues/27)
* Bump puppeteer to v0.13.0 [#26](https://github.com/NotNinja/convert-svg/issues/26)
* Error being thrown caused by lost context for CLI [#24](https://github.com/neocotic/convert-svg/issues/24)
* Pass custom arguments to puppeteer [#25](https://github.com/neocotic/convert-svg/issues/25) [#27](https://github.com/neocotic/convert-svg/issues/27)
* Bump puppeteer to v0.13.0 [#26](https://github.com/neocotic/convert-svg/issues/26)

## Version 0.3.1, 2017.11.03

* Error thrown as context is lost for API methods when using destructuring imports [#22](https://github.com/NotNinja/convert-svg/issues/22)
* Error thrown as context is lost for API methods when using destructuring imports [#22](https://github.com/neocotic/convert-svg/issues/22)

## Version 0.3.0, 2017.11.03

* Add option to control background color [#14](https://github.com/NotNinja/convert-svg/issues/14)
* Remove all controllable short options for CLI [#15](https://github.com/NotNinja/convert-svg/issues/15) (**breaking change**)
* Split package up into multiple packages to be more modular [#17](https://github.com/NotNinja/convert-svg/issues/17) (**breaking change**)
* Add convert-svg-to-jpeg package to convert SVG to JPEG [#18](https://github.com/NotNinja/convert-svg/issues/18)
* Add option to control background color [#14](https://github.com/neocotic/convert-svg/issues/14)
* Remove all controllable short options for CLI [#15](https://github.com/neocotic/convert-svg/issues/15) (**breaking change**)
* Split package up into multiple packages to be more modular [#17](https://github.com/neocotic/convert-svg/issues/17) (**breaking change**)
* Add convert-svg-to-jpeg package to convert SVG to JPEG [#18](https://github.com/neocotic/convert-svg/issues/18)

## Version 0.2.0, 2017.10.29

* Add CLI & convertFile method to API [#2](https://github.com/NotNinja/convert-svg/issues/2) [#8](https://github.com/NotNinja/convert-svg/issues/8)
* Add scale option [#3](https://github.com/NotNinja/convert-svg/issues/3) [#11](https://github.com/NotNinja/convert-svg/issues/11)
* Throw error when baseFile & baseUrl options are both specified [#4](https://github.com/NotNinja/convert-svg/issues/4) (**breaking change**)
* Change source/target terminology to input/output [#6](https://github.com/NotNinja/convert-svg/issues/6)
* Expose Converter class as primary export [#9](https://github.com/NotNinja/convert-svg/issues/9) (**breaking change**)
* Add CLI & convertFile method to API [#2](https://github.com/neocotic/convert-svg/issues/2) [#8](https://github.com/neocotic/convert-svg/issues/8)
* Add scale option [#3](https://github.com/neocotic/convert-svg/issues/3) [#11](https://github.com/neocotic/convert-svg/issues/11)
* Throw error when baseFile & baseUrl options are both specified [#4](https://github.com/neocotic/convert-svg/issues/4) (**breaking change**)
* Change source/target terminology to input/output [#6](https://github.com/neocotic/convert-svg/issues/6)
* Expose Converter class as primary export [#9](https://github.com/neocotic/convert-svg/issues/9) (**breaking change**)

## Version 0.1.0, 2017.10.19

Expand Down
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Contributing

If you have any questions about this library please feel free to
[raise an issue](https://github.com/NotNinja/convert-svg/issues/new).
[raise an issue](https://github.com/neocotic/convert-svg/issues/new).

Please [search existing issues](https://github.com/NotNinja/convert-svg/issues) for the same feature and/or issue before
Please [search existing issues](https://github.com/neocotic/convert-svg/issues) for the same feature and/or issue before
raising a new issue. Commenting on an existing issue is usually preferred over raising duplicate issues.

Please ensure that all files conform to the coding standards, using the same coding style as the rest of the code base.
Expand Down Expand Up @@ -31,5 +31,5 @@ $ sudo fc-cache -fv
All pull requests should be made to the `develop` branch.

Don't forget to add your details to the list of
[AUTHORS.md](https://github.com/NotNinja/convert-svg/blob/master/AUTHORS.md) if you want your contribution to be
[AUTHORS.md](https://github.com/neocotic/convert-svg/blob/master/AUTHORS.md) if you want your contribution to be
recognized by others.
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (C) 2018 Alasdair Mercer, !ninja
Copyright (C) 2018 Alasdair Mercer

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# convert-svg

[![Build Status](https://img.shields.io/travis/NotNinja/convert-svg/develop.svg?style=flat-square)](https://travis-ci.org/NotNinja/convert-svg)
[![License](https://img.shields.io/github/license/NotNinja/convert-svg.svg?style=flat-square)](https://github.com/NotNinja/convert-svg/blob/master/LICENSE.md)
[![Release](https://img.shields.io/github/release/NotNinja/convert-svg.svg?style=flat-square)](https://github.com/NotNinja/convert-svg)
[![Build Status](https://img.shields.io/travis/neocotic/convert-svg/develop.svg?style=flat-square)](https://travis-ci.org/neocotic/convert-svg)
[![License](https://img.shields.io/github/license/neocotic/convert-svg.svg?style=flat-square)](https://github.com/neocotic/convert-svg/blob/master/LICENSE.md)
[![Release](https://img.shields.io/github/release/neocotic/convert-svg.svg?style=flat-square)](https://github.com/neocotic/convert-svg)

This monorepo contains the following [Node.js](https://nodejs.org) packages that can convert a SVG into another format
using headless Chromium:

* [convert-svg-core](https://github.com/NotNinja/convert-svg/tree/master/packages/convert-svg-core)
* [convert-svg-test-helper](https://github.com/NotNinja/convert-svg/tree/master/packages/convert-svg-test-helper)
* [convert-svg-to-jpeg](https://github.com/NotNinja/convert-svg/tree/master/packages/convert-svg-to-jpeg)
* [convert-svg-to-png](https://github.com/NotNinja/convert-svg/tree/master/packages/convert-svg-to-png)
* [convert-svg-core](https://github.com/neocotic/convert-svg/tree/master/packages/convert-svg-core)
* [convert-svg-test-helper](https://github.com/neocotic/convert-svg/tree/master/packages/convert-svg-test-helper)
* [convert-svg-to-jpeg](https://github.com/neocotic/convert-svg/tree/master/packages/convert-svg-to-jpeg)
* [convert-svg-to-png](https://github.com/neocotic/convert-svg/tree/master/packages/convert-svg-to-png)

The first two packages are core dependencies for SVG converters, which make up the remainder of the packages, trying to
adhere to the following naming convention:
Expand All @@ -29,7 +29,6 @@ them.

## License

See [LICENSE.md](https://github.com/NotNinja/convert-svg/raw/master/LICENSE.md) for more information on our MIT license.

[![Copyright !ninja](https://cdn.rawgit.com/NotNinja/branding/master/assets/copyright/base/not-ninja-copyright-186x25.png)](https://not.ninja)
Copyright © 2018 Alasdair Mercer

See [LICENSE.md](https://github.com/neocotic/convert-svg/raw/master/LICENSE.md) for more information on our MIT license.
27 changes: 13 additions & 14 deletions packages/convert-svg-core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ The core [Node.js](https://nodejs.org) package for converting SVG into other for
contains the shared logic for all converters. This package is not intended to be used directly to convert SVGs and,
instead, provides core support for SVG conversion.

[![Build Status](https://img.shields.io/travis/NotNinja/convert-svg/develop.svg?style=flat-square)](https://travis-ci.org/NotNinja/convert-svg)
[![License](https://img.shields.io/github/license/NotNinja/convert-svg.svg?style=flat-square)](https://github.com/NotNinja/convert-svg/blob/master/LICENSE.md)
[![Release](https://img.shields.io/github/release/NotNinja/convert-svg.svg?style=flat-square)](https://github.com/NotNinja/convert-svg/tree/master/packages/convert-svg-core)
[![Build Status](https://img.shields.io/travis/neocotic/convert-svg/develop.svg?style=flat-square)](https://travis-ci.org/neocotic/convert-svg)
[![License](https://img.shields.io/github/license/neocotic/convert-svg.svg?style=flat-square)](https://github.com/neocotic/convert-svg/blob/master/LICENSE.md)
[![Release](https://img.shields.io/github/release/neocotic/convert-svg.svg?style=flat-square)](https://github.com/neocotic/convert-svg/tree/master/packages/convert-svg-core)

* [Install](#install)
* [Implementation](#implementation)
Expand All @@ -19,7 +19,7 @@ instead, provides core support for SVG conversion.

If you are looking to install an out-of-the-box SVG converter, check out our converter packages below:

https://github.com/NotNinja/convert-svg
https://github.com/neocotic/convert-svg

Alternatively, if you know what you're doing, you can install using [npm](https://www.npmjs.com):

Expand All @@ -36,15 +36,15 @@ you can contribute.
## Implementation

In order to create a new SVG converter that uses `convert-svg-core`, you'll need to create a new sub-directory for your
package under the [packages](https://github.com/NotNinja/convert-svg/tree/master/packages) directory. Try to follow the
package under the [packages](https://github.com/neocotic/convert-svg/tree/master/packages) directory. Try to follow the
`convert-svg-to-<FORMAT>` naming convention for the converter package name.

Take a look at the other packages in this directory to setup the new package directory. They are all very similar, by
design, as the you should just need to provide the minimal amount of information required to support your intended
output format.

The most important thing that's needed is a implementation of
[convert-svg-core/src/Provider](https://github.com/NotNinja/convert-svg/blob/master/packages/convert-svg-core/src/Provider.js).
[convert-svg-core/src/Provider](https://github.com/neocotic/convert-svg/blob/master/packages/convert-svg-core/src/Provider.js).
This is an abstract class and contains many methods that *must* be implemented. Read the JSDoc for these methods to
understand what's needed. If your intended output format requires additional configuration, make the necessary changes
to `convert-svg-core`, while ensuring that reuse and other converters are kept at the front of your mind.
Expand Down Expand Up @@ -101,26 +101,25 @@ Configure this in your `package.json` file and you're CLI is ready!

Testing your SVG converter actually works is just as important as implementing it. Since `convert-svg-core` contains a
lot of the conversion logic, a
[convert-svg-test-helper](https://github.com/NotNinja/convert-svg/packages/convert-svg-test-helper) package is available
[convert-svg-test-helper](https://github.com/neocotic/convert-svg/packages/convert-svg-test-helper) package is available
to make testing implementations even easier. Again, take a look at the tests for existing SVG converters under the
[packages](https://github.com/NotNinja/convert-svg/tree/master/packages) directory for examples.
[packages](https://github.com/neocotic/convert-svg/tree/master/packages) directory for examples.

## Bugs

If you have any problems with this package or would like to see changes currently in development you can do so
[here](https://github.com/NotNinja/convert-svg/issues).
[here](https://github.com/neocotic/convert-svg/issues).

## Contributors

If you want to contribute, you're a legend! Information on how you can do so can be found in
[CONTRIBUTING.md](https://github.com/NotNinja/convert-svg/blob/master/CONTRIBUTING.md). We want your suggestions and
[CONTRIBUTING.md](https://github.com/neocotic/convert-svg/blob/master/CONTRIBUTING.md). We want your suggestions and
pull requests!

A list of all contributors can be found in [AUTHORS.md](https://github.com/NotNinja/convert-svg/blob/master/AUTHORS.md).
A list of all contributors can be found in [AUTHORS.md](https://github.com/neocotic/convert-svg/blob/master/AUTHORS.md).

## License

See [LICENSE.md](https://github.com/NotNinja/convert-svg/raw/master/LICENSE.md) for more information on our MIT license.

[![Copyright !ninja](https://cdn.rawgit.com/NotNinja/branding/master/assets/copyright/base/not-ninja-copyright-186x25.png)](https://not.ninja)
Copyright © 2018 Alasdair Mercer

See [LICENSE.md](https://github.com/neocotic/convert-svg/raw/master/LICENSE.md) for more information on our MIT license.
8 changes: 4 additions & 4 deletions packages/convert-svg-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"name": "convert-svg-core",
"version": "0.4.0",
"description": "Supports converting SVG into another format using headless Chromium",
"homepage": "https://github.com/NotNinja/convert-svg",
"homepage": "https://github.com/neocotic/convert-svg",
"bugs": {
"url": "https://github.com/NotNinja/convert-svg/issues"
"url": "https://github.com/neocotic/convert-svg/issues"
},
"author": {
"name": "Alasdair Mercer",
"email": "mercer.alasdair@gmail.com",
"url": "https://not.ninja"
"url": "https://neocotic.com"
},
"license": "MIT",
"keywords": [
Expand All @@ -22,7 +22,7 @@
],
"repository": {
"type": "git",
"url": "https://github.com/NotNinja/convert-svg.git"
"url": "https://github.com/neocotic/convert-svg.git"
},
"dependencies": {
"chalk": "^2.3.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/convert-svg-core/src/API.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018 Alasdair Mercer, !ninja
* Copyright (C) 2018 Alasdair Mercer
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion packages/convert-svg-core/src/CLI.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018 Alasdair Mercer, !ninja
* Copyright (C) 2018 Alasdair Mercer
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion packages/convert-svg-core/src/Converter.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018 Alasdair Mercer, !ninja
* Copyright (C) 2018 Alasdair Mercer
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion packages/convert-svg-core/src/Provider.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018 Alasdair Mercer, !ninja
* Copyright (C) 2018 Alasdair Mercer
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion packages/convert-svg-core/src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018 Alasdair Mercer, !ninja
* Copyright (C) 2018 Alasdair Mercer
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion packages/convert-svg-core/test/API.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018 Alasdair Mercer, !ninja
* Copyright (C) 2018 Alasdair Mercer
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion packages/convert-svg-core/test/CLI.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018 Alasdair Mercer, !ninja
* Copyright (C) 2018 Alasdair Mercer
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion packages/convert-svg-core/test/Converter.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018 Alasdair Mercer, !ninja
* Copyright (C) 2018 Alasdair Mercer
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion packages/convert-svg-core/test/Provider.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018 Alasdair Mercer, !ninja
* Copyright (C) 2018 Alasdair Mercer
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion packages/convert-svg-core/test/index.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018 Alasdair Mercer, !ninja
* Copyright (C) 2018 Alasdair Mercer
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading

0 comments on commit ad5aa55

Please sign in to comment.