Skip to content
This repository has been archived by the owner on Apr 10, 2018. It is now read-only.

Commit

Permalink
Remove support for pre-v6 styles
Browse files Browse the repository at this point in the history
  • Loading branch information
jfirebaugh committed Aug 13, 2015
1 parent 8d0ba25 commit ba700ea
Show file tree
Hide file tree
Showing 16 changed files with 3 additions and 4,126 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ Will validate the given style JSON and print errors to stdout. Provide a
### Migrations

This repo contains scripts for migrating GL styles of any version to the latest version
(currently v5). Migrate a style like this:
(currently v8). Migrate a style like this:

```bash
$ gl-style-migrate bright-v0.json > bright-v5.json
$ gl-style-migrate bright-v7.json > bright-v8.json
```

To migrate a file in place, you can use the `sponge` utility from the `moreutils` package:
Expand Down
4 changes: 0 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
exports.v2 = require('./reference/v2.json');
exports.v3 = require('./reference/v3.json');
exports.v4 = require('./reference/v4.json');
exports.v5 = require('./reference/v5.json');
exports.v6 = require('./reference/v6.json');
exports.v7 = require('./reference/v7.json');
exports.v8 = require('./reference/v8.json');
Expand Down
21 changes: 0 additions & 21 deletions lib/migrate.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,6 @@
module.exports = function(style) {
var migrated = false;

if (style.version === 2) {
style = require('../migrations/v3')(style);
migrated = true;
}

if (style.version === 3) {
style = require('../migrations/v4')(style);
style = require('../migrations/v4-bonus')(style);
migrated = true;
}

if (style.version === 4) {
style = require('../migrations/v5')(style);
migrated = true;
}

if (style.version === 5) {
style = require('../migrations/v6')(style);
migrated = true;
}

if (style.version === 6) {
style = require('../migrations/v7')(style);
migrated = true;
Expand Down
159 changes: 0 additions & 159 deletions migrations/v3.js

This file was deleted.

141 changes: 0 additions & 141 deletions migrations/v4-bonus.js

This file was deleted.

Loading

0 comments on commit ba700ea

Please sign in to comment.