Skip to content

Commit c587945

Browse files
committed
Add new Webpacker 2 folder
1 parent 4fad8b3 commit c587945

File tree

108 files changed

+6059
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+6059
-2
lines changed

Rakefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ task :test_setup do
9898
Dir.chdir("./test/dummy_webpacker1") do
9999
`yarn install`
100100
end
101+
Dir.chdir("./test/dummy_webpacker2") do
102+
`yarn install`
103+
end
104+
Dir.chdir("./test/dummy_webpacker3") do
105+
`yarn install`
106+
end
101107
end
102108

103109
task test: :test_setup

test/dummy_webpacker1/config/webpacker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ test:
4444
compile: true
4545

4646
# Compile test packs to a separate directory
47-
public_output_path: packs-test
47+
# public_output_path: packs-test
4848

4949
production:
5050
<<: *default

test/dummy_webpacker2/.babelrc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"presets": [
3+
[
4+
"env",
5+
{
6+
"modules": false,
7+
"targets": {
8+
"browsers": "> 1%",
9+
"uglify": true
10+
},
11+
"useBuiltIns": true
12+
}
13+
],
14+
"react"
15+
]
16+
}

test/dummy_webpacker2/.gitignore

Whitespace-only changes.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
plugins:
2+
postcss-smart-import: {}
3+
precss: {}
4+
autoprefixer: {}

test/dummy_webpacker2/README.rdoc

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
== README
2+
3+
This README would normally document whatever steps are necessary to get the
4+
application up and running.
5+
6+
Things you may want to cover:
7+
8+
* Ruby version
9+
10+
* System dependencies
11+
12+
* Configuration
13+
14+
* Database creation
15+
16+
* Database initialization
17+
18+
* How to run the test suite
19+
20+
* Services (job queues, cache servers, search engines, etc.)
21+
22+
* Deployment instructions
23+
24+
* ...
25+
26+
27+
Please feel free to use a different markup language if you do not plan to run
28+
<tt>rake doc:app</tt>.

test/dummy_webpacker2/Rakefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Add your own tasks in files placed in lib/tasks ending in .rake,
2+
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3+
4+
require File.expand_path('../config/application', __FILE__)
5+
6+
Dummy::Application.load_tasks
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// Sprockets 4 expects this file
2+
//
3+
//= link application.js
4+
//= link turbolinks_only.js
5+
//= link application.css

test/dummy_webpacker2/app/assets/images/.keep

Whitespace-only changes.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// This is a manifest file that'll be compiled into application.js, which will include all the files
2+
// listed below.
3+
//
4+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5+
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6+
//
7+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8+
// compiled file.
9+
//
10+
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
11+
// about supported directives.
12+
//
13+
//
14+
// es5-shim is necessary for PhantomJS to pass tests. See https://github.com/facebook/react/issues/303
15+
//
16+
//= require turbolinks
17+
//= require es5-shim/es5-shim
18+
//= require react
19+
//= require react_ujs
20+
//= require_tree ./components
21+
//= require ./pages

0 commit comments

Comments
 (0)