Browse Source

Pull request #3413: 无jira 去掉grunt

Merge in VISUAL/fineui from ~DAILER/fineui:master to master

* commit '8d827f15d56b578c53fa1589e41b4a10b2bfb424':
  无jira 去掉grunt
  Update demo/app.js
research/test
Dailer-刘荣歆 2 years ago
parent
commit
8cee302d0a
  1. 3
      demo/app.js
  2. 9
      lib/postbuild/postbuild.js
  3. 1
      package.json

3
demo/app.js

@ -1,6 +1,9 @@
Demo = { Demo = {
version: 1.0 version: 1.0
}; };
BI.EVENT_BLUR = false
BI.$(function () { BI.$(function () {
var ref; var ref;

9
lib/postbuild/postbuild.js

@ -1,9 +1,9 @@
const { resolve } = require("path"); const { resolve } = require("path");
const { existsSync, mkdirSync, readFileSync, writeFileSync } = require("fs"); const { existsSync, mkdirSync, readFileSync, writeFileSync } = require("fs");
const rimraf = require("rimraf"); const rimraf = require("rimraf");
const grunt = require("grunt");
const concat = require("concat"); const concat = require("concat");
const { config } = require("../../webpack/attachments") const glob = require("glob");
const { config } = require("../../webpack/attachments");
const dest = resolve(__dirname, '../../dist'); const dest = resolve(__dirname, '../../dist');
@ -25,10 +25,7 @@ const deleteList = [
"2.0/fineui_without_normalize.min.js.map", "2.0/fineui_without_normalize.min.js.map",
"fineui_without_normalize.min.js", "fineui_without_normalize.min.js",
"fineui_without_normalize.min.js.map", "fineui_without_normalize.min.js.map",
].concat(grunt.file.expand({}, [ ].concat(glob.sync("dist/**/*.css.map").map(name => name.replace("dist/", "")));
"dist/*.css.map",
"dist/**/*.css.map",
]).map(name => name.replace("dist/", "")));
deleteList.forEach(filename => { deleteList.forEach(filename => {
const sourcefile = resolve(dest, `./${filename}`); const sourcefile = resolve(dest, `./${filename}`);

1
package.json

@ -29,7 +29,6 @@
"express": "4.15.2", "express": "4.15.2",
"fork-ts-checker-webpack-plugin": "1.4.3", "fork-ts-checker-webpack-plugin": "1.4.3",
"glob": "^7.2.0", "glob": "^7.2.0",
"grunt": "^1.0.1",
"html-webpack-plugin": "3.2.0", "html-webpack-plugin": "3.2.0",
"husky": "^3.1.0", "husky": "^3.1.0",
"karma": "3.1.4", "karma": "3.1.4",

Loading…
Cancel
Save