Skip to content

Commit

Permalink
feat: 馃幐 improve
Browse files Browse the repository at this point in the history
Improve code style and rules, also added pipeline
  • Loading branch information
danielpinto8zz6 committed Oct 13, 2019
1 parent fd3b805 commit d07b232
Show file tree
Hide file tree
Showing 18 changed files with 6,646 additions and 638 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[{src,scripts}/**.{ts,json,js}]
end_of_line = crlf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 4
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"eg2.tslint"
"ms-vscode.vscode-typescript-tslint-plugin"
]
}
8 changes: 4 additions & 4 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
{
"version": "0.2.0",
"version": "0.2.0",
"configurations": [
{
"name": "Extension",
"name": "Run Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
Expand All @@ -25,12 +25,12 @@
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/out/test"
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
],
"outFiles": [
"${workspaceFolder}/out/test/**/*.js"
],
"preLaunchTask": "npm: watch"
}
]
}
}
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@
},
"search.exclude": {
"out": true // set this to false to include "out" folder in search results
}
},
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
"typescript.tsc.autoDetect": "off"
}
34 changes: 17 additions & 17 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "watch",
"problemMatcher": "$tsc-watch",
"isBackground": true,
"presentation": {
"reveal": "never"
},
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "watch",
"problemMatcher": "$tsc-watch",
"isBackground": true,
"presentation": {
"reveal": "never"
},
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
49 changes: 31 additions & 18 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,37 @@
# Change Log
# Changelog

## [1.1.1]
- Fix vulnerabilities
- Add how to use
All notable changes to this project will be documented in this file.

## [1.1.0]
- Cleanups + fixes
- Doesn't include c_cpp_properties anymore, c/c++ extension should find it automatically
## 1.1.1 - 2019-10-13

## [1.0.4]
- Fixed makefile executable on windows for make clean
### Merged

## [1.0.2]
- Fixed include path on linux
- Added icon
- Bump @types/node from 12.6.2 to 12.7.12 [`#10`](https://github.com/danielpinto8zz6/c-cpp-project-generator/pull/10)
- Bump typescript from 3.5.3 to 3.6.4 [`#8`](https://github.com/danielpinto8zz6/c-cpp-project-generator/pull/8)
- Bump vscode from 1.1.35 to 1.1.36 [`#9`](https://github.com/danielpinto8zz6/c-cpp-project-generator/pull/9)
- Bump tslint from 5.18.0 to 5.20.0 [`#7`](https://github.com/danielpinto8zz6/c-cpp-project-generator/pull/7)
- Tasks for osx + more flexibility to C project [`#5`](https://github.com/danielpinto8zz6/c-cpp-project-generator/pull/5)
- generates debug information for debugging [`#4`](https://github.com/danielpinto8zz6/c-cpp-project-generator/pull/4)
- Added a feature that opens the main.c/pp file after the project is created [`#3`](https://github.com/danielpinto8zz6/c-cpp-project-generator/pull/3)

## [1.0.1]
- Improved debugging
- Better compatibility with windows, mac os, linux
- Added clean task
### Fixed

## [1.0.0]
- Initial release
- Add file extension to makefile, fixes https://github.com/danielpinto8zz6/c-cpp-project-generator/issues/2 [`#2`](https://github.com/danielpinto8zz6/c-cpp-project-generator/issues/2)

### Commits

- First commit [`3ceebbf`](https://github.com/danielpinto8zz6/c-cpp-project-generator/commit/3ceebbf27963eb604008cfc3631b0fbac157b888)
- Fix vulnerabilities [`946b8de`](https://github.com/danielpinto8zz6/c-cpp-project-generator/commit/946b8de6bc9c6a03fa7eca9727b617174581fdc4)
- update deps [`6afb450`](https://github.com/danielpinto8zz6/c-cpp-project-generator/commit/6afb450c94928962ebb0b024b543196dc2a0e37d)
- update deps [`5817ce3`](https://github.com/danielpinto8zz6/c-cpp-project-generator/commit/5817ce3e77804d7619860fff7e5380121a87416b)
- Cleanups + fixes [`0a1b1b7`](https://github.com/danielpinto8zz6/c-cpp-project-generator/commit/0a1b1b7f78d63efbf50b2a26b101be7294819848)
- Improved debug + removed linux not needed properties + other fixes [`3aabc97`](https://github.com/danielpinto8zz6/c-cpp-project-generator/commit/3aabc978801a3eb1436ac5b8d37f7ab6ad025392)
- Fix exe on windows [`d4c0b41`](https://github.com/danielpinto8zz6/c-cpp-project-generator/commit/d4c0b4148c463da11b38ceab3cdcb747bb142004)
- Do not include .vscode/c_cpp_properties.json on linux, it is not necessary [`54ae8b6`](https://github.com/danielpinto8zz6/c-cpp-project-generator/commit/54ae8b602fbe1288e99ec4e30012f17b507d0cb1)
- Add how to use [`9b69498`](https://github.com/danielpinto8zz6/c-cpp-project-generator/commit/9b69498f3c440dba18b439a7cd91e24d7e2ca700)
- Add return(0) to the C template code. [`33f4230`](https://github.com/danielpinto8zz6/c-cpp-project-generator/commit/33f4230affebafc4be6f74cfda8caffca567b473)
- Add feature to open main after project creation [`e88e686`](https://github.com/danielpinto8zz6/c-cpp-project-generator/commit/e88e68656d27cce2b9f58c466bb059a56933d5b0)
- Enhance Makefile for C project - use objects and support hierarchical structure [`a321f8f`](https://github.com/danielpinto8zz6/c-cpp-project-generator/commit/a321f8ffaff605b86a471251cb5222b7b0e9cd70)
- Fix indentation in C template [`e7ffd42`](https://github.com/danielpinto8zz6/c-cpp-project-generator/commit/e7ffd42f463a3f740ce510473b44d410c230f5e3)
- Extend tasks definition to cover MacOS X [`fca0efa`](https://github.com/danielpinto8zz6/c-cpp-project-generator/commit/fca0efa935a88753721e248780e2ed2cafb2120f)
- Add icon [`0696b2b`](https://github.com/danielpinto8zz6/c-cpp-project-generator/commit/0696b2bd9cbfc5272c4b88e8e5709a687767204b)
36 changes: 10 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# c-cpp-project-generator README
![Logo](resources/logo.png)

# C/C++ Project Generator

[![Marketplace Version](https://vsmarketplacebadge.apphb.com/version-short/danielpinto8zz6.c-cpp-project-generator.svg)](https://marketplace.visualstudio.com/items?itemName=danielpinto8zz6.c-cpp-project-generator)
[![Downloads](https://vsmarketplacebadge.apphb.com/downloads-short/danielpinto8zz6.c-cpp-project-generator.svg)](https://marketplace.visualstudio.com/items?itemName=danielpinto8zz6.c-cpp-project-generator)
[![Rating](https://vsmarketplacebadge.apphb.com/rating-short/danielpinto8zz6.c-cpp-project-generator.svg)](https://marketplace.visualstudio.com/items?itemName=danielpinto8zz6.c-cpp-project-generator)

Create C/C++ projects

Expand All @@ -21,32 +27,10 @@ VSCode task: Configurations for building and running your project
* Select the folder where the project should be created
* That's it, project will open

## Extension Settings

## Known Issues
* Open main file after loading files

## Release Notes

### 1.1.1
- Fix vulnerabilities
- Add how to use

### 1.1.0
- Cleanups + fixes
- Doesn't include c_cpp_properties anymore, c/c++ extension should find it automatically

### 1.0.4
- Fixed makefile executable on windows for make clean

### 1.0.2
- Fixed include path on linux
- Added icon
Refer to [CHANGELOG](CHANGELOG.md)

### 1.0.1
- Improved debugging
- Better compatibility with windows, mac os, linux
- Added clean task
## Donation

### 1.0.0
- Initial release
If you like this extension, you can donate via **[PayPal](https://www.paypal.me/danielpinto8zz6)**. It will help me to spend more time improving this!
36 changes: 36 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Node.js
# Build a general Node.js project with npm.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript

trigger:
- master

pool:
vmImage: 'ubuntu-latest'

steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'

- script: |
npm ci
displayName: 'Install dependencies'

- script: |
npm run lint
displayName: 'Lint'

- script: |
npm run compile
displayName: 'Compile'

- script: |
npm run release
env:
GH_TOKEN: $(GH_TOKEN)
VSCE_TOKEN: $(VSCE_TOKEN)
displayName: 'Release'

36 changes: 36 additions & 0 deletions changelog-template.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Changelog

All notable changes to this project will be documented in this file.

{{#each releases}}
{{#if href}}
## [{{title}}]({{href}}){{#if tag}} - {{isoDate}}{{/if}}
{{else}}
## {{title}}{{#if tag}} - {{isoDate}}{{/if}}
{{/if}}

{{#if summary}}
{{summary}}
{{/if}}

{{#if merges}}
### Merged

{{#each merges}}
- {{{message}}} {{#if href}}[`#{{id}}`]({{href}}){{/if}}
{{/each}}
{{/if}}

{{#if fixes}}
### Fixed

{{#each fixes}}
- {{{commit.subject}}}{{#each fixes}} {{#if href}}[`#{{id}}`]({{href}}){{/if}}{{/each}}
{{/each}}
{{/if}}

{{#commit-list commits heading='### Commits'}}
- {{#if breaking}}**Breaking change:** {{/if}}{{{subject}}} {{#if href}}[`{{shorthash}}`]({{href}}){{/if}}
{{/commit-list}}

{{/each}}

0 comments on commit d07b232

Please sign in to comment.