@es-pkg/compile 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -0
- package/cjs/src/index.d.ts +3 -0
- package/cjs/src/index.js +155 -0
- package/esm/src/index.d.ts +3 -0
- package/esm/src/index.js +168 -0
- package/package.json +42 -0
package/README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
@es-pkg/compile
|
|
4
|
+
===============
|
|
5
|
+
|
|
6
|
+
组件打包工具
|
|
7
|
+
|
|
8
|
+
[](https://www.npmjs.com/package/@es-pkg/compile) [](https://www.npmjs.com/package/@es-pkg/compile) [](https://www.npmjs.com/package/@es-pkg/compile) [](https://github.com/robertpanvip/es-pkg.git)
|
|
9
|
+
|
|
10
|
+
📦 **Installation**
|
|
11
|
+
-------------------
|
|
12
|
+
|
|
13
|
+
npm install @es-pkg/compile
|
|
14
|
+
|
|
15
|
+
🏠 Exports
|
|
16
|
+
----------
|
|
17
|
+
|
|
18
|
+
###
|
|
19
|
+
|
|
20
|
+
|参数|类型|
|
|
21
|
+
|---|---|
|
|
22
|
+
|🎗️default|`Functions`|
|
|
23
|
+
|
|
24
|
+
**🎗️Functions**
|
|
25
|
+
----------------
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
#### default
|
|
31
|
+
|
|
32
|
+
* default(done:`Undertaker.TaskCallback`): `void` | `EventEmitter`<`DefaultEventMap`\> | `internal.Stream` | `"child_process".ChildProcess` | `asyncDone.Observable`<`any`\> | `PromiseLike`<`any`\>
|
package/cjs/src/index.js
ADDED
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
|
+
var _gulp = _interopRequireWildcard(require("@es-pkg/gulp"));
|
|
11
|
+
var _gulpLogger = _interopRequireDefault(require("@es-pkg/gulp-logger"));
|
|
12
|
+
var _gulpPlumber = _interopRequireDefault(require("gulp-plumber"));
|
|
13
|
+
var _gulpTypescript = _interopRequireDefault(require("gulp-typescript"));
|
|
14
|
+
var _typescript = _interopRequireDefault(require("typescript"));
|
|
15
|
+
var _gulpBabel = _interopRequireDefault(require("gulp-babel"));
|
|
16
|
+
var _gulpSass = _interopRequireDefault(require("gulp-sass"));
|
|
17
|
+
var _gulpRename = _interopRequireDefault(require("gulp-rename"));
|
|
18
|
+
var _gulpAutoprefixer = _interopRequireDefault(require("gulp-autoprefixer"));
|
|
19
|
+
var _sass = _interopRequireDefault(require("sass"));
|
|
20
|
+
var _utils = require("@es-pkg/utils");
|
|
21
|
+
var _config = require("@es-pkg/config");
|
|
22
|
+
var _path = _interopRequireDefault(require("path"));
|
|
23
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
24
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
25
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
26
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
27
|
+
var sass = (0, _gulpSass.default)(_sass.default);
|
|
28
|
+
var include = (0, _config.getTsconfigIncludeFiles)();
|
|
29
|
+
function getMatchFiles(callback) {
|
|
30
|
+
var contains = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
31
|
+
return include.flatMap(function (item) {
|
|
32
|
+
if (contains && !item.isDirectory) {
|
|
33
|
+
return [item.path];
|
|
34
|
+
}
|
|
35
|
+
var res = callback(item.path);
|
|
36
|
+
return Array.isArray(res) ? res : [res];
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
var clean = function clean() {
|
|
40
|
+
(0, _utils.log)("\u6E05\u9664 ".concat((0, _config.relativeToApp)(_config.config.es), " & ").concat((0, _config.relativeToApp)(_config.config.cjs), " \u76EE\u5F55---\u5F00\u59CB"));
|
|
41
|
+
var promises = [(0, _utils.remove)(_config.config.publishDir, true), (0, _utils.remove)(_config.config.es, true), (0, _utils.remove)(_config.config.cjs, true), (0, _utils.remove)(_config.config.iife, true)];
|
|
42
|
+
return Promise.all(promises).then(function (res) {
|
|
43
|
+
(0, _utils.log)("\u6E05\u9664 ".concat((0, _config.relativeToApp)(_config.config.es), " & ").concat((0, _config.relativeToApp)(_config.config.cjs), " \u76EE\u5F55---\u7ED3\u675F"));
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
var dealScss = function dealScss() {
|
|
47
|
+
var copy = function copy(dest) {
|
|
48
|
+
return function () {
|
|
49
|
+
return _gulp.default.src(getMatchFiles(function (path) {
|
|
50
|
+
return "".concat(path, "/**/*.scss");
|
|
51
|
+
}, false)).pipe((0, _gulpLogger.default)({
|
|
52
|
+
before: "copyScss...",
|
|
53
|
+
after: 'copyScss complete!',
|
|
54
|
+
extname: '.scss',
|
|
55
|
+
showChange: true
|
|
56
|
+
})).pipe(_gulp.default.dest(dest));
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
var compileScss = function compileScss() {
|
|
60
|
+
return _gulp.default.src(getMatchFiles(function (path) {
|
|
61
|
+
return "".concat(path, "/**/*.scss");
|
|
62
|
+
}, false)).pipe(sass({
|
|
63
|
+
outputStyle: 'compressed',
|
|
64
|
+
outFile: 'xx'
|
|
65
|
+
}).on('error', sass.logError)).pipe((0, _gulpAutoprefixer.default)()).pipe((0, _gulpRename.default)(function (path) {
|
|
66
|
+
path.extname = ".min.css";
|
|
67
|
+
})).pipe((0, _gulpPlumber.default)()).pipe(_gulp.default.dest(_config.config.cjs));
|
|
68
|
+
};
|
|
69
|
+
return (0, _gulp.parallel)(copy(_config.config.es), copy(_config.config.cjs), compileScss);
|
|
70
|
+
};
|
|
71
|
+
var copyScssToLib = function copyScssToLib() {
|
|
72
|
+
return _gulp.default.src(getMatchFiles(function (path) {
|
|
73
|
+
return ["".concat(path, "/**/*.scss"), "".concat(path, "/**/*.less")];
|
|
74
|
+
}, false)).pipe((0, _gulpLogger.default)({
|
|
75
|
+
before: 'copyScssToLib...',
|
|
76
|
+
after: 'copyScssToLib complete!',
|
|
77
|
+
extname: '.scss',
|
|
78
|
+
showChange: true
|
|
79
|
+
})).pipe(_gulp.default.dest(_config.config.cjs));
|
|
80
|
+
};
|
|
81
|
+
var compileEs = function compileEs() {
|
|
82
|
+
var tsConfig = _typescript.default.readConfigFile((0, _config.resolveApp)('tsconfig.json'), _typescript.default.sys.readFile);
|
|
83
|
+
if (tsConfig.error) {
|
|
84
|
+
console.log(tsConfig.error.messageText);
|
|
85
|
+
}
|
|
86
|
+
var compile = function compile(src, target) {
|
|
87
|
+
return _gulp.default.src(src).pipe((0, _gulpLogger.default)({
|
|
88
|
+
before: 'generate ...es ...',
|
|
89
|
+
after: 'generate ...es complete!',
|
|
90
|
+
extname: '.ts',
|
|
91
|
+
showChange: false
|
|
92
|
+
})).pipe((0, _gulpTypescript.default)(_objectSpread(_objectSpread({
|
|
93
|
+
"jsx": "react",
|
|
94
|
+
"noImplicitAny": true
|
|
95
|
+
}, tsConfig.config.compilerOptions), {}, {
|
|
96
|
+
"module": "esnext",
|
|
97
|
+
"target": "esnext",
|
|
98
|
+
"newLine": 'crlf',
|
|
99
|
+
"allowImportingTsExtensions": false,
|
|
100
|
+
"baseUrl": "./",
|
|
101
|
+
"isolatedModules": false,
|
|
102
|
+
"removeComments": false,
|
|
103
|
+
"declaration": true,
|
|
104
|
+
"noEmit": false,
|
|
105
|
+
"esModuleInterop": true,
|
|
106
|
+
"resolveJsonModule": true,
|
|
107
|
+
"skipLibCheck": true,
|
|
108
|
+
"moduleResolution": 'node'
|
|
109
|
+
}))).on('error', function (e) {
|
|
110
|
+
console.error(e);
|
|
111
|
+
throw e;
|
|
112
|
+
}).pipe((0, _gulpLogger.default)({
|
|
113
|
+
before: 'writing to es...',
|
|
114
|
+
after: 'write complete!',
|
|
115
|
+
extname: '.ts',
|
|
116
|
+
showChange: true,
|
|
117
|
+
display: 'name'
|
|
118
|
+
})).pipe((0, _gulpPlumber.default)()).pipe(_gulp.default.dest(target)).pipe(_gulp.default.src(_config.config.include.map(function (item) {
|
|
119
|
+
return "".concat(item, "/**/*.json");
|
|
120
|
+
}))).pipe(_gulp.default.dest(target));
|
|
121
|
+
};
|
|
122
|
+
var tasks = include.map(function (item) {
|
|
123
|
+
var isDirectory = item.isDirectory;
|
|
124
|
+
return function () {
|
|
125
|
+
return compile(isDirectory ? ["".concat(item.path, "/**/*"), "!".concat(item.path, "/**/__test__/!**"), "".concat(_config.config.typings, "/**/*")] : [item.path], isDirectory && include.length > 1 ? _path.default.join(_config.config.es, _path.default.basename(item.path)) : _config.config.es);
|
|
126
|
+
};
|
|
127
|
+
});
|
|
128
|
+
return (0, _gulp.series)(tasks);
|
|
129
|
+
};
|
|
130
|
+
var copyTds = function copyTds() {
|
|
131
|
+
return _gulp.default.src(["".concat(_config.config.es, "/**/*.d.ts")]).pipe(_gulp.default.dest(_config.config.cjs));
|
|
132
|
+
};
|
|
133
|
+
var compileLib = function compileLib() {
|
|
134
|
+
return _gulp.default.src(["".concat(_config.config.es, "/**/*.js")]).pipe((0, _gulpLogger.default)({
|
|
135
|
+
before: 'Starting transform ...',
|
|
136
|
+
after: 'transform complete!',
|
|
137
|
+
extname: '.js',
|
|
138
|
+
showChange: true
|
|
139
|
+
})).pipe((0, _gulpBabel.default)({
|
|
140
|
+
"presets": [["@babel/preset-env", {
|
|
141
|
+
"targets": {
|
|
142
|
+
"chrome": "58",
|
|
143
|
+
"ie": "9"
|
|
144
|
+
}
|
|
145
|
+
}], ["@babel/preset-react"]],
|
|
146
|
+
"plugins": ["@babel/plugin-transform-runtime"]
|
|
147
|
+
})).pipe((0, _gulpPlumber.default)()).pipe((0, _gulpLogger.default)({
|
|
148
|
+
before: 'write js ---> ...',
|
|
149
|
+
after: 'write js ---> complete!',
|
|
150
|
+
extname: '.js',
|
|
151
|
+
showChange: true
|
|
152
|
+
})).pipe(_gulp.default.dest(_config.config.cjs));
|
|
153
|
+
};
|
|
154
|
+
var compileEsAndLib = (0, _gulp.series)(compileEs(), copyTds, compileLib);
|
|
155
|
+
var _default = exports.default = (0, _gulp.series)(clean, (0, _gulp.parallel)(dealScss(), copyScssToLib, compileEsAndLib));
|
package/esm/src/index.js
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import gulp, { series, parallel } from "@es-pkg/gulp";
|
|
2
|
+
import logger from "@es-pkg/gulp-logger";
|
|
3
|
+
import plumber from "gulp-plumber";
|
|
4
|
+
import ts from "gulp-typescript";
|
|
5
|
+
import typescript from "typescript";
|
|
6
|
+
import babel from "gulp-babel";
|
|
7
|
+
import gulpSass from "gulp-sass";
|
|
8
|
+
import rename from "gulp-rename";
|
|
9
|
+
import autoPreFixer from "gulp-autoprefixer";
|
|
10
|
+
import Sass from "sass";
|
|
11
|
+
import { remove, log } from "@es-pkg/utils";
|
|
12
|
+
import { config, getTsconfigIncludeFiles, relativeToApp, resolveApp } from "@es-pkg/config";
|
|
13
|
+
import path from "path";
|
|
14
|
+
const sass = gulpSass(Sass);
|
|
15
|
+
const include = getTsconfigIncludeFiles();
|
|
16
|
+
function getMatchFiles(callback, contains = true) {
|
|
17
|
+
return include.flatMap(item => {
|
|
18
|
+
if (contains && !item.isDirectory) {
|
|
19
|
+
return [item.path];
|
|
20
|
+
}
|
|
21
|
+
const res = callback(item.path);
|
|
22
|
+
return Array.isArray(res) ? res : [res];
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
const clean = () => {
|
|
26
|
+
log(`清除 ${relativeToApp(config.es)} & ${relativeToApp(config.cjs)} 目录---开始`);
|
|
27
|
+
const promises = [
|
|
28
|
+
remove(config.publishDir, true),
|
|
29
|
+
remove(config.es, true),
|
|
30
|
+
remove(config.cjs, true),
|
|
31
|
+
remove(config.iife, true),
|
|
32
|
+
];
|
|
33
|
+
return Promise.all(promises).then(res => {
|
|
34
|
+
log(`清除 ${relativeToApp(config.es)} & ${relativeToApp(config.cjs)} 目录---结束`);
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
const dealScss = () => {
|
|
38
|
+
const copy = (dest) => {
|
|
39
|
+
return () => gulp.src(getMatchFiles((path) => `${path}/**/*.scss`, false)).pipe(logger({
|
|
40
|
+
before: `copyScss...`,
|
|
41
|
+
after: 'copyScss complete!',
|
|
42
|
+
extname: '.scss',
|
|
43
|
+
showChange: true
|
|
44
|
+
}))
|
|
45
|
+
.pipe(gulp.dest(dest));
|
|
46
|
+
};
|
|
47
|
+
const compileScss = () => {
|
|
48
|
+
return gulp.src(getMatchFiles((path) => `${path}/**/*.scss`, false))
|
|
49
|
+
.pipe(sass({ outputStyle: 'compressed', outFile: 'xx' }).on('error', sass.logError))
|
|
50
|
+
.pipe(autoPreFixer())
|
|
51
|
+
.pipe(rename((path) => {
|
|
52
|
+
path.extname = ".min.css";
|
|
53
|
+
}))
|
|
54
|
+
.pipe(plumber())
|
|
55
|
+
.pipe(gulp.dest(config.cjs));
|
|
56
|
+
};
|
|
57
|
+
return parallel(copy(config.es), copy(config.cjs), compileScss);
|
|
58
|
+
};
|
|
59
|
+
const copyScssToLib = () => {
|
|
60
|
+
return gulp.src(getMatchFiles((path) => [`${path}/**/*.scss`, `${path}/**/*.less`], false))
|
|
61
|
+
.pipe(logger({
|
|
62
|
+
before: 'copyScssToLib...',
|
|
63
|
+
after: 'copyScssToLib complete!',
|
|
64
|
+
extname: '.scss',
|
|
65
|
+
showChange: true
|
|
66
|
+
}))
|
|
67
|
+
.pipe(gulp.dest(config.cjs));
|
|
68
|
+
};
|
|
69
|
+
const compileEs = () => {
|
|
70
|
+
const tsConfig = typescript.readConfigFile(resolveApp('tsconfig.json'), typescript.sys.readFile);
|
|
71
|
+
if (tsConfig.error) {
|
|
72
|
+
console.log(tsConfig.error.messageText);
|
|
73
|
+
}
|
|
74
|
+
const compile = (src, target) => {
|
|
75
|
+
return gulp.src(src)
|
|
76
|
+
.pipe(logger({
|
|
77
|
+
before: 'generate ...es ...',
|
|
78
|
+
after: 'generate ...es complete!',
|
|
79
|
+
extname: '.ts',
|
|
80
|
+
showChange: false,
|
|
81
|
+
}))
|
|
82
|
+
.pipe(ts({
|
|
83
|
+
"jsx": "react",
|
|
84
|
+
"noImplicitAny": true,
|
|
85
|
+
...tsConfig.config.compilerOptions,
|
|
86
|
+
"module": "esnext",
|
|
87
|
+
"target": "esnext",
|
|
88
|
+
"newLine": 'crlf',
|
|
89
|
+
"allowImportingTsExtensions": false,
|
|
90
|
+
"baseUrl": "./",
|
|
91
|
+
"isolatedModules": false,
|
|
92
|
+
"removeComments": false,
|
|
93
|
+
"declaration": true,
|
|
94
|
+
"noEmit": false,
|
|
95
|
+
"esModuleInterop": true,
|
|
96
|
+
"resolveJsonModule": true,
|
|
97
|
+
"skipLibCheck": true,
|
|
98
|
+
"moduleResolution": 'node',
|
|
99
|
+
}))
|
|
100
|
+
.on('error', (e) => {
|
|
101
|
+
console.error(e);
|
|
102
|
+
throw e;
|
|
103
|
+
})
|
|
104
|
+
.pipe(logger({
|
|
105
|
+
before: 'writing to es...',
|
|
106
|
+
after: 'write complete!',
|
|
107
|
+
extname: '.ts',
|
|
108
|
+
showChange: true,
|
|
109
|
+
display: 'name'
|
|
110
|
+
}))
|
|
111
|
+
.pipe(plumber())
|
|
112
|
+
.pipe(gulp.dest(target))
|
|
113
|
+
.pipe(gulp.src(config.include.map(item => `${item}/**/*.json`)))
|
|
114
|
+
.pipe(gulp.dest(target));
|
|
115
|
+
};
|
|
116
|
+
const tasks = include.map((item) => {
|
|
117
|
+
const isDirectory = item.isDirectory;
|
|
118
|
+
return () => compile(isDirectory ? [
|
|
119
|
+
`${item.path}/**/*`,
|
|
120
|
+
`!${item.path}/**/__test__/!**`,
|
|
121
|
+
`${config.typings}/**/*`,
|
|
122
|
+
] : [item.path], isDirectory && include.length > 1 ?
|
|
123
|
+
path.join(config.es, path.basename(item.path))
|
|
124
|
+
: config.es);
|
|
125
|
+
});
|
|
126
|
+
return series(tasks);
|
|
127
|
+
};
|
|
128
|
+
const copyTds = () => {
|
|
129
|
+
return gulp.src([
|
|
130
|
+
`${config.es}/**/*.d.ts`,
|
|
131
|
+
]).pipe(gulp.dest(config.cjs));
|
|
132
|
+
};
|
|
133
|
+
const compileLib = () => {
|
|
134
|
+
return gulp.src([`${config.es}/**/*.js`])
|
|
135
|
+
.pipe(logger({
|
|
136
|
+
before: 'Starting transform ...',
|
|
137
|
+
after: 'transform complete!',
|
|
138
|
+
extname: '.js',
|
|
139
|
+
showChange: true
|
|
140
|
+
}))
|
|
141
|
+
.pipe(babel({
|
|
142
|
+
"presets": [
|
|
143
|
+
[
|
|
144
|
+
"@babel/preset-env",
|
|
145
|
+
{
|
|
146
|
+
"targets": {
|
|
147
|
+
"chrome": "58",
|
|
148
|
+
"ie": "9"
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
],
|
|
152
|
+
[
|
|
153
|
+
"@babel/preset-react"
|
|
154
|
+
]
|
|
155
|
+
],
|
|
156
|
+
"plugins": ["@babel/plugin-transform-runtime"]
|
|
157
|
+
}))
|
|
158
|
+
.pipe(plumber())
|
|
159
|
+
.pipe(logger({
|
|
160
|
+
before: 'write js ---> ...',
|
|
161
|
+
after: 'write js ---> complete!',
|
|
162
|
+
extname: '.js',
|
|
163
|
+
showChange: true
|
|
164
|
+
}))
|
|
165
|
+
.pipe(gulp.dest(config.cjs));
|
|
166
|
+
};
|
|
167
|
+
const compileEsAndLib = series(compileEs(), copyTds, compileLib);
|
|
168
|
+
export default series(clean, parallel(dealScss(), copyScssToLib, compileEsAndLib));
|
package/package.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@es-pkg/compile",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "组件打包工具",
|
|
5
|
+
"main": "cjs/src/index.js",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"package",
|
|
8
|
+
"es-pkg"
|
|
9
|
+
],
|
|
10
|
+
"engines": {
|
|
11
|
+
"node": ">=14.6.0"
|
|
12
|
+
},
|
|
13
|
+
"homepage": "https://github.com/robertpanvip/es-pkg.git",
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/robertpanvip/es-pkg.git"
|
|
17
|
+
},
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/robertpanvip/es-pkg/issues"
|
|
20
|
+
},
|
|
21
|
+
"author": "pan",
|
|
22
|
+
"license": "ISC",
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"gulp-autoprefixer": "^8.0.0",
|
|
25
|
+
"gulp-babel": "^8.0.0",
|
|
26
|
+
"gulp-sass": "^5.1.0",
|
|
27
|
+
"gulp-typescript": "^6.0.0-alpha.1",
|
|
28
|
+
"gulp-plumber": "latest",
|
|
29
|
+
"gulp-rename": "latest",
|
|
30
|
+
"sass": "^1.53.0"
|
|
31
|
+
},
|
|
32
|
+
"publishConfig": {
|
|
33
|
+
"access": "public",
|
|
34
|
+
"registry": "https://registry.npmjs.org"
|
|
35
|
+
},
|
|
36
|
+
"module": "esm/src/index.js",
|
|
37
|
+
"types": "typings",
|
|
38
|
+
"files": [
|
|
39
|
+
"esm",
|
|
40
|
+
"cjs"
|
|
41
|
+
]
|
|
42
|
+
}
|