Skip to content
Permalink
Browse files

Move server files

  • Loading branch information...
jxnblk committed Apr 5, 2017
1 parent e272c56 commit c8dda0463729009b46813b1d0d91a6ae48d857bd
@@ -1,5 +1,4 @@

bundle.js
webpack.config.js
server.js
landing
server
@@ -4,7 +4,7 @@
const fs = require('fs')
const path = require('path')
const cheerio = require('cheerio')
const geomiconsKeys = require('./geomicons-keys')
const geomiconsKeys = require('./server/geomicons-keys')

// Simple Icons
const simpleDir = path.join(__dirname, 'node_modules', 'simple-icons#gh-pages', 'icons')
@@ -135,6 +135,6 @@ const mdFlattened = Object.keys(mdPaths).reduce((a, key, i) => {

const mdJs = `module.exports = ${JSON.stringify(mdFlattened)}`

fs.writeFileSync('simple-icons.js', simpleJs)
fs.writeFileSync('material-design-icons.js', mdJs)
fs.writeFileSync('server/simple-icons.js', simpleJs)
fs.writeFileSync('server/material-design-icons.js', mdJs)

@@ -1,10 +1,10 @@

// todo
// const { paths: reline } = require('reline')
const Icon = require('./Icon')
const geomicons = require('geomicons-open')
const material = require('./material-design-icons')
const simple = require('./simple-icons')
const material = require('./server/material-design-icons')
const simple = require('./server/simple-icons')
const Icon = require('./server/Icon')

module.exports = Object.assign({},
Icon,
@@ -8,8 +8,8 @@
"icons": "node build.js",
"webpack": "webpack -p",
"_postinstall": "napa danleech/simple-icons#gh-pages",
"_start": "./node_modules/micro/bin/micro -p 3000 server.js",
"start": "micro -p 3000 server.js",
"_start": "./node_modules/micro/bin/micro -p 3000 server/index.js",
"start": "micro -p 3000 server/index.js",
"dev": "nodemon --exec 'npm start'"
},
"keywords": [
@@ -43,9 +43,8 @@
"now": {
"alias": "icon.now.sh",
"files": [
"bundle.js",
"landing",
"server.js"
"server",
"server/landing"
]
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,11 +1,12 @@

const webpack = require('webpack')
const path = require('path')

module.exports = {
entry: './landing/entry.js',
entry: './server/landing/entry.js',

output: {
path: __dirname,
path: path.join(__dirname, 'server'),
filename: 'bundle.js'
},

0 comments on commit c8dda04

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