Skip to content

Commit fcc3a30

Browse files
committed
article wip
1 parent 1c177aa commit fcc3a30

8 files changed

Lines changed: 360 additions & 329 deletions

File tree

package-lock.json

Lines changed: 100 additions & 177 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,20 @@
2323
"url": "https://github.com/ryansolid/solid-realworld/issues"
2424
},
2525
"homepage": "https://github.com/ryansolid/solid-realworld#readme",
26+
"dependencies": {
27+
"marked": "0.6.3",
28+
"solid-js": "0.15.4"
29+
},
2630
"devDependencies": {
2731
"@babel/core": "7.7.4",
2832
"@babel/plugin-syntax-dynamic-import": "7.2.0",
29-
"babel-preset-solid": "0.2.3",
30-
"rollup": "1.27.8",
33+
"babel-preset-solid": "0.15.4",
34+
"rollup": "1.27.14",
3135
"rollup-plugin-babel": "4.3.3",
3236
"rollup-plugin-clear": "^2.0.7",
37+
"rollup-plugin-commonjs": "^10.1.0",
3338
"rollup-plugin-node-resolve": "5.2.0",
3439
"rollup-plugin-serve": "^1.0.1",
35-
"rollup-plugin-terser": "5.1.2",
36-
"solid-js": "0.14.7"
40+
"rollup-plugin-terser": "^5.1.3"
3741
}
3842
}

rollup.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import resolve from "rollup-plugin-node-resolve";
2+
import commonjs from "rollup-plugin-commonjs";
23
import babel from "rollup-plugin-babel";
34
import clear from "rollup-plugin-clear";
45
import { terser } from "rollup-plugin-terser";
@@ -15,6 +16,7 @@ const plugins = [
1516
plugins: ["@babel/syntax-dynamic-import"]
1617
}),
1718
resolve({ extensions: [".js", ".jsx"] }),
19+
commonjs(),
1820
!process.env.production &&
1921
serve({ contentBase: "", host: "0.0.0.0", port: 5000 }),
2022
process.env.production && terser()

src/App.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ export default () => {
2424
<NavBar />
2525
<Show when={CommonStore.state.appLoaded}>
2626
<Switch>
27-
<Match when={match("editor", /^#\/editor\/?(.*)/)}><Editor {...getParams()} /></Match>
28-
<Match when={match("settings", /^#\/settings/)}><Settings /></Match>
29-
<Match when={match("login", /^#\/login/)}><Auth /></Match>
30-
<Match when={match("register", /^#\/register/)}><Auth /></Match>
31-
<Match when={match("article", /^#\/article\/(.*)/)}><Article {...getParams()} /></Match>
32-
<Match when={match("profile", /^#\/@([^/]*)\/?(favorites)?/)}><Profile {...getParams()} /></Match>
27+
<Match when={match("editor", /^editor\/?(.*)/)}><Editor {...getParams()} /></Match>
28+
<Match when={match("settings", /^settings/)}><Settings /></Match>
29+
<Match when={match("login", /^login/)}><Auth /></Match>
30+
<Match when={match("register", /^register/)}><Auth /></Match>
31+
<Match when={match("article", /^article\/(.*)/)}><Article {...getParams()} /></Match>
32+
<Match when={match("profile", /^@([^/]*)\/?(favorites)?/)}><Profile {...getParams()} /></Match>
3333
<Match when={match("", /^#?$/)}><Home /></Match>
3434
</Switch>
3535
</Show>

0 commit comments

Comments
 (0)