create-berna-stencil 1.0.31 → 1.0.33
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/bin/create.js +14 -2
- package/package.json +1 -1
package/bin/create.js
CHANGED
|
@@ -11,12 +11,11 @@ const COPY_TARGETS = [
|
|
|
11
11
|
'_tools',
|
|
12
12
|
'.eleventy.js',
|
|
13
13
|
'.eleventyignore',
|
|
14
|
-
'.gitignore',
|
|
15
14
|
];
|
|
16
15
|
|
|
17
16
|
const PROJECT_PACKAGE = {
|
|
18
17
|
name: path.basename(targetDir),
|
|
19
|
-
version: '1.0.
|
|
18
|
+
version: '1.0.33',
|
|
20
19
|
private: true,
|
|
21
20
|
scripts: {
|
|
22
21
|
"build:css": "sass src/scss:out/css --no-source-map --style=compressed --quiet",
|
|
@@ -48,6 +47,13 @@ const PROJECT_PACKAGE = {
|
|
|
48
47
|
},
|
|
49
48
|
};
|
|
50
49
|
|
|
50
|
+
const GITIGNORE_CONTENT = `node_modules/
|
|
51
|
+
node_modules/
|
|
52
|
+
src/api/core/vendor/
|
|
53
|
+
out/
|
|
54
|
+
src/api/config.php
|
|
55
|
+
`;
|
|
56
|
+
|
|
51
57
|
const { writeSync } = require('fs');
|
|
52
58
|
|
|
53
59
|
function log(msg) {
|
|
@@ -88,6 +94,12 @@ fs.writeFileSync(
|
|
|
88
94
|
);
|
|
89
95
|
log('+ package.json');
|
|
90
96
|
|
|
97
|
+
fs.writeFileSync(
|
|
98
|
+
path.join(targetDir, '.gitignore'),
|
|
99
|
+
GITIGNORE_CONTENT
|
|
100
|
+
);
|
|
101
|
+
log('+ .gitignore');
|
|
102
|
+
|
|
91
103
|
log(`\n>> Done! Now run:\n`);
|
|
92
104
|
if (process.argv[2]) {
|
|
93
105
|
log(`cd ${process.argv[2]}`);
|
package/package.json
CHANGED