Fix build scripts
This commit is contained in:
parent
5bbb6f91a3
commit
7d077657a6
2
Makefile
2
Makefile
|
|
@ -11,7 +11,7 @@ build: $(LIB)
|
|||
|
||||
minify: $(TARGET)
|
||||
@npm run minify
|
||||
@./tools/trim $(TARGET_MIN)
|
||||
@./tools/trim.js $(TARGET_MIN)
|
||||
|
||||
test:
|
||||
@npm run test
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
"scripts": {
|
||||
"build": "rollup -c rollup.config.js",
|
||||
"minify": "terser -cm --comments '/^!/' -o css-doodle.min.js --ecma 6 -b ascii_only=true -- css-doodle.js",
|
||||
"trim": "./tools/trim css-doodle.min.js",
|
||||
"trim": "./tools/trim.js css-doodle.min.js",
|
||||
"test": "ava",
|
||||
"test:watch": "npm test -- --watch"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
|
||||
const target = process.argv[2];
|
||||
if (!target) {
|
||||
Loading…
Reference in New Issue