Changeset 8708
- Timestamp:
- 05/01/2019 07:07:48 AM (6 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/Gruntfile.js
r7632 r8708 116 116 options: { signature: false } 117 117 }, 118 shell: { 119 build: { 120 command: './node_modules/wpapi/lib/data/update-default-routes-json.js --endpoint=https://wordpress.org/plugins/wp-json --output=./client' 121 } 118 curl: { 119 './client/modules/default-routes.json': 'https://wordpress.org/plugins/wp-json' 122 120 }, 123 121 rtlcss: { … … 183 181 }, 184 182 watch: { 183 css: { 184 files: ['**/*.scss', '../wporg/css/**/*scss', 'client/components/**/**.scss'], 185 tasks: ['css'] 186 }, 187 scripts: { 188 files: ['**/*.jsx'], 189 tasks: ['webpack:build-dev'], 190 options: { 191 atBegin: true, 192 } 193 }, 185 194 eslint: { 186 195 files: ['<%= eslint.files %>'], 187 196 tasks: ['eslint'] 188 },189 css: {190 files: ['**/*.scss', '../wporg/css/**/*scss', 'client/components/**/**.scss'],191 tasks: ['css']192 197 } 193 198 } … … 201 206 grunt.loadNpmTasks('grunt-eslint'); 202 207 grunt.loadNpmTasks('grunt-contrib-watch'); 203 grunt.loadNpmTasks('grunt- shell');208 grunt.loadNpmTasks('grunt-curl'); 204 209 205 210 grunt.registerTask('default', ['eslint', 'sass_globbing', 'sass', 'rtlcss:dynamic']); 206 211 grunt.registerTask('css', ['sass_globbing', 'sass', 'postcss', 'rtlcss:dynamic']); 207 grunt.registerTask('build', ['webpack:build', 'css', ' shell:build']);212 grunt.registerTask('build', ['webpack:build', 'css', 'curl']); 208 213 }; -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/README.md
r4312 r8708 5 5 ``` 6 6 npm install 7 grunt webpack:watch # Build JS client. 8 grunt watch # Run linters, build Sass, etc. 7 grunt watch # Run linters, build Sass, JS client, etc. 9 8 ``` 10 9 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/client/modules/api.js
r5024 r8708 1 1 import WPAPI from 'wpapi'; 2 2 3 import routes from ' default-routes.json';3 import routes from './default-routes.json'; 4 4 5 5 /** @type {Object} pluginDirectory Config variable */ -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/package.json
r7632 r8708 30 30 "grunt-contrib-jshint": "^1.0.0", 31 31 "grunt-contrib-watch": "^1.1.0", 32 "grunt-curl": "^2.5.1", 32 33 "grunt-eslint": "^19.0.0", 33 34 "grunt-postcss": "~0.7.2", … … 35 36 "grunt-sass": "~3.0.1", 36 37 "grunt-sass-globbing": "^1.5.1", 37 "grunt-shell": "^2.1.0",38 38 "grunt-webpack": "^1.0.11", 39 39 "history": "^2.0.0", … … 59 59 "i18n-calypso": "^1.7.0", 60 60 "json-loader": "^0.5.4", 61 "wpapi": "^1. 0.0"61 "wpapi": "^1.2.1" 62 62 } 63 63 }
Note: See TracChangeset
for help on using the changeset viewer.