Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
xtuc committed Jan 31, 2020
1 parent 43834d9 commit 9b659e2
Show file tree
Hide file tree
Showing 14 changed files with 34 additions and 23 deletions.
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,4 @@
# Output of the go coverage tool, specifically when used with LiteIDE
*.out

cmd/packages/packages
cmd/algolia/algolia
cmd/checker/checker
bin/
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
all: algolia checker packages

.PHONY: algolia
algolia:
go build -v -ldflags="-s -w" -o bin/algolia ./cmd/algolia

.PHONY: checker
checker:
go build -v -ldflags="-s -w" -o bin/checker ./cmd/checker

.PHONY: packages
packages:
go build -v -ldflags="-s -w" -o bin/packages ./cmd/packages
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# cdnjs-go
# tools

Repository that contains various tools for maintaining cdnjs.

Expand Down
2 changes: 1 addition & 1 deletion algolia/client.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package algolia

import (
"github.com/xtuc/cdnjs-go/util"
"github.com/cdnjs/tools/util"

"github.com/algolia/algoliasearch-client-go/v3/algolia/opt"
"github.com/algolia/algoliasearch-client-go/v3/algolia/search"
Expand Down
2 changes: 1 addition & 1 deletion cloudstorage/object.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"os"
"path"

"github.com/xtuc/cdnjs-go/util"
"github.com/cdnjs/tools/util"

"cloud.google.com/go/storage"
"golang.org/x/net/context"
Expand Down
12 changes: 6 additions & 6 deletions cmd/algolia/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ import (
"regexp"
"strings"

"github.com/xtuc/cdnjs-go/algolia"
"github.com/xtuc/cdnjs-go/cloudstorage"
"github.com/xtuc/cdnjs-go/github"
"github.com/xtuc/cdnjs-go/packages"
"github.com/xtuc/cdnjs-go/util"
"github.com/cdnjs/tools/algolia"
"github.com/cdnjs/tools/cloudstorage"
"github.com/cdnjs/tools/github"
"github.com/cdnjs/tools/packages"
"github.com/cdnjs/tools/util"

algoliasearch "github.com/algolia/algoliasearch-client-go/v3/algolia/search"
"golang.org/x/net/context"
Expand All @@ -28,7 +28,7 @@ type PackagesJSON struct {
Packages []Package `json:"packages"`
}

// FIXME(sven): remove parsing here in favor of github.com/xtuc/cdnjs-go/packages
// FIXME(sven): remove parsing here in favor of github.com/cdnjs/tools/packages
type Package struct {
Name string `json:"name"`
Filename string `json:"filename"`
Expand Down
Binary file removed cmd/checker/checker
Binary file not shown.
4 changes: 2 additions & 2 deletions cmd/checker/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"fmt"
"path"

"github.com/xtuc/cdnjs-go/packages"
"github.com/xtuc/cdnjs-go/util"
"github.com/cdnjs/tools/packages"
"github.com/cdnjs/tools/util"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions cmd/packages/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
"path"
"path/filepath"

"github.com/xtuc/cdnjs-go/cloudstorage"
"github.com/xtuc/cdnjs-go/packages"
"github.com/xtuc/cdnjs-go/util"
"github.com/cdnjs/tools/cloudstorage"
"github.com/cdnjs/tools/packages"
"github.com/cdnjs/tools/util"

"cloud.google.com/go/storage"
)
Expand Down
2 changes: 1 addition & 1 deletion github/client.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package github

import (
"github.com/xtuc/cdnjs-go/util"
"github.com/cdnjs/tools/util"

githubapi "github.com/google/go-github/github"
"golang.org/x/net/context"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/xtuc/cdnjs-go
module github.com/cdnjs/tools

go 1.13

Expand Down
2 changes: 1 addition & 1 deletion openssl/sri.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"os/exec"

"github.com/xtuc/cdnjs-go/util"
"github.com/cdnjs/tools/util"
)

func CalculateFileSri(filename string) string {
Expand Down
2 changes: 1 addition & 1 deletion packages/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"path/filepath"
"strings"

"github.com/xtuc/cdnjs-go/util"
"github.com/cdnjs/tools/util"
)

// We first list all the versions (and top-level package.json)
Expand Down
4 changes: 2 additions & 2 deletions packages/packages.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"path"
"sort"

"github.com/xtuc/cdnjs-go/openssl"
"github.com/xtuc/cdnjs-go/util"
"github.com/cdnjs/tools/openssl"
"github.com/cdnjs/tools/util"

"github.com/pkg/errors"
)
Expand Down

0 comments on commit 9b659e2

Please sign in to comment.