Skip to content
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
7 changes: 3 additions & 4 deletions Contributing.md → .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
## How do I contribute?
1. Fork and clone the repository.
2. Make your life-changing changes.
3. Compile the project with `tsc` compiler by typing in `npm run build`.
4. Fire in `npm link` to test everything works fine.
3. Compile the project with `tsc` compiler by typing in `yarn build`.
4. Fire in `yarn link` to test everything works fine.
5. Commit and push your changes.
6. Make a detailed pull request.

npm link creates a symlink in the global folder making the`scaffold-static` command globally available within your local development environment
`yarn link` creates a symlink in the global folder making the`scaffold-static` command globally available within your local development environment


## Why should I contribute?
Contributing helps people and makes the world simply a better place, without contributors this project would cease to exist.

6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 12
- run: npm ci
- run: npm run lint
- run: npm run build
- run: yarn install --frozen-lockfile
- run: yarn lint
- run: yarn build
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@


## Contributing
Please see the [contributing guidelines](Contributing.md)
Please see the [contributing guidelines](.github/CONTRIBUTING.md)

## License
> GNU GPL V3
Expand Down
26 changes: 7 additions & 19 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,16 @@ gulp.task('clean', () => {
return del('./lib/*', { force: true });
});

gulp.task('typescript', (cb) => {
gulp.task('typescript', cb => {
const cmd = spawn('tsc', { stdio: 'inherit' });
cmd.on('close', (code) => {
console.log(`The process exited with code ${code}`);
cb(code);
});
cmd.on('close', code => {
console.log(`The process exited with code ${code}`);
cb(code);
});
});

gulp.task('copy', () => {
return gulp
.src('./src/templates/**/*.{html,js}')
.pipe(gulp.dest('./lib/templates'));
return gulp.src('./src/templates/**/*.{html,js}').pipe(gulp.dest('./lib/templates'));
});

gulp.task('directory', () => {
return gulp
.src('./lib/scaffold.js')
.pipe(gulp.dest('./lib/commands'));
});

gulp.task('wrapup', () => {
return del('./lib/scaffold.js');
});

gulp.task('default', gulp.series('clean', 'typescript', 'copy', 'directory', 'wrapup'));
gulp.task('default', gulp.series('clean', 'typescript', 'copy'));
Loading