Skip to content

Commit d1ba667

Browse files
Feature/add tar build output (#3)
* Removed unused libraries * Fix npm audit * Add tar build output * Update README shell outputs * Bump revision
1 parent 0816cf8 commit d1ba667

File tree

6 files changed

+2049
-5380
lines changed

6 files changed

+2049
-5380
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
dist
3-
libre-material-crud-table-panel.zip
3+
libre-material-crud-table-panel.zip
4+
libre-material-crud-table-panel.tar.gz

Gruntfile.js

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
module.exports = function (grunt) {
22
require('load-grunt-tasks')(grunt)
33

4-
grunt.loadNpmTasks('grunt-execute')
5-
grunt.loadNpmTasks('grunt-contrib-clean')
6-
grunt.loadNpmTasks('grunt-multi-dest')
74
grunt.loadNpmTasks('grunt-babel')
8-
grunt.loadNpmTasks('grunt-force-task')
5+
grunt.loadNpmTasks('grunt-contrib-clean')
6+
grunt.loadNpmTasks('grunt-contrib-compress')
7+
grunt.loadNpmTasks('grunt-contrib-copy')
98
grunt.loadNpmTasks('grunt-contrib-jshint')
9+
grunt.loadNpmTasks('grunt-contrib-watch')
10+
grunt.loadNpmTasks('grunt-string-replace')
1011

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

1516
jshint: {
1617
options: {
@@ -91,6 +92,14 @@ module.exports = function (grunt) {
9192
expand: true,
9293
cwd: 'dist/',
9394
src: ['**/*']
95+
},
96+
tar: {
97+
options: {
98+
archive: 'libre-material-crud-table-panel.tar.gz'
99+
},
100+
expand: true,
101+
cwd: 'dist/',
102+
src: ['**/*']
94103
}
95104
}
96105
})
@@ -104,6 +113,7 @@ module.exports = function (grunt) {
104113
grunt.registerTask('build', [
105114
'clean',
106115
'default',
107-
'compress'
116+
'compress:main',
117+
'compress:tar'
108118
])
109119
}

README.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,7 @@ $ cd ./Libre-Material-CRUD-Table-Panel
108108
~/Libre-Material-CRUD-Table-Panel
109109
$ npm install
110110
...
111-
added 714 packages from 399 contributors and audited 719 packages in 11.871s
112-
found 42 vulnerabilities (11 low, 6 moderate, 25 high)
113-
run `npm audit fix` to fix them, or `npm audit` for details
111+
added 624 packages in 12.022s
114112
```
115113

116114
Install Grunt globally
@@ -141,7 +139,7 @@ Copied 1 file
141139

142140
Running "babel:dist" (babel) task
143141

144-
Done, without errors.
142+
Done.
145143

146144
```
147145

@@ -187,6 +185,9 @@ Running "clean:0" (clean) task
187185
Running "clean:1" (clean) task
188186
>> 1 path cleaned.
189187

188+
Running "clean:2" (clean) task
189+
>> 1 path cleaned.
190+
190191
Running "copy:src_to_dist" (copy) task
191192
Created 3 directories, copied 9 files
192193

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

208-
Done, without errors.
209+
Running "compress:tar" (compress) task
210+
>> Compressed 45 files.
211+
212+
Done.
209213

210214
```
211215

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

222226
## Change log
223227

228+
- 1.0.2 Add tar build output
229+
- Remove unused libraries
230+
- Fix npm audit
231+
- Add tar build output
232+
- Update README shell output
233+
- Bump Revision
234+
224235
- 1.0.1 Update Documentation
225236
- Remove unused grunt config
226237
- Fix shell outputs and subtitle

0 commit comments

Comments
 (0)