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: en/develop-a-package.md
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -85,13 +85,13 @@ Open [http://127.0.0.1:8000/examples/](http://127.0.0.1:8000/examples/) in brows
85
85
86
86
Except using three ` in Markdown file, you can also use four ` to wrap your code.
87
87
88
-
It is a special rule that make your code highlighted and would be inserted to document page as a script block so they can be excuted at the same time. That is very useful for debugging your demo and writing a beautiful documentation both.
88
+
It is a special rule that highlights your code and inserts it to a document page as a script block so they can be excuted at the same time. This is very useful for debugging your demo and writing beautiful documentation.
89
89
90
-
If you want to insert a iframe in your demo, make your code to `iframe` type.
90
+
If you want to insert an iframe in your demo, make your code to `iframe` type.
91
91
92
92
<pre>
93
93
````iframe:600
94
-
I am in a iframe of 600px high
94
+
I am in an iframe of 600px high
95
95
````
96
96
</pre>
97
97
@@ -125,21 +125,21 @@ You can also open [http://127.0.0.1:8000/tests/runner.html](http://127.0.0.1:800
125
125
126
126
## Publish
127
127
128
-
Now you have a great package having wonderful function and complete tests case, you can publish the package to [spmjs.io](http://spmjs.io/).
128
+
Now you have a great package with wonderful functions and complete test cases, which you can publish to [spmjs.io](http://spmjs.io/).
129
129
130
130
```bash
131
131
$ spm publish
132
132
```
133
133
134
-
You should run `spm login`first to get permission, otherwise it would propmt the authorization problem.
134
+
First you should run `spm login` to get permission, otherwise it will propmt the authorization problem.
135
135
136
136
```bash
137
137
$ spm login
138
138
```
139
139
140
140
`username` is the name of your github account, and `authkey` can be found at http://spmjs.io/account after signing in.
141
141
142
-
> The package `now` is published by me, of cause. You should change other name and retry.
142
+
> The package `now` is published by me, of course. You should change other name and retry.
143
143
144
144
## Documentation
145
145
@@ -149,7 +149,7 @@ spmjs.io can host your package's documentation. What all you need to do is editi
149
149
$ spm doc publish
150
150
```
151
151
152
-
The documentation url is `http://docs.spmjs.io/{{name}}/` for latest version and `http://docs.spmjs.io/{{name}}/{{version}}/` for each versions.
152
+
The documentation url is `http://docs.spmjs.io/{{name}}/` for the latest version and `http://docs.spmjs.io/{{name}}/{{version}}/` for each versions.
153
153
154
154
For example, http://docs.spmjs.io/now/.
155
155
@@ -159,9 +159,9 @@ For example, http://docs.spmjs.io/now/.
159
159
$ spm build
160
160
```
161
161
162
-
This command will build the files indicated by `spm.main` and `spm.output`field to `dist` folder. The `spm.build` would be executed as arguments.
162
+
This command will build the files indicated by `spm.main` and `spm.output`fields to `dist` folder. The `spm.build` would be executed as arguments.
163
163
164
-
The default build result is a package which could be deployed at cdn. Then you can use it .For example.
164
+
The default build result is a package which can be deployed at cdn and then used. For example,
0 commit comments