Skip to content
This repository was archived by the owner on Mar 10, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
"main": "index.js",
"license": "MIT",
"scripts": {
"build:development": "webpack --mode=development && jahia-pack",
"build:production": "webpack && jahia-pack",
"build:development": "webpack --mode=development && run pack",
"build:production": "webpack && run pack",
"build": "run build:production",
"pack": "mkdir -p dist/build && cd dist/build && yarn pack --out package.tgz && mv package.tgz ..",
"clean": "rm -rf dist/",
"deploy": "jahia-deploy",
"watch": "webpack --mode=development --watch",
Expand All @@ -30,7 +31,6 @@
"@babel/preset-env": "^7.16.4",
"@babel/preset-react": "^7.16.0",
"@jahia/eslint-config": "^2.1.2",
"@jahia/scripts": "^1.3.7",
"babel-loader": "^8.2.3",
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
"clean-webpack-plugin": "^4.0.0",
Expand Down
2 changes: 1 addition & 1 deletion template/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ module.exports = (env, argv) => {
new WebpackShellPluginNext({
onAfterDone: {
scripts: [
'yarn jahia-pack',
'yarn run pack',
'yarn jahia-deploy',
process.platform === 'win32' ? 'timeout ' + sleepTime : 'sleep ' + sleepTime
],
Expand Down
2 changes: 1 addition & 1 deletion tests/create-templatesSet-project.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ describe('npx @jahia/create-module', () => {
console.log(execSync('yarn build').toString());

// Make sure the tgz file is created in the dist/ folder
const tgzFilePath = path.join(projectPath, 'dist', `${projectName}-v0.1.0-SNAPSHOT.tgz`);
const tgzFilePath = path.join(projectPath, 'dist', 'package.tgz');
expect(fs.existsSync(tgzFilePath)).toBe(true);

// Check the contents of the tgz file
Expand Down