You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/_i18n/en/getting-started/grunt.md
+4-13Lines changed: 4 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,29 +10,20 @@ To install Grunt, you must **first** [download and install node.js](http://nodej
10
10
11
11
Then, from the command line:
12
12
13
-
1. Install `grunt-cli` globally with `npm install -g grunt-cli`.
14
-
2. Navigate to the root `/bootstrap-table/` directory, then run `npm install`. npm will look at the `package.json` file and automatically install the necessary local dependencies listed there.
13
+
1. Navigate to the root `/bootstrap-table/` directory, then run `npm install`. npm will look at the `package.json` file and automatically install the necessary local dependencies listed there.
15
14
16
15
When completed, you'll be able to run the various Grunt commands provided from the command line.
17
16
18
17
## Available Grunt commands
19
18
20
-
### `grunt dist` (Just compile CSS and JavaScript)
21
-
22
-
Regenerates the `/dist/` directory with compiled and minified CSS and JavaScript files. As a Bootstrap user, this is normally the command you want.
23
-
24
-
### `grunt test` (Run tests)
25
-
26
-
Runs [JSHint](http://jshint.com/) to test our code.
27
-
28
-
### `grunt docs` (Build & test the docs assets)
19
+
### `npm run grunt docs` (Build & test the docs assets)
29
20
30
21
Builds and tests CSS, JavaScript, and other assets which are used when running the documentation locally via `jekyll serve`.
31
22
32
-
### `grunt` (Build absolutely everything and run tests)
23
+
### `npm run grunt` (Build absolutely everything and run tests)
33
24
34
25
Compiles and minifies CSS and JavaScript, builds the documentation website, runs the HTML5 validator against the docs, regenerates the Customizer assets, and more. Requires [Jekyll](http://jekyllrb.com/docs/installation/).
35
26
36
27
## Troubleshooting
37
28
38
-
Should you encounter problems with installing dependencies or running Grunt commands, first delete the `/node_modules/` directory generated by npm. Then, rerun `npm install`.
29
+
Should you encounter problems with installing dependencies or running Grunt commands, first delete the `/node_modules/` directory generated by npm. Then, rerun `npm install`.
Copy file name to clipboardExpand all lines: docs/_i18n/es/getting-started/grunt.md
+4-13Lines changed: 4 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,29 +10,20 @@ Para instalar Grunt, se debe **primero** [descargar e instalar node.js](http://n
10
10
11
11
Entonces, en la linea de comandos:
12
12
13
-
1. Instalar `grunt-cli` globalmente con `npm install -g grunt-cli`.
14
-
2. Navegue hasta la ruta del folder `/bootstrap-table/`, entonces ejecute `npm install`. npm buscará el archivo `package.json` y automaticamente instalará las dependencias locales necesarias listadas aquí.
13
+
1. Navegue hasta la ruta del folder `/bootstrap-table/`, entonces ejecute `npm install`. npm buscará el archivo `package.json` y automaticamente instalará las dependencias locales necesarias listadas aquí.
15
14
16
15
Cuando esté completo, ya se podrá ejecutar varios comandos de Grunt en la linea de comandos.
17
16
18
17
## Available Grunt commands
19
18
20
-
### `grunt dist` (Just compile CSS and JavaScript)
21
-
22
-
Regenerando el folder `/dist/` con el CSS y JavaScript compilado. Como un usuario de Bootstrap, este es el comando.
23
-
24
-
### `grunt test` (Run tests)
25
-
26
-
Ejecute [JSHint](http://jshint.com/) para probar nuestras pruebas.
27
-
28
-
### `grunt docs` (Compila y prueba la documentación)
19
+
### `npm run grunt docs` (Compila y prueba la documentación)
29
20
30
21
Compila y purueba el CSS, JavaScript, y otros artchivos cuando se esta ejecutando la documentación localmente con `jekyll serve`.
31
22
32
-
### `grunt` (Compila absolutamente todo y ejecuta pruebas)
23
+
### `npm run grunt` (Compila absolutamente todo y ejecuta pruebas)
33
24
34
25
Compila y minifica el CSS y JavaScript, compila la documentación, ejecuta el validador de HTML5 contra la documentación, regenera los archivos customizables, y más. Se requiere [Jekyll](http://jekyllrb.com/docs/installation/).
35
26
36
27
## Troubleshooting
37
28
38
-
Si se encuentran problemas instalando las dependencias o ejecutando los comandos de Grunt, primero elimine el folder `/node_modules/` generado por npm. Entonces, vuelva a ejecutar `npm install`.
29
+
Si se encuentran problemas instalando las dependencias o ejecutando los comandos de Grunt, primero elimine el folder `/node_modules/` generado por npm. Entonces, vuelva a ejecutar `npm install`.
0 commit comments