Code files

This commit is contained in:
Akhil
2017-07-31 11:33:31 +05:30
parent 073a63ebdd
commit b9ae409ec0
801 changed files with 17535 additions and 0 deletions
@@ -0,0 +1,13 @@
const express = require('express')
const app = express()
const stylus = require('stylus')
app.get('/some.css', (req, res) => {
const css = stylus(`
body
color:black
`).render()
res.send(css)
})
app.listen(3000)
@@ -0,0 +1,16 @@
{
"name": "app",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"express": "^4.15.0",
"stylus": "^0.54.5"
}
}
@@ -0,0 +1,15 @@
const express = require('express')
const app = express()
const stylus = require('stylus')
const debug = require('debug')('my-app')
app.get('/some.css', (req, res) => {
debug('css requested')
const css = stylus(`
body
color:black
`).render()
res.send(css)
})
app.listen(3000)
@@ -0,0 +1,17 @@
{
"name": "app",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"debug": "^2.6.2",
"express": "^4.15.0",
"stylus": "^0.54.5"
}
}
@@ -0,0 +1,13 @@
const express = require('express')
const app = express()
const stylus = require('stylus')
app.get('/some.css', (req, res) => {
const css = stylus(`
body
color:black
`).render()
res.send(css)
})
app.listen(3000)
@@ -0,0 +1,19 @@
{
"name": "app",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "node index.js",
"prod": "node -r pino-debug index.js"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"express": "^4.15.0",
"pino-debug": "^1.0.3",
"stylus": "^0.54.5"
}
}
@@ -0,0 +1,18 @@
{
"name": "app",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"express": "^4.15.0",
"pino-debug": "^1.0.2",
"stylus": "^0.54.5"
}
}