File tree Expand file tree Collapse file tree 4 files changed +12
-2
lines changed Expand file tree Collapse file tree 4 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"analytics": false,
3
- "directory": "static/bower_components"
3
+ "directory": "static/bower_components",
4
+ "tmp": "./.tmp_bower"
4
5
}
Original file line number Diff line number Diff line change 1
1
prefix = ./node_modules
2
2
cache = ./.npm
3
+ tmp = ./.tmp_npm
3
4
HOME = .npmhome
4
5
cwd = .
Original file line number Diff line number Diff line change 1
1
SHELL := bash
2
2
PATH := bin:${PATH}
3
3
DATE := ` date ' +%Y%m%d' `
4
+ PWD :=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST ) ) ) )
4
5
5
6
6
7
build : src/ node_modules/ static/bower_components/ static/assets/css/highlight.css
15
16
cd ..; \
16
17
fi
17
18
19
+
18
20
static/bower_components/ : node_modules/
19
21
node_modules/.bin/bower install
20
22
23
+
21
24
static/assets/css/highlight.css : node_modules
22
25
cp node_modules/highlight.js/styles/solarized_dark.css static/assets/css/highlight.css
23
26
39
42
npm run serve
40
43
41
44
45
+ docker : src/ node_modules/ static/bower_components/
46
+ docker run -it --rm -v " ${PWD} " :/usr/src/app -w /usr/src/app node:4 node build.js
47
+
48
+
42
49
.PHONY : build
Original file line number Diff line number Diff line change 20
20
},
21
21
"scripts" : {
22
22
"serve" : " node serve" ,
23
- "build" : " node build"
23
+ "build" : " node build" ,
24
+ "start" : " node build"
24
25
},
25
26
"devDependencies" : {
26
27
"bower" : " *" ,
You can’t perform that action at this time.
0 commit comments