forked from songkick/replaceinfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
22 lines (22 loc) · 888 Bytes
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
"name": "example-hashmark",
"version": "0.0.0",
"description": "hashmark + replaceinfiles integration example",
"private": true,
"scripts": {
"prebuild": "rm -rf dist/*.* dist/assets",
"build": "for step in 'assets' 'js' 'css' 'mark' 'html'; do npm run build:$step; done",
"build:assets": "cp -r src/assets dist",
"build:js": "cp src/*.js dist",
"build:css": "cp src/*.css dist",
"build:mark": "hashmark -c dist -r -l 6 'assets/**/*.*' '{dir}/{name}-{hash}{ext}' | replaceinfiles -S -s 'dist/*.css' -d '{dir}/{base}' && hashmark -s -c dist -r -l 6 '*.{css,js}' '{dir}/{name}-{hash}{ext}'",
"build:html": "injectassets -s src/index.html -o dist/index.html -d dist -g '*.{css,js}'"
},
"author": "Arnaud Rinquin",
"license": "MIT",
"devDependencies": {
"hashmark": "3.1.0",
"injectassets": "1.0.2",
"replaceinfiles": "1.1.1"
}
}