-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix CSS source maps, simplify dev mode
* Add "npm run" commands in package.json so that following README doesn't require npx or globally installed grunt-cli. * Merge "default" task into "build" for clarity and simplicity. * Remove unused Procfille and Heroku instructions. * Remove unused Travis CI. * Add GitHub CI. * Fix source maps. With source maps fixed, remove the separate less:dev task.
- Loading branch information
Showing
7 changed files
with
52 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: CI | ||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
test: | ||
# Includes Firefox, Node.js LTS, and Java. | ||
# https://github.com/actions/runner-images/blob/releases/ubuntu22/20240804/images/ubuntu/Ubuntu2204-Readme.md | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: npm install | ||
- run: npm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
build/ | ||
node_modules/ | ||
tmp/ | ||
npm-debug.log | ||
/build/ | ||
/node_modules/ | ||
/tmp/ | ||
/package-lock.json | ||
/npm-debug.log |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,27 @@ | ||
# Grunt Website [![Build Status: Linux](https://travis-ci.org/gruntjs/gruntjs.com.svg?branch=master)](https://travis-ci.org/gruntjs/gruntjs.com) | ||
[![Build Status](https://github.com/gruntjs/gruntjs.com/actions/workflows/CI.yaml/badge.svg)](https://github.com/gruntjs/gruntjs.com/actions/workflows/CI.yaml) | ||
|
||
## Setup Development | ||
# Grunt Website | ||
|
||
1. `npm install` | ||
2. `grunt` | ||
## Local Development | ||
|
||
## Tasks | ||
1. Download dependencies: | ||
```shell | ||
npm install | ||
``` | ||
2. Create production site: | ||
```shell | ||
npm run build | ||
``` | ||
3. Start web server: | ||
```shell | ||
npm start | ||
``` | ||
|
||
* `grunt build` - Manually Rebuild | ||
* `grunt dev` - Development Mode | ||
Local address is: http://localhost:5678/ | ||
|
||
## Manually Run Server | ||
To automatically rebuild and restart the server after any file changes, | ||
use the development mode instead: | ||
|
||
```shell | ||
npm start | ||
``` | ||
|
||
Server port is: `5678`. | ||
|
||
## Deploy to Heroku | ||
|
||
Set Heroku keys (if needed) with | ||
|
||
```shell | ||
ssh-keygen -t rsa -C "YOUR_HEROKU_EMAIL" -f ~/.ssh/id_rsa_heroku | ||
ssh-add ~/.ssh/id_rsa_heroku | ||
heroku keys:add ~/.ssh/id_rsa_heroku.pub | ||
``` | ||
|
||
Push | ||
|
||
```shell | ||
git push [email protected]:grunt.git master:master | ||
``` | ||
|
||
If you need to regenerate the Heroku site, use empty commits: | ||
|
||
```shell | ||
git commit --allow-empty -m "empty commit" | ||
git push [email protected]:grunt.git master:master | ||
npm run dev | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters