Skip to content

Commit

Permalink
add npm run dev script to init package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
thescientist13 committed Sep 20, 2024
1 parent 7ee503b commit dd9f8d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/init/src/template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "",
"type": "module",
"scripts": {
"dev": "greenwood develop",
"start": "greenwood develop",
"build": "greenwood build",
"serve": "greenwood serve"
Expand Down
5 changes: 3 additions & 2 deletions packages/init/test/cases/init.default/init.default.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { fileURLToPath, URL } from 'url';

const expect = chai.expect;

describe('Scaffold Greenwood With Default Template: ', function() {
describe.only('Scaffold Greenwood With Default Template: ', function() {

Check failure on line 22 in packages/init/test/cases/init.default/init.default.spec.js

View workflow job for this annotation

GitHub Actions / build (18)

describe.only not permitted
const initPath = path.join(process.cwd(), 'packages/init/src/index.js');
const outputPath = fileURLToPath(new URL('./my-app', import.meta.url));
let runner;
Expand Down Expand Up @@ -81,7 +81,8 @@ describe('Scaffold Greenwood With Default Template: ', function() {
it('the should have the correct Greenwood scripts', function() {
const scripts = pkgJson.scripts;

expect(scripts.start).to.equal('greenwood develop');
expect(scripts.dev).to.equal('greenwood develop');
expect(scripts.start).to.equal(scripts.dev);
expect(scripts.build).to.equal('greenwood build');
expect(scripts.serve).to.equal('greenwood serve');
});
Expand Down

0 comments on commit dd9f8d8

Please sign in to comment.