Skip to content

Commit

Permalink
remove webpacker:install
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzuo committed Aug 25, 2020
1 parent 3d978de commit 28b682c
Show file tree
Hide file tree
Showing 32 changed files with 166 additions and 257 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## Unreleased

## 0.4.1

- remove `g webpacker:install`
- move webpacker generator to packages generator

## 0.4.0

- remove `g storybook:install`
Expand Down
1 change: 0 additions & 1 deletion cmd/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ func init() {
generateCmd.AddCommand(generate.MigrationCmd)
generateCmd.AddCommand(generate.ModelCmd)
generateCmd.AddCommand(generate.GraphqlCmd)
generateCmd.AddCommand(generate.WebpackerInstallCmd)
generateCmd.AddCommand(generate.PackagesCmd)

rootCmd.AddCommand(generateCmd)
Expand Down
24 changes: 0 additions & 24 deletions cmd/generate/webpacker.go

This file was deleted.

7 changes: 0 additions & 7 deletions generators/new/new.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"github.com/gobuffalo/packr/v2"
"github.com/swiftcarrot/dashi/generators/dashboard"
"github.com/swiftcarrot/dashi/generators/packages"
"github.com/swiftcarrot/dashi/generators/webpacker"
)

func New(opts *Options) (*genny.Group, error) {
Expand Down Expand Up @@ -47,12 +46,6 @@ func New(opts *Options) (*genny.Group, error) {
}
gg.Add(packages)

webpacker, err := webpacker.New(&webpacker.Options{})
if err != nil {
return nil, err
}
gg.Add(webpacker)

dashboard, err := dashboard.New(&dashboard.Options{
Name: opts.Name,
})
Expand Down
14 changes: 14 additions & 0 deletions generators/packages/templates/packages/app/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "app",
"version": "0.1.0",
"private": true,
"main": "./src/index.js",
"scripts": {
"start": "NODE_ENV=development webpacker serve",
"build": "NODE_ENV=production webpacker build"
},
"dependencies": {
"react": "^16.12.0",
"react-dom": "^16.12.0"
}
}
9 changes: 9 additions & 0 deletions generators/packages/templates/packages/app/public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<title>App</title>
</head>
<body>
<div id="root"></div>
</body>
</html>
8 changes: 8 additions & 0 deletions generators/packages/templates/packages/app/src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import React from 'react';
import { render } from 'react-dom';

const App = () => {
return <div>App</div>;
};

render(<App />, document.getElementById('root'));
13 changes: 0 additions & 13 deletions generators/webpacker/options.go

This file was deleted.

15 changes: 0 additions & 15 deletions generators/webpacker/options_test.go

This file was deleted.

8 changes: 0 additions & 8 deletions generators/webpacker/webpacker-packr.go

This file was deleted.

33 changes: 0 additions & 33 deletions generators/webpacker/webpacker.go

This file was deleted.

28 changes: 0 additions & 28 deletions generators/webpacker/webpacker_test.go

This file was deleted.

258 changes: 130 additions & 128 deletions packrd/packed-packr.go

Large diffs are not rendered by default.

0 comments on commit 28b682c

Please sign in to comment.