Skip to content

Commit

Permalink
mostly change references to react to svelte
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Ockelmann-Wagner committed Aug 31, 2019
1 parent 359889c commit 4470d99
Show file tree
Hide file tree
Showing 14 changed files with 19 additions and 28 deletions.
5 changes: 0 additions & 5 deletions javascript/webpacker_react-npm-module/README.md

This file was deleted.

5 changes: 5 additions & 0 deletions javascript/webpacker_svelte-npm-module/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# webpacker-svelte

Javascript part for the `webpacker_svelte` Ruby gem.

Please see the project homepage for more details : https://github.com/will-wow/webpacker-svelte
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
{
"name": "webpacker-react",
"name": "webpacker-svelte",
"version": "1.0.0-beta.1",
"description": "Javascript",
"main": "index.js",
"homepage": "https://github.com/renchap/webpacker-react",
"repository": "renchap/webpacker-react",
"homepage": "https://github.com/will-wow/webpacker-svelte",
"repository": "renchap/webpacker-svelte",
"author": {
"name": "Renaud Chaput",
"email": "renchap@gmail.com"
"name": "Will Ockelmann-Wagner",
"email": "will.ockelmann.wagner@gmail.com"
},
"peerDependencies": {
"react": ">= 0.14",
"react-dom": ">= 0.14"
"svelte": ">= 3"
},
"files": [
"index.js",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "webpacker-react-build",
"name": "webpacker-svelte-build",
"private": true,
"scripts": {
"build": "babel src --out-dir dist",
Expand All @@ -12,8 +12,6 @@
"eslint": "^5.3.0",
"eslint-config-airbnb": "^17.0.0",
"eslint-plugin-import": "^2.9.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-react": "^7.7.0",
"prettier": "^1.18.2"
},
"dependencies": {
Expand Down
11 changes: 0 additions & 11 deletions test/example_app/app/javascript/components/hello.jsx

This file was deleted.

5 changes: 5 additions & 0 deletions test/example_app/app/javascript/components/hello.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<script>
export let name;
</script>

<div>Hello, I am {name}!</div>
4 changes: 2 additions & 2 deletions test/example_app/app/javascript/packs/a.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import WebpackerReact from 'webpacker-react';
import HelloReact from 'components/hello';
import WebpackerSvelte from 'webpacker-svelte';
import HelloSvelte from 'components/hello';

const A = (props) => <div>Component A</div>;

Expand Down

0 comments on commit 4470d99

Please sign in to comment.