Skip to content
Permalink
Browse files

Remove old javascript things!

  • Loading branch information...
chriseidhof committed Jul 23, 2019
1 parent 94815cf commit 00dd4d085c5e0b9402383c3cde18a0c0cb4c972f
@@ -14,15 +14,6 @@ RUN git clone -b '0.29.0' https://github.com/commonmark/cmark
RUN make -C cmark INSTALL_PREFIX=/usr/local
RUN make -C cmark install

# javascript deps

RUN apt-get install --yes curl nodejs npm

RUN update-alternatives --install /usr/bin/node node /usr/bin/nodejs 10

COPY package.json package-lock.json ./
RUN npm install

COPY assets ./assets
COPY Package.swift LinuxMain.swift ./
RUN swift package update
@@ -78,21 +78,6 @@ createdb swifttalk_dev

### Compiling Assets

Make sure to have browserify installed, then run:

```sh
npm install -g browserify
```

Then generate the javascript:

```sh
npm install
browserify assets_source/javascripts/application.js > assets/application.js
```

You can also use `--debug` to include source maps (for better debugging).

To build the stylesheets:

```sh
@@ -118,7 +118,6 @@ extension LayoutConfig {
]),
.hashedStylesheet(href: "/assets/stylesheets/application.css"),
includeRecurlyJS ? .script(src: "https://js.recurly.com/v4/recurly.js") : .none,
.hashedScript(src: "/assets/application.js"),
googleAnalytics,
] + structured)
let logo = Node.link(to: URL(string: "https://www.objc.io")!, class: "flex-none outline-none mr++ flex", [
@@ -179,7 +178,6 @@ extension LayoutConfig {
]),
.hashedStylesheet(href: "/assets/stylesheets/application.css"),
includeRecurlyJS ? .script(src: "https://js.recurly.com/v4/recurly.js") : .none,
.hashedScript(src: "/assets/application.js"),
googleAnalytics,
] + structured)
let linkClasses: Class = "no-decoration color-inherit hover-color-black mr"

0 comments on commit 00dd4d0

Please sign in to comment.
You can’t perform that action at this time.