@drayman/framework 1.5.0 → 1.5.4
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/dist/commands/build.js +1 -1
- package/dist/index.js +2 -1
- package/package.json +3 -3
package/dist/commands/build.js
CHANGED
|
@@ -46,7 +46,7 @@ async function build() {
|
|
|
46
46
|
const processedCss = (await (0, postcss_1.default)(postcssrc.plugins).process(source, postcssrc.options));
|
|
47
47
|
await fs_extra_1.default.writeFile(postcssDestinationFile, processedCss.css);
|
|
48
48
|
}
|
|
49
|
-
const componentsDir =
|
|
49
|
+
const componentsDir = path_1.default.join(srcDir, 'components');
|
|
50
50
|
await fs_extra_1.default.ensureDir(componentsDir);
|
|
51
51
|
const templateFilePath = path_1.default.join(componentsDir, `./index.d.ts`);
|
|
52
52
|
await fs_extra_1.default.ensureFile(templateFilePath);
|
package/dist/index.js
CHANGED
|
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
};
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
const nodemon_1 = __importDefault(require("nodemon"));
|
|
8
|
+
const path_1 = __importDefault(require("path"));
|
|
8
9
|
const build_1 = require("./commands/build");
|
|
9
10
|
const config_1 = require("./config");
|
|
10
11
|
const command = process.argv[2];
|
|
@@ -12,7 +13,7 @@ const command = process.argv[2];
|
|
|
12
13
|
const { srcDir } = (0, config_1.getDraymanConfig)();
|
|
13
14
|
if (command === 'start') {
|
|
14
15
|
(0, nodemon_1.default)({
|
|
15
|
-
script: '
|
|
16
|
+
script: path_1.default.join(__dirname, 'commands/start.js'),
|
|
16
17
|
watch: srcDir,
|
|
17
18
|
ext: 'ts tsx json css',
|
|
18
19
|
ignore: ['*/**.d.ts'],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@drayman/framework",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"author": "",
|
|
21
21
|
"license": "ISC",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@drayman/core": "^1.5.
|
|
23
|
+
"@drayman/core": "^1.5.4",
|
|
24
24
|
"cup-readdir": "^1.0.3",
|
|
25
25
|
"express": "^4.17.1",
|
|
26
26
|
"fs-extra": "^9.1.0",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"npm": "^7.10.0",
|
|
48
48
|
"start-server-and-test": "^1.12.1"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "35eb1654d0b51b220a60b4cb2add5ff85e02d484"
|
|
51
51
|
}
|