Skip to content

Commit

Permalink
Feature/add tar build output (#3)
Browse files Browse the repository at this point in the history
* Removed unused libraries

* Fix npm audit

* Add tar build output

* Update README shell outputs

* Bump revision
  • Loading branch information
tomhollingworth authored Aug 6, 2020
1 parent 0816cf8 commit d1ba667
Show file tree
Hide file tree
Showing 6 changed files with 2,049 additions and 5,380 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
dist
libre-material-crud-table-panel.zip
libre-material-crud-table-panel.zip
libre-material-crud-table-panel.tar.gz
22 changes: 16 additions & 6 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
module.exports = function (grunt) {
require('load-grunt-tasks')(grunt)

grunt.loadNpmTasks('grunt-execute')
grunt.loadNpmTasks('grunt-contrib-clean')
grunt.loadNpmTasks('grunt-multi-dest')
grunt.loadNpmTasks('grunt-babel')
grunt.loadNpmTasks('grunt-force-task')
grunt.loadNpmTasks('grunt-contrib-clean')
grunt.loadNpmTasks('grunt-contrib-compress')
grunt.loadNpmTasks('grunt-contrib-copy')
grunt.loadNpmTasks('grunt-contrib-jshint')
grunt.loadNpmTasks('grunt-contrib-watch')
grunt.loadNpmTasks('grunt-string-replace')

grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
clean: ['dist', 'libre-material-crud-table-panel.zip'],
clean: ['dist', 'libre-material-crud-table-panel.zip', 'libre-material-crud-table-panel.tar.gz'],

jshint: {
options: {
Expand Down Expand Up @@ -91,6 +92,14 @@ module.exports = function (grunt) {
expand: true,
cwd: 'dist/',
src: ['**/*']
},
tar: {
options: {
archive: 'libre-material-crud-table-panel.tar.gz'
},
expand: true,
cwd: 'dist/',
src: ['**/*']
}
}
})
Expand All @@ -104,6 +113,7 @@ module.exports = function (grunt) {
grunt.registerTask('build', [
'clean',
'default',
'compress'
'compress:main',
'compress:tar'
])
}
21 changes: 16 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,7 @@ $ cd ./Libre-Material-CRUD-Table-Panel
~/Libre-Material-CRUD-Table-Panel
$ npm install
...
added 714 packages from 399 contributors and audited 719 packages in 11.871s
found 42 vulnerabilities (11 low, 6 moderate, 25 high)
run `npm audit fix` to fix them, or `npm audit` for details
added 624 packages in 12.022s
```

Install Grunt globally
Expand Down Expand Up @@ -141,7 +139,7 @@ Copied 1 file

Running "babel:dist" (babel) task

Done, without errors.
Done.

```

Expand Down Expand Up @@ -187,6 +185,9 @@ Running "clean:0" (clean) task
Running "clean:1" (clean) task
>> 1 path cleaned.

Running "clean:2" (clean) task
>> 1 path cleaned.

Running "copy:src_to_dist" (copy) task
Created 3 directories, copied 9 files

Expand All @@ -205,7 +206,10 @@ Running "babel:dist" (babel) task
Running "compress:main" (compress) task
>> Compressed 45 files.

Done, without errors.
Running "compress:tar" (compress) task
>> Compressed 45 files.

Done.

```

Expand All @@ -221,6 +225,13 @@ For any issue, there are fundamentally three ways an individual can contribute:

## Change log

- 1.0.2 Add tar build output
- Remove unused libraries
- Fix npm audit
- Add tar build output
- Update README shell output
- Bump Revision

- 1.0.1 Update Documentation
- Remove unused grunt config
- Fix shell outputs and subtitle
Expand Down
Loading

0 comments on commit d1ba667

Please sign in to comment.