This repository was archived by the owner on May 1, 2020. It is now read-only.
File tree 4 files changed +57
-4
lines changed
4 files changed +57
-4
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ To get the latest `@ionic/app-scripts`, please run:
4
4
npm install @ionic/app-scripts@latest --save-dev
5
5
```
6
6
7
+ # 0.0.39 (2016-10-31)
8
+ * Switch default bundler to Webpack
7
9
8
10
# 0.0.36 (2016-10-15)
9
11
Original file line number Diff line number Diff line change @@ -157,4 +157,14 @@ Example NPM Script:
157
157
- [ Autoprefixer] ( https://github.com/postcss/autoprefixer )
158
158
- [ UglifyJS] ( http://lisperator.net/uglifyjs/ )
159
159
- [ CleanCss] ( https://github.com/jakubpawlowicz/clean-css )
160
- - [ TSLint] ( http://palantir.github.io/tslint/ )
160
+ - [ TSLint] ( http://palantir.github.io/tslint/ )
161
+
162
+
163
+
164
+ ## Contributing
165
+
166
+ ### Publish a release
167
+
168
+ Execute the following steps to publish a release:
169
+
170
+ 1 . Run ` npm run release `
Original file line number Diff line number Diff line change 18
18
"scripts" : {
19
19
"build" : " npm run clean && tsc" ,
20
20
"build-and-test" : " npm run build && npm run test" ,
21
- "conventional-changelog" : " ./node_modules/.bin/conventional-changelog" ,
22
- "changelog" : " conventional-changelog -p angular -i CHANGELOG.md -s" ,
21
+ "changelog" : " ./node_modules/.bin/conventional-changelog -p angular -i CHANGELOG.md -s" ,
23
22
"clean" : " rimraf ./dist" ,
23
+ "github-release" : " node ./scripts/create-github-release.js" ,
24
24
"lint" : " tslint -c ./tslint.json --project ./tsconfig.json" ,
25
+ "release" : " npm run build && npm run test && npm version patch && npm changelog && npm run github-release && npm publish" ,
25
26
"test" : " jasmine JASMINE_CONFIG_PATH=src/spec/jasmine.config.json || true" ,
26
27
"watch" : " npm run clean && tsc --watch"
27
28
},
31
32
"chalk" : " 1.1.3" ,
32
33
"chokidar" : " 1.6.0" ,
33
34
"clean-css" : " 3.4.19" ,
34
- "conventional-changelog-cli" : " ^1.2.0" ,
35
+ "conventional-changelog-cli" : " ^1.2.0" ,
35
36
"cross-spawn" : " 4.0.0" ,
36
37
"express" : " ^4.14.0" ,
37
38
"fs-extra" : " 0.30.0" ,
67
68
"@types/uglify-js" : " 2.0.27" ,
68
69
"@types/webpack" : " ^1.12.35" ,
69
70
"@types/ws" : " 0.0.34" ,
71
+ "github" : " ^0.2.4" ,
72
+ "ionic-cz-conventional-changelog" : " ^1.0.0" ,
70
73
"jasmine" : " 2.5.2" ,
71
74
"mock-fs" : " ^3.11.0" ,
72
75
"rimraf" : " ^2.5.4" ,
79
82
},
80
83
"bugs" : {
81
84
"url" : " https://github.com/driftyco/ionic-app-scripts/issues"
85
+ },
86
+ "config" : {
87
+ "commitizen" : {
88
+ "path" : " node_modules/ionic-cz-conventional-changelog"
89
+ }
82
90
}
83
91
}
Original file line number Diff line number Diff line change
1
+ var path = require ( 'path' ) ;
2
+ var execSync = require ( 'child_process' ) . execSync ;
3
+
4
+ var GithubApi = require ( 'github' ) ;
5
+
6
+ var changelogCommand = './node_modules/.bin/conventional-changelog -p angular' ;
7
+
8
+ var packageJsonPath = path . join ( __dirname , '..' , 'package.json' ) ;
9
+ var packageJson = require ( packageJsonPath ) ;
10
+
11
+ var github = new GithubApi ( { version : '3.0.0' } ) ;
12
+
13
+ github . authenticate ( { type : 'oauth' , token : process . env . GH_TOKEN } ) ;
14
+
15
+ var changelogContent = execSync ( changelogCommand ) . toString ( ) ;
16
+
17
+ github . releases . createRelease ( {
18
+ owner : 'driftyco' ,
19
+ repo : 'ionic-app-scripts' ,
20
+ target_commitish : 'master' ,
21
+ tag_name : 'v' + packageJson . version ,
22
+ name : packageJson . version ,
23
+ body : changelogContent ,
24
+ prerelease : false
25
+ } , function ( err , result ) {
26
+ if ( err ) {
27
+ console . log ( '[create-github-release] An error occurred: ' + err . message ) ;
28
+ process . exit ( 1 ) ;
29
+ }
30
+ else {
31
+ console . log ( '[create-github-release]: Process succeeded' ) ;
32
+ }
33
+ } ) ;
You can’t perform that action at this time.
0 commit comments