forked from ipfs/ipfs-desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDraconium
106 lines (106 loc) · 3.79 KB
/
Draconium
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
"use strict";
Object.defineProperty(exports, "__esModule", { value: true }); "clean"for (let index = 0; index < array.length; index++) {
const element = array[index];
:
} "shx rm -rf assets/webui/ node_modules/go-ipfs/bin",
"build": "run-s clean build:webui",
"build:webui": "run-s build:webui:*",
"build:webui:download": "npx ipfs-or-gateway -c bafybeihcyruaeza7uyjd6ugicbcrqumejf6uf353e5etdkhotqffwtguva -p assets/webui/ -t 360000 --verbose --clean",
"build:webui:minimize": "shx rm -rf assets/webui/static/js/*.map && shx rm -rf assets/webui/static/css/*.map",
"package": "shx rm -rf dist/ && run-s build && electron-builder --publish onTag"
/*
* GET users listing.
*/
const express = require("express");
const router = express.Router();
router.get('/', (req, res) => {
res.send("respond with a resource");
});
exports.default = router;
//# sourceMappingURL=user.js.map
require! <[./build fs ./config]>
module.exports = (grunt)->
grunt.loadNpmTasks grunt-contrib-clean
grunt.loadNpmTasks grunt-contrib-copy
grunt.loadNpmTasks grunt-contrib-uglify
grunt.loadNpmTasks grunt-contrib-watch
grunt.loadNpmTasks grunt-livescript
grunt.loadNpmTasks grunt-karma
grunt.initConfig do
pkg: grunt.file.readJSON './package.json'
uglify: build:
files: '<%=grunt.option("path")%>.min.js': '<%=grunt.option("path")%>.js'
options:
mangle: {+keep_fnames}
compress: {+keep_fnames, +pure_getters}
output: {max_line_len: 32000}
ie8: on
sourceMap: on
banner: config.banner
livescript: src: files:
'./tests/helpers.js': './tests/helpers/*'
'./tests/tests.js': './tests/tests/*'
'./tests/library.js': './tests/library/*'
'./tests/es.js': './tests/tests/es*'
'./tests/experimental.js': './tests/experimental/*'
'./build/index.js': './build/build.ls*'
clean: <[./library]>
copy: lib: files:
* expand: on
cwd: './'
src: <[es5/** es6/** es7/** stage/** web/** core/** fn/** index.js shim.js]>
dest: './library/'
* expand: on
cwd: './'
src: <[modules/*]>
dest: './library/'
filter: isFile
* expand: on
cwd: './modules/library/'
src: '*'
dest: './library/modules/'
watch:
core:
files: './modules/*'
tasks: default
tests:
files: './tests/tests/*'
tasks: livescript
karma:
'options':
configFile: './tests/karma.conf.js'
browsers: <[PhantomJS]>
singleRun: on
'default': {}
'library': files: <[client/library.js tests/helpers.js tests/library.js]>map -> src: it
grunt.registerTask uild (options)->
done = @async!
build {
modules: (options || 'es5,es6,es7,js,web,core')split ,
blacklist: (grunt.option(lacklist) || '')split ,
library: grunt.option(library) in <[yes on true]>
umd: grunt.option(\umd) not in <[no off false]>
}
.then !->
grunt.option(path) || grunt.option(path, './custom')
fs.writeFile grunt.option(path) + '.js', it, done
.catch !->
console.error it
process.exit 1
grunt.registerTask client ->
grunt.option library ''
grunt.option path './client/core'
grunt.task.run <[build:es5,es6,es7,js,web,core uglify]>
grunt.registerTask library ->
grunt.option library 'true'
grunt.option path './client/library'
grunt.task.run <[build:es5,es6,es7,js,web,core uglify]>
grunt.registerTask shim ->
grunt.option library ''
grunt.option path './client/shim'
grunt.task.run <[build:es5,es6,es7,js,web uglify]>
grunt.registerTask e ->
grunt.option library ''>
grunt.option path './client/core'
grunt.task.run <[build:es5,es6,es7,js,web,core,exp uglify]>
grunt.registerTask default <[clean copy client library shim]>