Skip to content

Commit d95c759

Browse files
Merge pull request #57 from Codeinwp/update
Update to wp-script + fix breaking changes
2 parents 0324840 + a943815 commit d95c759

File tree

14 files changed

+43123
-9455
lines changed

14 files changed

+43123
-9455
lines changed

.github/workflows/deploy-staging.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,10 @@ jobs:
2020
uses: actions/setup-node@v1
2121
with:
2222
node-version: "12"
23-
- name: Install pmpm
24-
run: npm add -g pnpm
23+
- name: Installnode_module
24+
run: npm ci
2525
- name: Build the project
26-
run: |
27-
pnpm install
28-
npm run plugin-build
26+
run: npm run plugin-build
2927
- name: Add SSH Key
3028
run: |
3129
mkdir $HOME/.ssh

.github/workflows/pull-request.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@ jobs:
1414
uses: actions/setup-node@v1
1515
with:
1616
node-version: "12"
17-
- name: Install pmpm & node_module
18-
run: |
19-
npm add -g pnpm
20-
pnpm install
21-
- name: EsLint for Typescript
22-
run: npm run lint
17+
- name: Installnode_module
18+
run: npm ci
2319
- name: Build the project
2420
run: npm run plugin-build

.github/workflows/release.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,10 @@ jobs:
2020
uses: actions/setup-node@v1
2121
with:
2222
node-version: "12"
23-
- name: Install pmpm
24-
run: npm add -g pnpm
23+
- name: Installnode_module
24+
run: npm ci
2525
- name: Build the project
26-
run: |
27-
pnpm install
28-
npm run plugin-build
26+
run: npm run plugin-build
2927
- name: Add SSH Key
3028
run: |
3129
mkdir $HOME/.ssh

.gitignore

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
.build
2-
build
3-
plugin_build
4-
web_modules
5-
node_modules
6-
package-lock.json
2+
build/
3+
plugin_build/
4+
web_modules/
5+
node_modules/

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ yarn install
6767

6868
## Npm Commmands
6969

70-
`npm run start` - start the development server using Snowpack - it's fast and run separately from WordPress - use it for development.
70+
~~`npm run start` - start the development server using Snowpack - it's fast and run separately from WordPress - use it for development.~~
7171

7272
`npm run start-plugin` - start the development server in WordPress using Webpack - the project must be in `plugin` folder and activated - use it for testing the app as a block in WordPress.
7373

@@ -77,9 +77,9 @@ yarn install
7777

7878
`npm run gen-docs` - generate the docs
7979

80-
`npm run format` - format the Typescript file in `./src` folder using Prettier
80+
~~`npm run format` - format the Typescript file in `./src` folder using Prettier~~
8181

82-
`npm run lint` - check for issues in the Typescript file in `./src` folder using EsLint
82+
~~`npm run lint` - check for issues in the Typescript file in `./src` folder using EsLint~~
8383

8484
## Recommended Tools
8585

0 commit comments

Comments
 (0)